From: Reiner Steib <reinersteib+gmane@imap.cc>
To: ding@gnus.org
Subject: Re: Exiting groups moves the cursor to next line
Date: Tue, 08 May 2007 19:44:40 +0200 [thread overview]
Message-ID: <v9zm4fi513.fsf@marauder.physik.uni-ulm.de> (raw)
In-Reply-To: <87tzun798w.fsf@lrde.org>
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-mode-map>\\[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/
next prev parent reply other threads:[~2007-05-08 17:44 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-05-05 11:21 exiting digest mails does not move " Shanks N
2007-05-06 14:00 ` Katsumi Yamaoka
2007-05-08 12:18 ` Katsumi Yamaoka
2007-05-08 14:25 ` Shanks N
2007-05-09 8:25 ` Katsumi Yamaoka
2007-05-08 13:09 ` Exiting groups moves the cursor to next line (was: exiting digest mails does not move the cursor to next line) Michaël Cadilhac
2007-05-08 17:44 ` Reiner Steib [this message]
2007-05-08 21:25 ` Exiting groups moves the cursor to next line Michaël Cadilhac
2007-05-10 12:31 ` Michaël Cadilhac
2007-05-12 15:13 ` Michaël Cadilhac
2007-05-13 23:01 ` Katsumi Yamaoka
2007-05-14 14:57 ` Michaël Cadilhac
2007-05-15 2:13 ` Katsumi Yamaoka
2007-05-18 1:33 ` Kevin Ryde
2007-05-18 1:56 ` Katsumi Yamaoka
2007-05-13 23:14 ` Kevin Ryde
2007-05-14 15:13 ` Michaël Cadilhac
2007-06-30 12:03 ` Johan Bockgård
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=v9zm4fi513.fsf@marauder.physik.uni-ulm.de \
--to=reinersteib+gmane@imap.cc \
--cc=Reiner.Steib@gmx.de \
--cc=ding@gnus.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).