help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: Graceful Gnus exit on Emacs exit


From: Eric Abrahamsen
Subject: Re: Graceful Gnus exit on Emacs exit
Date: Wed, 22 Apr 2020 11:06:35 -0700
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

Bob Newell <bobnewell@bobnewell.net> writes:

>> (defun gnus-exit ()
>>   "Exit gnus without confirmation and return 't"
>>   (let ((noninteractive 't)
>>         (gnus-expert-user 't)
>>         (gnus-interactive-exit 'quiet))
>>     (gnus-group-exit) 't))
>>
>> (add-hook 'kill-emacs-hook 'gnus-exit)
>
> If it's any consolation, I do what amounts to the exact same thing,
> including avoiding the prompts. I've noticed one undesirable side
> effect (and very likely it's just the rest of my setup causing it) ...
> if I should happen to exit Gnus during my Emacs session, when I
> terminate Emacs, Gnus starts up again just so it can shut down !

Ha! You could wrap it in a check to `gnus-alive-p' to avoid that...



reply via email to

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