[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Option for saving all buffers always?
From: |
Andreas Schwab |
Subject: |
Re: Option for saving all buffers always? |
Date: |
Mon, 05 Aug 2019 17:02:26 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.2.90 (gnu/linux) |
On Aug 05 2019, Noam Postavsky <address@hidden> wrote:
> On Mon, 5 Aug 2019 at 09:53, Lars Ingebrigtsen <address@hidden> wrote:
>>
>> Noam Postavsky <address@hidden> writes:
>>
>> > I guess (setq-default buffer-save-without-query t) might work though.
>>
>> That will make Emacs offer to save even the buffers that aren't
>> connected to files. :-)
>
> Hah, you're right. Maybe
>
> (add-hook 'find-file-hook (lambda () (setq buffer-save-without-query t)))
buffer-file-name can change any time.
It's probably easiest to advice save-some-buffers and make arg always be
non-nil.
Andreas.
--
Andreas Schwab, SUSE Labs, address@hidden
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."
Re: Option for saving all buffers always?, Eric Abrahamsen, 2019/08/05
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