[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
Re: Option for saving all buffers always?, Eric Abrahamsen, 2019/08/05
- Re: Option for saving all buffers always?,
Lars Ingebrigtsen <=
Re: Option for saving all buffers always?, Marcin Borkowski, 2019/08/07
Re: Option for saving all buffers always?, Clément Pit-Claudel, 2019/08/10