[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Option for saving all buffers always?

From: Stephen Leake
Subject: Re: Option for saving all buffers always?
Date: Sat, 10 Aug 2019 11:54:42 -0700
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2 (windows-nt)

Lars Ingebrigtsen <address@hidden> writes:

> Eric Abrahamsen <address@hidden> writes:
>> Lars Ingebrigtsen <address@hidden> 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

reply via email to

[Prev in Thread] Current Thread [Next in Thread]