]> git.eshelyaron.com Git - emacs.git/commitdiff
; * lisp/files.el (revert-buffer-restore-functions): Doc fix (bug#78124).
authorEli Zaretskii <eliz@gnu.org>
Tue, 29 Apr 2025 18:28:01 +0000 (21:28 +0300)
committerEshel Yaron <me@eshelyaron.com>
Thu, 1 May 2025 07:24:04 +0000 (09:24 +0200)
(cherry picked from commit 1224e5fd961ba53a5d6aba46e3c92a2fd047a165)

lisp/files.el

index f36dc0797e2faf743c03db4ba72f706d809142e7..06893e91d67fd622fdf3761da0a5c0e2febcb406 100644 (file)
@@ -7057,14 +7057,14 @@ A customized `revert-buffer-function' need not run this hook.")
 (defvar revert-buffer-preserve-modes)
 
 (defvar revert-buffer-restore-functions '(revert-buffer-restore-read-only)
-  "Functions to preserve any state during `revert-buffer'.
-The value of this variable is a list of functions that are called before
-reverting the buffer.  Each of these functions are called without
-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.
+  "Functions to preserve buffer state during `revert-buffer'.
+The value of this variable is a list of functions that are called
+before reverting the buffer.  Each of these functions is called without
+arguments and should return a lambda form that can restore a previous
+state of the buffer.  After reverting the buffer, each of these lambda
+forms will be called in order to restore previous states of the buffer.
+An example of the buffer state is keeping the buffer read-only, or
+keeping minor modes, etc.
 
 The default value restores the buffer's read-only state to what it
 was before reverting.