Eric writes:
>> Is there a way to get Gnus to update the counts automatically on group
>> exit as well?
> It looks to me like you could add a function to
> `gnus-summary-exit-hook', which calls
> `gnus-topic-update-topics-containing-group' on the value of
> `gnus-newsgroup-name'. At that stage in summary exit,
> `gnus-newsgroup-name' won't have been cleared yet, so it should still
> hold the name of the group you're coming out of.
Any reason for Gnus not to do that by default?
I hacked this together before reading your suggestion:
(defun asjo-update-topics ()
(let ((pos (point)))
(beginning-of-buffer)
(gnus-topic-read-group)
(gnus-topic-read-group)
(goto-char pos)))
(add-hook 'gnus-summary-exit-hook 'asjo-update-topics)
Which just toggles the top-level topic, which has the side effect of
updating the counts.
I couldn't make save-mark-and-excursion work, so I did the point +
goto-char dance, which is a little icky.
I will see if I can get your suggestion going after dinner :-)
Thanks!
Best regards,
Adam
--
"Our voodoo-dolls are full of hopes" Adam Sjøgren
[email protected]