]> git.eshelyaron.com Git - emacs.git/commit
Reimplement recent with-silent-modifications auto-save changes
authorLars Ingebrigtsen <larsi@gnus.org>
Tue, 10 May 2022 01:38:01 +0000 (03:38 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Tue, 10 May 2022 01:46:43 +0000 (03:46 +0200)
commit0bee4cda881f7db4113cba541b684c334e828c4a
tree4873dc599fb34e07c5e967ea5d91cb867c151c1b
parent0b2f550e3229c7a1b001fb1a09e7a5b4e3ecfb3e
Reimplement recent with-silent-modifications auto-save changes

* doc/lispref/buffers.texi (Buffer Modification): Document
buffer-modified-p returning `autosaved'.
* lisp/subr.el (with-silent-modifications): Use
restore-buffer-modified-p instead of altering the buffer modiff
(since this has other side effects like not updating after async
`display' changes.

* src/buffer.c (Fbuffer_modified_p): Allow returning whether the
buffer has been autosaved after changes.
(Frestore_buffer_modified_p): Allow adjusting whether the buffer
has been autosaved after changes.

* src/fileio.c (Fdo_auto_save): Refill the doc string.
doc/lispref/buffers.texi
lisp/subr.el
src/buffer.c
src/fileio.c
test/src/buffer-tests.el