summaryrefslogtreecommitdiff
path: root/lisp/files.el
diff options
context:
space:
mode:
authorLars Ingebrigtsen <larsi@gnus.org>2020-12-12 12:20:38 +0100
committerLars Ingebrigtsen <larsi@gnus.org>2020-12-12 12:20:43 +0100
commitb41942fac93b3a817a7b7848c2bd05ee15a4f6f2 (patch)
tree849d61fedfdee94771f0548121353ff04094c2b0 /lisp/files.el
parent61b6cc401a9adf7f718c1c9c4350181ecd413f1c (diff)
downloademacs-b41942fac93b3a817a7b7848c2bd05ee15a4f6f2.tar.gz
Improve the documentation of marker handling when reverting
* doc/lispref/backups.texi (Reverting): Mention markers from non-file sources (bug#30028). * lisp/files.el (revert-buffer): Mention what happens with markers (bug#30028). * src/fileio.c (Finsert_file_contents): Say a bit more about what markers are restored (bug#30028).
Diffstat (limited to 'lisp/files.el')
-rw-r--r--lisp/files.el3
1 files changed, 3 insertions, 0 deletions
diff --git a/lisp/files.el b/lisp/files.el
index a89d39e784d..093b5f92e58 100644
--- a/lisp/files.el
+++ b/lisp/files.el
@@ -6119,6 +6119,9 @@ This undoes all changes since the file was visited or saved.
With a prefix argument, offer to revert from latest auto-save file, if
that is more recent than the visited file.
+Reverting a buffer will try to preserve markers in the buffer;
+see the Info node `(elisp)Reverting' for details.
+
This command also implements an interface for special buffers
that contain text that doesn't come from a file, but reflects
some other data instead (e.g. Dired buffers, `buffer-list'