]> git.eshelyaron.com Git - emacs.git/commitdiff
; * lisp/files.el (revert-buffer-restore-functions): Doc fix.
authorEli Zaretskii <eliz@gnu.org>
Tue, 29 Apr 2025 06:39:34 +0000 (09:39 +0300)
committerEshel Yaron <me@eshelyaron.com>
Thu, 1 May 2025 05:31:56 +0000 (07:31 +0200)
(cherry picked from commit 4858d81848839c9167a523e4b566dbb253e566c6)

lisp/files.el

index 287a0a80f67fe7b642304212152afd44a6c53a42..f36dc0797e2faf743c03db4ba72f706d809142e7 100644 (file)
@@ -7064,7 +7064,14 @@ arguments and should return a lambda that can restore a previous state
 of the buffer.  Then after reverting the buffer each of these lambdas
 will be called one by one in the order of the list to restore previous
 states of the buffer.  An example of the buffer state is keeping the
-buffer read-only, or keeping minor modes, etc.")
+buffer read-only, or keeping minor modes, etc.
+
+The default value restores the buffer's read-only state to what it
+was before reverting.
+
+Set this variable to nil to disable restoring any buffer state
+attributes from before reverting.  Then only the file from which the
+buffer is reverted will determine the buffer's state after reverting.")
 
 (defun revert-buffer-restore-read-only ()
   "Preserve read-only state for `revert-buffer'."