Gnus development mailing list
 help / color / mirror / Atom feed
* gnus-exit-group-hook
@ 2017-12-18  3:29 Bob Newell
  2017-12-18 18:20 ` gnus-exit-group-hook Eric Abrahamsen
  0 siblings, 1 reply; 6+ messages in thread
From: Bob Newell @ 2017-12-18  3:29 UTC (permalink / raw)
  To: ding

Aloha

When exiting the summary buffer, gnus-exit-group-hook is run unless the
summary buffer is exited in a non-updating manner (such as with Q
instead of q).

But I note that the hook is called in gnus-sum.el as follows:

    (unless quit-config
      (gnus-run-hooks 'gnus-exit-group-hook)
      (gnus-summary-update-info))

Note that the hook is called before the summary info is updated. I was
relying on this hook to determine and save the number of still unread
articles in the group, but I don't get that, I get the number of unread
articles at the time of group entry, not exit.

Shouldn't the hook run after the update? Or am (quite typically) I
missing something here?


Mahalo,

-- 
Bob Newell
Honolulu, Hawai`i
* Via Gnus/BBDB/Org/Emacs/Linux *



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2017-12-19  1:40 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-12-18  3:29 gnus-exit-group-hook Bob Newell
2017-12-18 18:20 ` gnus-exit-group-hook Eric Abrahamsen
2017-12-18 19:46   ` gnus-exit-group-hook Emanuel Berg
2017-12-18 23:41     ` gnus-exit-group-hook Bob Newell
2017-12-18 23:55       ` gnus-exit-group-hook Bob Newell
2017-12-19  1:40         ` gnus-exit-group-hook Eric Abrahamsen

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).