From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/29768 Path: main.gmane.org!not-for-mail From: Harry Putnam Newsgroups: gmane.emacs.gnus.general Subject: Re: Multiple mail backends/nnir Date: 16 Apr 2000 13:36:38 -0700 Sender: owner-ding@hpc.uh.edu Message-ID: References: NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: main.gmane.org 1035166385 4626 80.91.224.250 (21 Oct 2002 02:13:05 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 02:13:05 +0000 (UTC) Return-Path: Original-Received: from bart.math.uh.edu (bart.math.uh.edu [129.7.128.48]) by mailhost.sclp.com (Postfix) with ESMTP id B165ED051E for ; Sun, 16 Apr 2000 17:47:36 -0400 (EDT) Original-Received: from sina.hpc.uh.edu (lists@Sina.HPC.UH.EDU [129.7.3.5]) by bart.math.uh.edu (8.9.1/8.9.1) with ESMTP id QAB23285; Sun, 16 Apr 2000 16:47:26 -0500 (CDT) Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Sun, 16 Apr 2000 16:46:40 -0500 (CDT) Original-Received: from mailhost.sclp.com (postfix@sclp3.sclp.com [204.252.123.139]) by sina.hpc.uh.edu (8.9.3/8.9.3) with ESMTP id QAA09415 for ; Sun, 16 Apr 2000 16:46:30 -0500 (CDT) Original-Received: from mail.networkone.net (mail.networkone.net [209.144.112.75]) by mailhost.sclp.com (Postfix) with SMTP id 134CDD051E for ; Sun, 16 Apr 2000 17:46:46 -0400 (EDT) Original-Received: (qmail 31321 invoked from network); 16 Apr 2000 21:47:01 -0000 Original-Received: from adsl-117-113.ln.networkone.net (HELO reader.ptw.com) (root@209.144.117.113) by mail.networkone.net with SMTP; 16 Apr 2000 21:47:01 -0000 Original-Received: (from reader@localhost) by reader.ptw.com (8.9.3/8.9.3) id OAA00845; Sun, 16 Apr 2000 14:49:44 -0700 Original-To: ding@gnus.org In-Reply-To: Kai.Grossjohann@CS.Uni-Dortmund.DE's message of "16 Apr 2000 20:40:46 +0200" User-Agent: Gnus/5.0804 (Gnus v5.8.4) Emacs/20.5 Original-Lines: 59 Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:29768 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:29768 Kai.Grossjohann@CS.Uni-Dortmund.DE (Kai Gro=DFjohann) writes: > Harry Putnam writes: >=20 > > I'm thinking a hook of somekind that gets invoked when nnir is > > invoked. That hook would be a list of possible of `nnir-glimpse-ho= me' > > vars. >=20 > Ah, of course. Silly me. >=20 > How about this one? >=20 > (defun hp-search-backend-1 () > (interactive) > (setq nnir-glimpse-home ...) > (setq nnir-mail-backend ...) > (call-interactively 'gnus-group-make-nnir-group)) >=20 > Note: You can't have more than one query in progress at any one time > using the above method. Like I said, just a kluge. Kai, you are a patient and generous soul... How can I get gnus tp prompt for nnir-glimpse-home from these functio= ns? (defun hp-search-backend-1 () (interactive) (setq nnir-glimpse-home "/home/reader/.glimpse-m) ; (setq nnir-mail-backend ...) (call-interactively 'gnus-group-make-nnir-group)) (defun hp-search-backend-2 () (interactive) (setq nnir-glimpse-home /home/reader/.glimpse-m2) ; (setq nnir-mail-backend ...) (call-interactively 'gnus-group-make-nnir-group)) (defun hp-search-backend-3 () (interactive) (setq nnir-glimpse-home /home/reader/.glimpse-n2m) ; (setq nnir-mail-backend ...) (call-interactively 'gnus-group-make-nnir-group)) Of course they can be evaled when needed, but I hoped to see how to make gnus offer me a list of nnir-glimpse-home directories when I press 'G G'. Probably complicated coding eh? What about a function that prompts for nnir-glimpse-home that is called manually with `M-x' then. So that when I say M-x hp-search-backend, gnus prompts me for one with completion available...... he he. Never satisfied=20