[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: read messages becoming unread in nnml

From: Adam Sjøgren
Subject: Re: read messages becoming unread in nnml
Date: Tue, 12 Aug 2014 19:32:09 +0200
User-agent: Gnus/5.130012 (Ma Gnus v0.12) Emacs/24.3.50 (gnu/linux)

Emanuel Berg <> writes:

> (defun gnus-runs ()
>   (get-buffer "*Group*") )
> (defun gnus-save-if-runs ()
>   (if (gnus-runs) (gnus-save-newsrc-file t)) ) ; FORCE
> (defun shut ()
>   (interactive)
>   (gnus-save-if-runs)
>   (shell-command "shut") )

I think you can arrive at a better solution if you look at Julien's (or
Carlos') hook.

I.e. run the command that actually tells Gnus to close down, instead of
explicitly calling a function to save the one file you happen know
should be handled when shutting down (what if Gnus needs to do more
now/in the future?)

  Best regards,


 "Sorry, no one's allowed to question the masks."             Adam Sjøgren

reply via email to

[Prev in Thread] Current Thread [Next in Thread]