]> git.eshelyaron.com Git - emacs.git/commit
Allow write-contents-functions to short-circuit buffer save
authorEric Abrahamsen <eric@ericabrahamsen.net>
Tue, 12 Sep 2017 23:06:12 +0000 (16:06 -0700)
committerEric Abrahamsen <eric@ericabrahamsen.net>
Tue, 12 Sep 2017 23:06:12 +0000 (16:06 -0700)
commit9b980e2691afa3a7a967011fc004d352750fe618
tree5d5cc5e432da299eaa5ab9dfb8384b12e7101d36
parentd07fd34722b84ae2c407f195c82d7632a94de704
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.
doc/lispref/files.texi
etc/NEWS
lisp/files.el
test/lisp/files-tests.el