[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Graceful Gnus exit on Emacs exit
From: |
Sergey Organov |
Subject: |
Re: Graceful Gnus exit on Emacs exit |
Date: |
Thu, 23 Apr 2020 01:12:34 +0300 |
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.
It sure is, thanks for sharing!
> 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 !
Tried it here, but didn't notice Gnus start, so it's likely something in
your setup indeed, as I do need to wait a little when Gnus actually
starts.
-- Sergey