info-gnus-english
[Top][All Lists]
Advanced

[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 <embe8573@student.uu.se> 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,

    Adam

-- 
 "Sorry, no one's allowed to question the masks."             Adam Sjøgren
                                                         asjo@koldfront.dk




reply via email to

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