mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-07 06:50:23 -08:00
; * lisp/files.el (revert-buffer-restore-functions): Doc fix (bug#78124).
This commit is contained in:
parent
79e7eeb329
commit
1224e5fd96
1 changed files with 8 additions and 8 deletions
|
|
@ -6988,14 +6988,14 @@ A customized `revert-buffer-function' need not run this hook.")
|
||||||
(defvar revert-buffer-preserve-modes)
|
(defvar revert-buffer-preserve-modes)
|
||||||
|
|
||||||
(defvar revert-buffer-restore-functions '(revert-buffer-restore-read-only)
|
(defvar revert-buffer-restore-functions '(revert-buffer-restore-read-only)
|
||||||
"Functions to preserve any state during `revert-buffer'.
|
"Functions to preserve buffer state during `revert-buffer'.
|
||||||
The value of this variable is a list of functions that are called before
|
The value of this variable is a list of functions that are called
|
||||||
reverting the buffer. Each of these functions are called without
|
before reverting the buffer. Each of these functions is called without
|
||||||
arguments and should return a lambda that can restore a previous state
|
arguments and should return a lambda form that can restore a previous
|
||||||
of the buffer. Then after reverting the buffer each of these lambdas
|
state of the buffer. After reverting the buffer, each of these lambda
|
||||||
will be called one by one in the order of the list to restore previous
|
forms will be called in order to restore previous states of the buffer.
|
||||||
states of the buffer. An example of the buffer state is keeping the
|
An example of the buffer state is keeping the buffer read-only, or
|
||||||
buffer read-only, or keeping minor modes, etc.
|
keeping minor modes, etc.
|
||||||
|
|
||||||
The default value restores the buffer's read-only state to what it
|
The default value restores the buffer's read-only state to what it
|
||||||
was before reverting.
|
was before reverting.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue