From: Lars Ingebrigtsen <larsi@gnus.org>
To: Eric Abrahamsen <eric@ericabrahamsen.net>
Cc: emacs-devel@gnu.org
Subject: Re: Option for saving all buffers always?
Date: Wed, 07 Aug 2019 20:29:16 +0200 [thread overview]
Message-ID: <87d0hg96df.fsf@mouse.gnus.org> (raw)
In-Reply-To: <87a7cnvcmm.fsf@ericabrahamsen.net> (Eric Abrahamsen's message of "Mon, 05 Aug 2019 08:46:25 -0700")
Eric Abrahamsen <eric@ericabrahamsen.net> writes:
> Lars Ingebrigtsen <larsi@gnus.org> writes:
>
>> I just realised that I have never in the history of ever said "n" to the
>> question "Save file ...?" So I wondered whether there was any easy way
>> to make `save-some-buffers' always save everything. (The question is
>> especially annoying when compiling/grepping for stuff.)
>
> You can just "!" to approve all saves -- that doesn't seem that annoying.
It's annoying to me. :-)
But there didn't seem to be a general clamouring for this functionality,
so I just went with advice instead. For future duckduckgoing, here's
the necessary incantation:
(advice-add 'save-some-buffers :around
(lambda (oldfun &optional arg pred)
(funcall oldfun t pred)))
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
next prev parent reply other threads:[~2019-08-07 18:29 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 [this message]
2019-08-10 18:54 ` Stephen Leake
[not found] ` <CADoYgq-np68aTT=XekhoYOWS_wyi7YH7t8gJuiMOoHwNOe5iog@mail.gmail.com>
2019-08-11 4:35 ` Fwd: " Bob Newell
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=87d0hg96df.fsf@mouse.gnus.org \
--to=larsi@gnus.org \
--cc=emacs-devel@gnu.org \
--cc=eric@ericabrahamsen.net \
/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).