unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Bob Newell <bobnewell@bobnewell.net>
To: Sergey Organov <sorganov@gmail.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Graceful Gnus exit on Emacs exit
Date: Wed, 22 Apr 2020 07:38:40 -1000	[thread overview]
Message-ID: <CADoYgq-pbpEBJZ_jQAFQ68EC76pe3eJDTUCuM=NBvrt-s53-zA@mail.gmail.com> (raw)
In-Reply-To: <87pnc0vfq2.fsf@osv.gnss.ru>

> (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 !

-- 
Bob Newell
Honolulu, Hawai`i

- Via GNU/Linux/Emacs/Gnus/BBDB.



  parent reply	other threads:[~2020-04-22 17:38 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 [this message]
2020-04-22 18:06   ` Eric Abrahamsen
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='CADoYgq-pbpEBJZ_jQAFQ68EC76pe3eJDTUCuM=NBvrt-s53-zA@mail.gmail.com' \
    --to=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).