Emanuel Berg <[email protected]> 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
[email protected]
_______________________________________________
info-gnus-english mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/info-gnus-english