aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
Diffstat (limited to 'doc')
-rw-r--r--doc/emacs/ChangeLog2
-rw-r--r--doc/emacs/arevert-xtra.texi6
-rw-r--r--doc/lispref/ChangeLog2
-rw-r--r--doc/lispref/backups.texi4
4 files changed, 10 insertions, 4 deletions
diff --git a/doc/emacs/ChangeLog b/doc/emacs/ChangeLog
index bd593f49db3..c0581424833 100644
--- a/doc/emacs/ChangeLog
+++ b/doc/emacs/ChangeLog
@@ -3,6 +3,8 @@
3 * files.texi (Backup Names): 3 * files.texi (Backup Names):
4 * arevert-xtra.texi (Supporting additional buffers): 4 * arevert-xtra.texi (Supporting additional buffers):
5 Update for default values of some -function vars no longer being nil. 5 Update for default values of some -function vars no longer being nil.
6 (Supporting additional buffers):
7 Update for buffer-stale-function also applying to file-buffers.
6 8
72014-03-16 Dmitry Gutov <dgutov@yandex.ru> 92014-03-16 Dmitry Gutov <dgutov@yandex.ru>
8 10
diff --git a/doc/emacs/arevert-xtra.texi b/doc/emacs/arevert-xtra.texi
index 0f05d1db0e1..dcb73bc96de 100644
--- a/doc/emacs/arevert-xtra.texi
+++ b/doc/emacs/arevert-xtra.texi
@@ -107,11 +107,11 @@ To support auto-reverting the buffer must first of all have a suitable
107@code{revert-buffer-function}. @xref{Definition of 107@code{revert-buffer-function}. @xref{Definition of
108revert-buffer-function,, Reverting, elisp, the Emacs Lisp Reference Manual}. 108revert-buffer-function,, Reverting, elisp, the Emacs Lisp Reference Manual}.
109 109
110In addition, it must have a @code{buffer-stale-function}. 110In addition, it must have a suitable @code{buffer-stale-function}.
111 111
112@c FIXME only defvar in all of doc/emacs! 112@c FIXME only defvar in all of doc/emacs!
113@defvar buffer-stale-function 113@defvar buffer-stale-function
114The value of this variable is a function to check whether a non-file 114The value of this variable is a function to check whether a
115buffer needs reverting. This should be a function with one optional 115buffer needs reverting. This should be a function with one optional
116argument @var{noconfirm}. The function should return non-@code{nil} 116argument @var{noconfirm}. The function should return non-@code{nil}
117if the buffer should be reverted. The buffer is current when this 117if the buffer should be reverted. The buffer is current when this
@@ -132,7 +132,7 @@ If you just want to automatically auto-revert every
132@code{auto-revert-interval} seconds (like the Buffer Menu), use: 132@code{auto-revert-interval} seconds (like the Buffer Menu), use:
133 133
134@example 134@example
135(set (make-local-variable 'buffer-stale-function) 135(setq-local buffer-stale-function
136 #'(lambda (&optional noconfirm) 'fast)) 136 #'(lambda (&optional noconfirm) 'fast))
137@end example 137@end example
138 138
diff --git a/doc/lispref/ChangeLog b/doc/lispref/ChangeLog
index 456c2cbdc12..1fb664893f8 100644
--- a/doc/lispref/ChangeLog
+++ b/doc/lispref/ChangeLog
@@ -2,6 +2,8 @@
2 2
3 * backups.texi (Making Backups, Reverting): 3 * backups.texi (Making Backups, Reverting):
4 Update for default values of some -function vars no longer being nil. 4 Update for default values of some -function vars no longer being nil.
5 (Reverting): Update for buffer-stale-function
6 also applying to file-buffers.
5 7
62014-03-25 Eli Zaretskii <eliz@gnu.org> 82014-03-25 Eli Zaretskii <eliz@gnu.org>
7 9
diff --git a/doc/lispref/backups.texi b/doc/lispref/backups.texi
index 9fa97fc1300..63f8f227c84 100644
--- a/doc/lispref/backups.texi
+++ b/doc/lispref/backups.texi
@@ -764,7 +764,9 @@ may or may not run this hook.
764@c FIXME? Move this section from arevert-xtra to here? 764@c FIXME? Move this section from arevert-xtra to here?
765@defvar buffer-stale-function 765@defvar buffer-stale-function
766The value of this variable specifies a function to call to check 766The value of this variable specifies a function to call to check
767whether a non-file buffer needs reverting 767whether a buffer needs reverting. The default value only handles
768buffers that are visiting files, by checking their modification time.
769Buffers that are not visiting files require a custom function
768@iftex 770@iftex
769(@pxref{Supporting additional buffers,,, emacs-xtra, Specialized Emacs Features}). 771(@pxref{Supporting additional buffers,,, emacs-xtra, Specialized Emacs Features}).
770@end iftex 772@end iftex