From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/64599 Path: news.gmane.org!not-for-mail From: Reiner Steib Newsgroups: gmane.emacs.gnus.general Subject: Re: Exiting groups moves the cursor to next line Date: Tue, 08 May 2007 19:44:40 +0200 Message-ID: References: <87tzun798w.fsf@lrde.org> Reply-To: Reiner Steib NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1178646349 4044 80.91.229.12 (8 May 2007 17:45:49 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 8 May 2007 17:45:49 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M13110@lists.math.uh.edu Tue May 08 19:45:43 2007 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.50) id 1HlTkr-0003t6-PR for ding-account@gmane.org; Tue, 08 May 2007 19:45:42 +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 1HlTjm-00067I-JH; Tue, 08 May 2007 12:44:34 -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 1HlTjj-000670-Ip for ding@lists.math.uh.edu; Tue, 08 May 2007 12:44:31 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtp (Exim 4.63) (envelope-from ) id 1HlTjd-0005a1-9H for ding@lists.math.uh.edu; Tue, 08 May 2007 12:44:31 -0500 Original-Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1HlTjb-0002OG-00 for ; Tue, 08 May 2007 19:44:23 +0200 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1HlTjR-00011f-B7 for ding@gnus.org; Tue, 08 May 2007 19:44:13 +0200 Original-Received: from bridgekeeper.physik.uni-ulm.de ([134.60.10.123]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 08 May 2007 19:44:13 +0200 Original-Received: from Reiner.Steib by bridgekeeper.physik.uni-ulm.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 08 May 2007 19:44:13 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: ding@gnus.org Original-Lines: 66 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: bridgekeeper.physik.uni-ulm.de X-Face: /U7=m^"/-Dn61mAl{g9e3>\G5Tp,oEX|V)g2I1hBk\ML;)7A?6cmB-y7y?'NA^J<=oz7syB =(McAwIHgLX!.B?R3X}98d@?>CrT094KLWh]WU4gDpnL/")MS(XoQTv`Oq225uL>+;CpPXo$N5e>N> $tPd-gbB^F{gQS#1ase]XO~D4p4M"3+F-7~u]dy3I?Pb8RO*H-EFeWDUf?Rf,d]pv\Jvh2Cht!A=im yKAS2Z%Ao^;}W/qzMvMm Mail-Copies-To: nobody User-Agent: Gnus/5.110007 (No Gnus v0.7) Emacs/22.0.98 (gnu/linux) Cancel-Lock: sha1:GbemR++/vt2SMpqTSy9Odp2KvT4= X-Spam-Score: -2.6 (--) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:64599 Archived-At: On Tue, May 08 2007, Michaël Cadilhac wrote: > Speaking of which, I've always been bothered by a similar feature: > when exiting a summary buffer, the next group line is selected. In > fact, if I want the next group to be selected, I just don't exit the > group and continue `n'-ing. > > Can we make it customizable? Good idea. A user in de.comm.software.gnus also requested this some time ago. Back then, I've prepared the following patch: --8<---------------cut here---------------start------------->8--- --- gnus-group.el 24 Jan 2007 07:15:37 -0000 7.92 +++ gnus-group.el 8 May 2007 17:32:51 -0000 @@ -93,6 +93,14 @@ :group 'gnus-group-various :type 'boolean) +(defcustom gnus-group-goto-next-group t + "If non-nil, the cursor will move to the group on summary exit. +See `gnus-group-goto-unread'." + :link '(custom-manual "(gnus)Group Maneuvering") + :group 'gnus-group-various + :version "23.0" ;; No Gnus + :type 'boolean) + (defcustom gnus-goto-next-group-when-activating t "*If non-nil, the \\\\[gnus-group-get-new-news-this-group] command will advance point to the next group." :link '(custom-manual "(gnus)Scanning New Messages") --- gnus-sum.el 19 Jul 2006 09:07:52 -0000 7.156 +++ gnus-sum.el 31 Aug 2006 20:19:18 -0000 @@ -6878,6 +6878,7 @@ (gnus-group-jump-to-group group)) (gnus-run-hooks 'gnus-summary-exit-hook) (unless (or quit-config + (not gnus-group-goto-next-group) ;; If this group has disappeared from the summary ;; buffer, don't skip forwards. (not (string= group (gnus-group-group-name)))) --8<---------------cut here---------------end--------------->8--- > --- lisp/gnus-sum.el 27 Apr 2007 08:39:17 -0000 7.182 > +++ lisp/gnus-sum.el 8 May 2007 12:57:23 -0000 > @@ -62,6 +62,11 @@ > :group 'gnus-summary-exit > :type 'boolean) > > +(defcustom gnus-next-group-on-exit t > + "*If non-nil, go to the next unread newsgroup on summary exit." > + :group 'gnus-summary-exit > + :type 'boolean) Please don't add a "*" when introducing a new defcustom (it's useless) and add a custom version (see above). Documentation in the manual and a custom-manual link would also be nice. Beside these remarks, I don't have a strong opinion which version we use. Do you have commit access now? Bye, Reiner. -- ,,, (o o) ---ooO-(_)-Ooo--- | PGP key available | http://rsteib.home.pages.de/