From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/38137 Path: main.gmane.org!not-for-mail From: Lloyd Zusman Newsgroups: gmane.emacs.gnus.general Subject: Group-specific gnus-auto-select-next? (was: Another Oort error.) Date: 20 Aug 2001 22:02:49 -0400 Organization: FreeBSD/Linux Hippopotamus Preserve Sender: Lloyd Zusman Message-ID: References: NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1035173765 19245 80.91.224.250 (21 Oct 2002 04:16:05 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 04:16:05 +0000 (UTC) Return-Path: Return-Path: Original-Received: (qmail 26726 invoked from network); 21 Aug 2001 02:03:08 -0000 Original-Received: from home.acholado.net (216.27.138.216) by gnus.org with SMTP; 21 Aug 2001 02:03:08 -0000 Original-Received: by home.acholado.net (Postfix, from userid 501) id 14E847E18; Mon, 20 Aug 2001 22:02:49 -0400 (EDT) Original-To: ding@gnus.org X-Face: "!ga1s|?LNLE3MeeeEYs(%LIl9q[xV9!j4#xf4!**BFW_ihlOb;:Slb>)vy>CJM (Lars Magne Ingebrigtsen's message of "Mon, 20 Aug 2001 13:03:20 +0200") User-Agent: Gnus/5.090004 (Oort Gnus v0.04) XEmacs/21.4 (Academic Rigor) Original-Lines: 44 Xref: main.gmane.org gmane.emacs.gnus.general:38137 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:38137 Lars Magne Ingebrigtsen writes: > Lloyd Zusman writes: >> >> [...] >> >> ad-Orig-gnus-summary-read-group-around-gnus-summary-read-group( >> "alt.language.spanish" nil nil nil nil nil nil) > > You have this function defadviced, it looks like. Could that be the > problem? Oh yeah ... I did that ages ago and forgot about it. But why would that be causing a problem after working fine for many months? It's a pretty simple defadvice. Here it is: ;; Wrap `gnus-summary-read-group' so that `gnus-auto-select-next' ;; gets set according to `no-auto-select-pattern' (defadvice gnus-summary-read-group (around gnus-summary-read-group freeze) ad-do-it (setq gnus-auto-select-next (not (and gnus-newsgroup-name (string-match no-auto-select-pattern gnus-newsgroup-name))))) I did this because it seemed at the time that there was no other way to selectively set `gnus-auto-select-next' based upon the name of the newsgroup. I tried all the hooks (yes, I really did try *all* of them), but none of them could be used to cause the `gnus-auto-select-next' setting to be recognized and acted upon in a group-specific manner. And I tried lots of other things as well, before finally giving up and using the defadvice. But this was a long time ago. Perhaps now is there a way to do this, after all? Thanks in advance. -- Lloyd Zusman ljz@asfast.com