emacs-devel
[Top][All Lists]
Advanced

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

Re: Option for saving all buffers always?


From: Lars Ingebrigtsen
Subject: Re: Option for saving all buffers always?
Date: Wed, 07 Aug 2019 20:29:16 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

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)))

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no



reply via email to

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