From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/78894 Path: news.gmane.org!not-for-mail From: Eric Abrahamsen Newsgroups: gmane.emacs.gnus.general Subject: Re: keeping killed groups out of gnus-group-jump-to-group Date: Wed, 25 May 2011 00:43:25 -0400 Message-ID: <87boyrcrv6.fsf@ericabrahamsen.net> References: <87ipt189e9.fsf@ericabrahamsen.net> <87mxibd088.fsf@ericabrahamsen.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: dough.gmane.org 1306298679 9261 80.91.229.12 (25 May 2011 04:44:39 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 25 May 2011 04:44:39 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M27194@lists.math.uh.edu Wed May 25 06:44:36 2011 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QP5xS-0005Bq-9m for ding-account@gmane.org; Wed, 25 May 2011 06:44:34 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1QP5wf-0006Aw-A5; Tue, 24 May 2011 23:43:45 -0500 Original-Received: from mx1.math.uh.edu ([129.7.128.32]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1QP5wc-0006Ag-FQ for ding@lists.math.uh.edu; Tue, 24 May 2011 23:43:42 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.76) (envelope-from ) id 1QP5wa-0006nN-Hv for ding@lists.math.uh.edu; Tue, 24 May 2011 23:43:41 -0500 Original-Received: from lo.gmane.org ([80.91.229.12]) by quimby.gnus.org with esmtp (Exim 4.72) (envelope-from ) id 1QP5wX-0002N4-KY for ding@gnus.org; Wed, 25 May 2011 06:43:37 +0200 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1QP5wW-0004tt-HY for ding@gnus.org; Wed, 25 May 2011 06:43:36 +0200 Original-Received: from dyn-209-2-210-27.dyn.columbia.edu ([209.2.210.27]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 25 May 2011 06:43:36 +0200 Original-Received: from eric by dyn-209-2-210-27.dyn.columbia.edu with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 25 May 2011 06:43:36 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 37 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: dyn-209-2-210-27.dyn.columbia.edu User-Agent: Gnus/5.110018 (No Gnus v0.18) Emacs/23.2 (gnu/linux) Cancel-Lock: sha1:HTI1lI5fjZ5ESrn6pDT6ur70eLk= X-Spam-Score: -4.9 (----) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:78894 Archived-At: Eric Abrahamsen writes: > David Engster writes: > >> Eric Abrahamsen writes: >>> Very simply: I'm using a mairix server, and ido for all autocompletion. >>> The mairix server includes a complete list of all my nnmail groups, >>> killed, and they all show up when I hit 'j' to jump to a group, usually >>> *before* the real nnmail group, which makes it hard to use. I don't know >>> where the list of groups is created -- is there a way I can have it >>> filter out killed groups? >> >> I don't know either. You could use an advice to at least filter the >> nnmairix groups: >> >> (defadvice gnus-group-completing-read (before remove-nnmairix-groups activate) >> (unless collection >> (mapatoms >> (lambda (g) >> (unless (string-match nnmairix-group-prefix (symbol-name g)) >> (push g collection))) >> gnus-active-hashtb))) >> > > Thanks! I was definitely expecting to have to advise something… > > However, just putting this in my .gnus.el and evaluating it doesn't seem > to do anything, do have to put it somewhere special? Found the problem: =nnmairix-group-prefix= is the prefix of the directory where mairix keeps its results, "zz_mairix" in my case, not the prefix of the bogus mairix server groups, which is "nnml+mairix:". Using a literal string instead of =nnmairix-group-prefix= made this work. Thanks again, Eric