From: Stephen Leake <stephen_leake@stephe-leake.org>
To: emacs-devel <emacs-devel@gnu.org>
Subject: Re: Option for saving all buffers always?
Date: Sat, 10 Aug 2019 11:54:42 -0700 [thread overview]
Message-ID: <86r25s3l71.fsf@stephe-leake.org> (raw)
In-Reply-To: <87d0hg96df.fsf@mouse.gnus.org> (Lars Ingebrigtsen's message of "Wed, 07 Aug 2019 20:29:16 +0200")
Lars Ingebrigtsen <larsi@gnus.org> writes:
> 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)))
I did the same thing many moons ago. It's easy enough to do, and a good
skill to have; i don't think we need yet another global setting for this.
--
-- Stephe
next prev parent reply other threads:[~2019-08-10 18:54 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 [this message]
[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=86r25s3l71.fsf@stephe-leake.org \
--to=stephen_leake@stephe-leake.org \
--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).