]> git.eshelyaron.com Git - emacs.git/commit
(save-some-buffers): Simplify the fix for bug#46374
authorStefan Monnier <monnier@iro.umontreal.ca>
Mon, 10 Jan 2022 02:02:31 +0000 (21:02 -0500)
committerStefan Monnier <monnier@iro.umontreal.ca>
Mon, 10 Jan 2022 03:17:45 +0000 (22:17 -0500)
commit74223bbdaff7533709fe6e81837e09d98320c1ee
tree94a038891c01e37ce60280db90e1815a9f0d1ea4
parent8dba3a06261ebb21cb83145505a0c6e35a123c12
(save-some-buffers): Simplify the fix for bug#46374

* lisp/files.el (save-some-buffers): Only check the
`save-some-buffers-function` property on functions from
`save-some-buffers-default-predicate` since callers which provide
a `pred` argument can arrange to compute `pred` themselves if needed.

* test/lisp/files-tests.el (files-tests-buffer-offer-save): Don't test
with `pred` set to `save-some-buffers-root` since it's not an
appropriate function for that any more.
lisp/files.el
test/lisp/files-tests.el