Emanuel Berg <embe8...@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
                                                         a...@koldfront.dk


_______________________________________________
info-gnus-english mailing list
info-gnus-english@gnu.org
https://lists.gnu.org/mailman/listinfo/info-gnus-english

Reply via email to