diff options
author | Eric Abrahamsen <eric@ericabrahamsen.net> | 2017-09-12 16:06:12 -0700 |
---|---|---|
committer | Eric Abrahamsen <eric@ericabrahamsen.net> | 2017-09-12 16:06:12 -0700 |
commit | 9b980e2691afa3a7a967011fc004d352750fe618 (patch) | |
tree | 5d5cc5e432da299eaa5ab9dfb8384b12e7101d36 /lib/getloadavg.c | |
parent | d07fd34722b84ae2c407f195c82d7632a94de704 (diff) | |
download | emacs-9b980e2691afa3a7a967011fc004d352750fe618.tar.gz emacs-9b980e2691afa3a7a967011fc004d352750fe618.tar.bz2 emacs-9b980e2691afa3a7a967011fc004d352750fe618.zip |
Allow write-contents-functions to short-circuit buffer save
Bug#28412
* lisp/files.el (basic-save-buffer): Re-arrange function so that
write-contents-functions are run earlier. If they return non-nil,
consider the buffer saved without requiring the buffer to be
visiting a file.
(save-some-buffers): This function should consider any buffer with a
buffer-local value for write-contents-functions eligible for
saving.
* test/lisp/files-tests.el (files-test-no-file-write-contents): New
test.
* doc/lispref/files.texi (Saving Buffers): Mention in docs.
* etc/NEWS: And in NEWS.
Diffstat (limited to 'lib/getloadavg.c')
0 files changed, 0 insertions, 0 deletions