Gnus development mailing list
 help / color / mirror / Atom feed
From: Katsumi Yamaoka <yamaoka@jpl.org>
To: ding@gnus.org
Subject: Re: Exiting groups moves the cursor to next line
Date: Tue, 15 May 2007 11:13:48 +0900	[thread overview]
Message-ID: <b4m1whikf4z.fsf@jpl.org> (raw)
In-Reply-To: <873b1z5u6x.fsf@lrde.org>

>>>>> In <873b1z5u6x.fsf@lrde.org> Michaël Cadilhac wrote:
> Katsumi Yamaoka <yamaoka@jpl.org> writes:

>> Only setting `gnus-group-goto-unread' to nil has been sufficient
>> for me but that's ok.;-)

> I _need_ to do things the hard way :-) Well, it's not completely the
> same thing, isn't it?

Yes, they are not the same.  While `gnus-group-goto-unread' decides
where the point is moved to, `gnus-summary-next-group-on-exit'
decides whether to move the point or not and is preferred than
the former if it is nil.  `g-g-g-u' is used also for cases other
than simply exiting the summary buffer; the most typical one is
the `n' command in the group buffer, although it is named `unread'
and there is even the `N' command[1].  I'd been using `g-g-g-u'
with the nil value, but I can replace it with setting `g-s-n-g-o-e'
to nil if it is effective also when I use the `Q' command in the
summary buffer.

Why I needed to set `g-g-g-u' to nil is that I have all my mail
groups always visible (even if there is no unread article) in
the group buffer.  In the case where there are many mail groups
having no unread articles, I don't want Gnus to move the point
far far away.

>> Why don't you use `gnus-summary-next-group-on-exit' in
>> `gnus-summary-exit-no-update' too?

> Simple: because I'm a newcomer in Gnus patching, and I had to make an
> error.  Was quite obvious, nop? :-)

I think it is not a matter how long you've been improving Gnus. :-)

> There's also two other occurrences of (gnus-group-next-unread-group 1),
> but it's not really a « summary exit » so I don't know if I should put
> the test there:

> In gnus-summary-read-group-1:

>      ;; We couldn't select this group.
>      ((null did-select)
>         [...]
> 	(gnus-group-next-unread-group 1)
>         [...])

>      ;; The user did a `C-g' while prompting for number of articles,
>      ;; so we exit this group.
>      ((eq did-select 'quit)
>         [...]
> 	(gnus-group-next-unread-group 1)
>         [...])

IMHO, `gnus-summary-next-group-on-exit' should be effective also
for them, in the viewpoint that some of those who set it to nil
have a lot of visible groups having no unread article. ;-)

[1] I think it is better to make `gnus-group-next-unread-group'
behave as its name, regardless of the value of
`gnus-group-goto-unread'.  So does `gnus-group-prev-unread-group'.
Because there seems to be no means to move the point to an unread
group automatically for users who set `gnus-group-goto-unread' to
nil, `gnus-group-catchup-current' works on even groups in which
there is no unread article when two or more groups are marked if
`gnus-group-goto-unread' is nil...

Regards,

P.S.  Please ignore it but I hit on a plan; setting
`gnus-group-goto-unread' to `never' might become a substitute of
setting `gnus-summary-next-group-on-exit' to nil.



  reply	other threads:[~2007-05-15  2:13 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   ` Exiting groups moves the cursor to next line Reiner Steib
2007-05-08 21:25     ` 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 [this message]
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=b4m1whikf4z.fsf@jpl.org \
    --to=yamaoka@jpl.org \
    --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).