diff options
| author | Glenn Morris | 2009-06-28 00:52:23 +0000 |
|---|---|---|
| committer | Glenn Morris | 2009-06-28 00:52:23 +0000 |
| commit | fc2f6a2608c0b8a5de1cd6f1d1b75eb6353d26d1 (patch) | |
| tree | b4239bbbb74a9878837da49da3ae46ac5ad7defc | |
| parent | 82ec412e8d20ec4bb600fd9466bdb4ca894ce6fc (diff) | |
| download | emacs-fc2f6a2608c0b8a5de1cd6f1d1b75eb6353d26d1.tar.gz emacs-fc2f6a2608c0b8a5de1cd6f1d1b75eb6353d26d1.zip | |
(global-auto-revert-non-file-buffers, global-auto-revert-mode): Doc fixes.
| -rw-r--r-- | lisp/ChangeLog | 7 | ||||
| -rw-r--r-- | lisp/autorevert.el | 33 |
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 @@ | |||
| 1 | 2009-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 | |||
| 1 | 2009-06-27 Johan Bockgård <bojohan@gnu.org> | 6 | 2009-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 @@ | |||
| 32 | 2009-06-24 Michael Albinus <michael.albinus@gmx.de> | 37 | 2009-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 | ||
| 37 | 2009-06-23 Miles Bader <miles@gnu.org> | 42 | 2009-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." | |||
| 207 | When non-nil, both file buffers and buffers with a custom | 207 | When 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 |
| 209 | reverted by Global Auto-Revert mode. These include the Buffer | 209 | reverted by Global Auto-Revert mode. These include the Buffer |
| 210 | List buffer, and Dired buffers showing complete local | 210 | List buffer displayed by `buffer-menu', and Dired buffers showing |
| 211 | directories. Dired buffers do not auto-revert as a result of | 211 | complete local directories. The Buffer List buffer reverts every |
| 212 | changes in subdirectories or in the contents, size, modes, etc., | 212 | `auto-revert-interval' seconds; Dired buffers when the file list of |
| 213 | of files. You may still sometimes want to revert them manually. | 213 | the main directory changes. Dired buffers do not auto-revert as |
| 214 | a result of changes in subdirectories, or in the contents, size, | ||
| 215 | modes, etc., of files. You may still sometimes want to revert | ||
| 216 | them manually. | ||
| 214 | 217 | ||
| 215 | Use this option with care since it could lead to excessive auto-reverts. | 218 | Use this option with care since it could lead to excessive auto-reverts. |
| 216 | For more information, see Info node `(emacs)Autorevert'." | 219 | For 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 | 381 | With optional prefix argument ARG, enable Global Auto Revert Mode | |
| 379 | With arg, turn Auto Revert mode on globally if and only if arg is positive. | 382 | if ARG > 0, else disable it. |
| 380 | This is a minor mode that affects all buffers. | 383 | |
| 381 | Use `auto-revert-mode' to revert a particular buffer." | 384 | This is a global minor mode that reverts any buffer associated |
| 385 | with a file when the file changes on disk. Use `auto-revert-mode' | ||
| 386 | to revert a particular buffer. | ||
| 387 | |||
| 388 | If `global-auto-revert-non-file-buffers' is non-nil, this mode | ||
| 389 | may also revert some non-file buffers, as described in the | ||
| 390 | documentation of that variable. It ignores buffers with modes | ||
| 391 | matching `global-auto-revert-ignore-modes', and buffers with a | ||
| 392 | non-nil vale of `global-auto-revert-ignore-buffer'. | ||
| 393 | |||
| 394 | This function calls the hook `global-auto-revert-mode-hook'. | ||
| 395 | It displays the text that `global-auto-revert-mode-text' | ||
| 396 | specifies 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 |