diff options
| author | Luc Teirlinck | 2004-07-17 20:55:57 +0000 |
|---|---|---|
| committer | Luc Teirlinck | 2004-07-17 20:55:57 +0000 |
| commit | 2d677766573bcf9a4fd97c195d595383d99c7d9c (patch) | |
| tree | 608e4374ae24befd0dc05ad28625fcd9103919fa | |
| parent | 26503ad20330065c10629a61b79bcfa3bfb6fec3 (diff) | |
| download | emacs-2d677766573bcf9a4fd97c195d595383d99c7d9c.tar.gz emacs-2d677766573bcf9a4fd97c195d595383d99c7d9c.zip | |
Describe `Auto Revert Tail Mode' in `Commentary' section.
(auto-revert-handler): Do not check `auto-revert-tail-mode' for
non-file buffers. We know it is nil.
| -rw-r--r-- | lisp/ChangeLog | 11 | ||||
| -rw-r--r-- | lisp/autorevert.el | 12 |
2 files changed, 19 insertions, 4 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index f508879cb01..1877f9c0281 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,10 @@ | |||
| 1 | 2004-07-17 Luc Teirlinck <teirllm@auburn.edu> | ||
| 2 | |||
| 3 | * autorevert.el: Describe `Auto Revert Tail Mode' in `Commentary' | ||
| 4 | section. | ||
| 5 | (auto-revert-handler): Do not check `auto-revert-tail-mode' for | ||
| 6 | non-file buffers. We know it is nil. | ||
| 7 | |||
| 1 | 2004-07-17 Kai Grossjohann <kai.grossjohann@gmx.net> | 8 | 2004-07-17 Kai Grossjohann <kai.grossjohann@gmx.net> |
| 2 | 9 | ||
| 3 | Sync with Tramp 2.0.43. | 10 | Sync with Tramp 2.0.43. |
| @@ -8,7 +15,7 @@ | |||
| 8 | global lock. | 15 | global lock. |
| 9 | (tramp-sh-file-name-handler): Use them to implement the global | 16 | (tramp-sh-file-name-handler): Use them to implement the global |
| 10 | lock. | 17 | lock. |
| 11 | 18 | ||
| 12 | 2004-07-13 Michael Albinus <michael.albinus@gmx.de> | 19 | 2004-07-13 Michael Albinus <michael.albinus@gmx.de> |
| 13 | 20 | ||
| 14 | * net/tramp.el (all): Code cleanup. Change all `tramp-handle-xxx' | 21 | * net/tramp.el (all): Code cleanup. Change all `tramp-handle-xxx' |
| @@ -36,7 +43,7 @@ | |||
| 36 | 43 | ||
| 37 | * net/tramp-vc.el (all): Code cleanup. Change all | 44 | * net/tramp-vc.el (all): Code cleanup. Change all |
| 38 | `tramp-handle-xxx' calls to respective `xxx` calls. | 45 | `tramp-handle-xxx' calls to respective `xxx` calls. |
| 39 | 46 | ||
| 40 | 2004-07-17 Jonathan Yavner <jyavner@member.fsf.org> | 47 | 2004-07-17 Jonathan Yavner <jyavner@member.fsf.org> |
| 41 | 48 | ||
| 42 | * emacs-lisp/testcover.el: New category "potentially-1valued" for | 49 | * emacs-lisp/testcover.el: New category "potentially-1valued" for |
diff --git a/lisp/autorevert.el b/lisp/autorevert.el index 596c7ff8997..ef438eb4b97 100644 --- a/lisp/autorevert.el +++ b/lisp/autorevert.el | |||
| @@ -34,7 +34,8 @@ | |||
| 34 | ;; | 34 | ;; |
| 35 | ;; This package contains two minor modes: Global Auto-Revert Mode and | 35 | ;; This package contains two minor modes: Global Auto-Revert Mode and |
| 36 | ;; Auto-Revert Mode. Both modes automatically revert buffers | 36 | ;; Auto-Revert Mode. Both modes automatically revert buffers |
| 37 | ;; whenever the corresponding files have been changed on disk. | 37 | ;; whenever the corresponding files have been changed on disk and the |
| 38 | ;; buffer contains no unsaved changes. | ||
| 38 | ;; | 39 | ;; |
| 39 | ;; Auto-Revert Mode can be activated for individual buffers. Global | 40 | ;; Auto-Revert Mode can be activated for individual buffers. Global |
| 40 | ;; Auto-Revert Mode applies to all file buffers. (If the user option | 41 | ;; Auto-Revert Mode applies to all file buffers. (If the user option |
| @@ -59,6 +60,13 @@ | |||
| 59 | ;; Just put point at the end of the buffer and it will stay there. | 60 | ;; Just put point at the end of the buffer and it will stay there. |
| 60 | ;; These rules apply to file buffers. For non-file buffers, the | 61 | ;; These rules apply to file buffers. For non-file buffers, the |
| 61 | ;; behavior may be mode dependent. | 62 | ;; behavior may be mode dependent. |
| 63 | ;; | ||
| 64 | ;; While you can use Auto Revert Mode to tail a file, this package | ||
| 65 | ;; contains a third minor mode, Auto Revert Tail Mode, which does so | ||
| 66 | ;; more efficiently, as long as you are sure that the file will only | ||
| 67 | ;; change by growing at the end. It only appends the new output, | ||
| 68 | ;; instead of reverting the entire buffer. It does so even if the | ||
| 69 | ;; buffer contains unsaved changes. (Because they will not be lost.) | ||
| 62 | 70 | ||
| 63 | ;; Usage: | 71 | ;; Usage: |
| 64 | ;; | 72 | ;; |
| @@ -389,7 +397,7 @@ This is an internal function used by Auto-Revert Mode." | |||
| 389 | (not (file-remote-p buffer-file-name)) | 397 | (not (file-remote-p buffer-file-name)) |
| 390 | (file-readable-p buffer-file-name) | 398 | (file-readable-p buffer-file-name) |
| 391 | (not (verify-visited-file-modtime buffer))) | 399 | (not (verify-visited-file-modtime buffer))) |
| 392 | (and (or auto-revert-mode auto-revert-tail-mode | 400 | (and (or auto-revert-mode |
| 393 | global-auto-revert-non-file-buffers) | 401 | global-auto-revert-non-file-buffers) |
| 394 | revert-buffer-function | 402 | revert-buffer-function |
| 395 | (boundp 'buffer-stale-function) | 403 | (boundp 'buffer-stale-function) |