Commit 6945faa6 authored by Glenn Morris's avatar Glenn Morris
Browse files

Tiny change for lispref "Reverting"

* doc/lispref/backups.texi (Reverting):
Un-duplicate revert-buffer-in-progress-p, and relocate entry.
Mention buffer-stale-function.
* doc/emacs/arevert-xtra.texi: Comment.
parent 96a72ee9
...@@ -96,6 +96,7 @@ Neither are Dired buffers for which you used shell wildcards or file ...@@ -96,6 +96,7 @@ Neither are Dired buffers for which you used shell wildcards or file
arguments to list only some of the files. @samp{*Find*} and arguments to list only some of the files. @samp{*Find*} and
@samp{*Locate*} buffers do not auto-revert either. @samp{*Locate*} buffers do not auto-revert either.
@c FIXME? This should be in the elisp manual?
@node Supporting additional buffers @node Supporting additional buffers
@subsection Adding Support for Auto-Reverting additional Buffers. @subsection Adding Support for Auto-Reverting additional Buffers.
......
2012-03-02 Glenn Morris <rgm@gnu.org> 2012-03-02 Glenn Morris <rgm@gnu.org>
* backups.texi (Reverting): Un-duplicate revert-buffer-in-progress-p,
and relocate entry. Mention buffer-stale-function.
* elisp.texi, vol1.texi, vol2.texi: Standardize some menu entries. * elisp.texi, vol1.texi, vol2.texi: Standardize some menu entries.
* hooks.texi (Standard Hooks): General update. * hooks.texi (Standard Hooks): General update.
......
...@@ -699,11 +699,13 @@ operation, reverting preserves all the markers. If they are not ...@@ -699,11 +699,13 @@ operation, reverting preserves all the markers. If they are not
identical, reverting does change the buffer; in that case, it preserves identical, reverting does change the buffer; in that case, it preserves
the markers in the unchanged text (if any) at the beginning and end of the markers in the unchanged text (if any) at the beginning and end of
the buffer. Preserving any additional markers would be problematical. the buffer. Preserving any additional markers would be problematical.
This command binds @code{revert-buffer-in-progress-p} to a
non-@code{nil} value while it operates.
@end deffn @end deffn
@defvar revert-buffer-in-progress-p
@code{revert-buffer} binds this variable to a non-@code{nil} value
while it is working.
@end defvar
You can customize how @code{revert-buffer} does its work by setting You can customize how @code{revert-buffer} does its work by setting
the variables described in the rest of this section. the variables described in the rest of this section.
...@@ -758,7 +760,15 @@ the modified contents---but only if @code{revert-buffer-function} is ...@@ -758,7 +760,15 @@ the modified contents---but only if @code{revert-buffer-function} is
@code{nil}. @code{nil}.
@end defvar @end defvar
@defvar revert-buffer-in-progress-p @c FIXME? Move this section from arevert-xtra to here?
This variable is bound to a non-@code{nil} value by @defvar buffer-stale-function
@code{revert-buffer} while it is working. The value of this variable, if non-@code{nil}, specifies a function
to call to check whether a non-file buffer needs reverting
@iftex
(@pxref{Supporting additional buffers,,, emacs-xtra, Specialized Emacs Features}).
@end iftex
@ifnottex
(@pxref{Supporting additional buffers,,, emacs}).
@end ifnottex
@end defvar @end defvar
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment