From: Bob Newell <bobnewell@bobnewell.net>
To: emacs-devel@gnu.org
Subject: Fwd: Option for saving all buffers always?
Date: Sat, 10 Aug 2019 18:35:50 -1000 [thread overview]
Message-ID: <CADoYgq8E_y0+=j4f7VQ6L5v9qL9u9otC+k=qptoA3nnDcv42WA@mail.gmail.com> (raw)
In-Reply-To: <CADoYgq-np68aTT=XekhoYOWS_wyi7YH7t8gJuiMOoHwNOe5iog@mail.gmail.com>
> > (advice-add 'save-some-buffers :around
> > (lambda (oldfun &optional arg pred)
> > (funcall oldfun t pred)))
I never thought of this; it's rather good and efficient. I've been
doing something different:
(define-key global-map "\C-x\C-c" 'rjn-kill-emacs-quietly)
and in the function 'rjn-kill-emacs-quietly I have a number of things including
(save-some-buffers 1 t)
as well as things to close out gnus cleanly, and finally
(kill-emacs)
I guess the big difference is that M-x kill-emacs won't alter default
exit behavior while C-x C-c will now ensure buffers are saved, etc.
--
Bob Newell
Honolulu, Hawai`i
Via Linux/Emacs/Gnus/BBDB.
--
Bob Newell
Honolulu, Hawai`i
Via Linux/Emacs/Gnus/BBDB.
next prev parent reply other threads:[~2019-08-11 4:35 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-08-05 10:51 Option for saving all buffers always? Lars Ingebrigtsen
2019-08-05 13:16 ` Søren Pilgård
2019-08-05 13:44 ` Lars Ingebrigtsen
2019-08-05 13:50 ` Noam Postavsky
2019-08-05 13:52 ` Lars Ingebrigtsen
2019-08-05 14:25 ` Noam Postavsky
2019-08-05 15:02 ` Andreas Schwab
2019-08-05 15:46 ` Eric Abrahamsen
2019-08-07 18:29 ` Lars Ingebrigtsen
2019-08-10 18:54 ` Stephen Leake
[not found] ` <CADoYgq-np68aTT=XekhoYOWS_wyi7YH7t8gJuiMOoHwNOe5iog@mail.gmail.com>
2019-08-11 4:35 ` Bob Newell [this message]
2019-08-07 15:07 ` Marcin Borkowski
2019-08-10 19:40 ` Clément Pit-Claudel
2019-08-10 20:57 ` Óscar Fuentes
2019-08-10 23:12 ` Stefan Monnier
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='CADoYgq8E_y0+=j4f7VQ6L5v9qL9u9otC+k=qptoA3nnDcv42WA@mail.gmail.com' \
--to=bobnewell@bobnewell.net \
--cc=emacs-devel@gnu.org \
/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.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
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).