|
From: | Eric Abrahamsen |
Subject: | Re: [Emacs-diffs] emacs-26 ee512e9: Ignore buffers whose name begins with a space in save-some-buffers |
Date: | Tue, 19 Sep 2017 11:13:46 -0700 |
User-agent: | Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) |
Kaushal Modi <address@hidden> writes: [...] > (or > (buffer-file-name buffer) > (and pred > (progn > (set-buffer buffer) > (and buffer-offer-save (> (buffer-size) 0)))) > (buffer-local-value ;THIS was the newly > added condition > 'write-contents-functions buffer)) [...] > @Eric: That makes me wonder.. is it possible to not add this 3rd condition in > the or and instead just set buffer-offer-save in the special buffers in your > use-case? I've played with this a bit, and am getting hung up on the (and pred... part above. "pred" is nil unless someone's customized `save-some-buffers-default-predicate', so in the majority of cases the check won't even reach `buffer-offer-save'. I don't really know why that (and pred... is in there, and don't feel comfortable just yanking it out. Eric
[Prev in Thread] | Current Thread | [Next in Thread] |