aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2009-06-28 00:52:23 +0000
committerGlenn Morris2009-06-28 00:52:23 +0000
commitfc2f6a2608c0b8a5de1cd6f1d1b75eb6353d26d1 (patch)
treeb4239bbbb74a9878837da49da3ae46ac5ad7defc
parent82ec412e8d20ec4bb600fd9466bdb4ca894ce6fc (diff)
downloademacs-fc2f6a2608c0b8a5de1cd6f1d1b75eb6353d26d1.tar.gz
emacs-fc2f6a2608c0b8a5de1cd6f1d1b75eb6353d26d1.zip
(global-auto-revert-non-file-buffers, global-auto-revert-mode): Doc fixes.
-rw-r--r--lisp/ChangeLog7
-rw-r--r--lisp/autorevert.el33
2 files changed, 30 insertions, 10 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index af4e904f0c8..a6aa7a6318e 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12009-06-28 Glenn Morris <rgm@gnu.org>
2
3 * autorevert.el (global-auto-revert-non-file-buffers)
4 (global-auto-revert-mode): Doc fixes.
5
12009-06-27 Johan Bockgård <bojohan@gnu.org> 62009-06-27 Johan Bockgård <bojohan@gnu.org>
2 7
3 * emacs-lisp/cl-specs.el (defstruct): Fix :conc-name spec. 8 * emacs-lisp/cl-specs.el (defstruct): Fix :conc-name spec.
@@ -32,7 +37,7 @@
322009-06-24 Michael Albinus <michael.albinus@gmx.de> 372009-06-24 Michael Albinus <michael.albinus@gmx.de>
33 38
34 * net/tramp-gvfs.el (tramp-gvfs-handle-make-directory): Use `dir' 39 * net/tramp-gvfs.el (tramp-gvfs-handle-make-directory): Use `dir'
35 but `filename'. 40 rather than `filename'.
36 41
372009-06-23 Miles Bader <miles@gnu.org> 422009-06-23 Miles Bader <miles@gnu.org>
38 43
diff --git a/lisp/autorevert.el b/lisp/autorevert.el
index 5eb6fb07f9a..ab133af00f1 100644
--- a/lisp/autorevert.el
+++ b/lisp/autorevert.el
@@ -207,10 +207,13 @@ would only waste precious space."
207When non-nil, both file buffers and buffers with a custom 207When non-nil, both file buffers and buffers with a custom
208`revert-buffer-function' and a `buffer-stale-function' are 208`revert-buffer-function' and a `buffer-stale-function' are
209reverted by Global Auto-Revert mode. These include the Buffer 209reverted by Global Auto-Revert mode. These include the Buffer
210List buffer, and Dired buffers showing complete local 210List buffer displayed by `buffer-menu', and Dired buffers showing
211directories. Dired buffers do not auto-revert as a result of 211complete local directories. The Buffer List buffer reverts every
212changes in subdirectories or in the contents, size, modes, etc., 212`auto-revert-interval' seconds; Dired buffers when the file list of
213of files. You may still sometimes want to revert them manually. 213the main directory changes. Dired buffers do not auto-revert as
214a result of changes in subdirectories, or in the contents, size,
215modes, etc., of files. You may still sometimes want to revert
216them manually.
214 217
215Use this option with care since it could lead to excessive auto-reverts. 218Use this option with care since it could lead to excessive auto-reverts.
216For more information, see Info node `(emacs)Autorevert'." 219For more information, see Info node `(emacs)Autorevert'."
@@ -374,11 +377,23 @@ This function is designed to be added to hooks, for example:
374 377
375;;;###autoload 378;;;###autoload
376(define-minor-mode global-auto-revert-mode 379(define-minor-mode global-auto-revert-mode
377 "Revert any buffer when file on disk changes. 380 "Toggle Global Auto Revert mode.
378 381With optional prefix argument ARG, enable Global Auto Revert Mode
379With arg, turn Auto Revert mode on globally if and only if arg is positive. 382if ARG > 0, else disable it.
380This is a minor mode that affects all buffers. 383
381Use `auto-revert-mode' to revert a particular buffer." 384This is a global minor mode that reverts any buffer associated
385with a file when the file changes on disk. Use `auto-revert-mode'
386to revert a particular buffer.
387
388If `global-auto-revert-non-file-buffers' is non-nil, this mode
389may also revert some non-file buffers, as described in the
390documentation of that variable. It ignores buffers with modes
391matching `global-auto-revert-ignore-modes', and buffers with a
392non-nil vale of `global-auto-revert-ignore-buffer'.
393
394This function calls the hook `global-auto-revert-mode-hook'.
395It displays the text that `global-auto-revert-mode-text'
396specifies in the mode line."
382 :global t :group 'auto-revert :lighter global-auto-revert-mode-text 397 :global t :group 'auto-revert :lighter global-auto-revert-mode-text
383 (auto-revert-set-timer) 398 (auto-revert-set-timer)
384 (when global-auto-revert-mode 399 (when global-auto-revert-mode