unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Eric Abrahamsen <eric@ericabrahamsen.net>
To: Bob Newell <bobnewell@bobnewell.net>
Cc: help-gnu-emacs@gnu.org, Sergey Organov <sorganov@gmail.com>
Subject: Re: Graceful Gnus exit on Emacs exit
Date: Wed, 22 Apr 2020 11:06:35 -0700	[thread overview]
Message-ID: <87imhrqtsk.fsf@ericabrahamsen.net> (raw)
In-Reply-To: <CADoYgq-pbpEBJZ_jQAFQ68EC76pe3eJDTUCuM=NBvrt-s53-zA@mail.gmail.com> (Bob Newell's message of "Wed, 22 Apr 2020 07:38:40 -1000")

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	other threads:[~2020-04-22 18:06 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-04-21 18:47 Graceful Gnus exit on Emacs exit Sergey Organov
2020-04-21 18:55 ` Eric Abrahamsen
2020-04-21 20:48   ` Sergey Organov
2020-04-22  5:13 ` Colin Baxter
2020-04-22  7:52   ` Sergey Organov
2020-04-22 11:13     ` Colin Baxter
2020-04-22 17:38 ` Bob Newell
2020-04-22 18:06   ` Eric Abrahamsen [this message]
2020-04-22 22:12   ` Sergey Organov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87imhrqtsk.fsf@ericabrahamsen.net \
    --to=eric@ericabrahamsen.net \
    --cc=bobnewell@bobnewell.net \
    --cc=help-gnu-emacs@gnu.org \
    --cc=sorganov@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).