34 |
;; |
;; |
35 |
;; This package contains two minor modes: Global Auto-Revert Mode and |
;; This package contains two minor modes: Global Auto-Revert Mode and |
36 |
;; Auto-Revert Mode. Both modes automatically revert buffers |
;; Auto-Revert Mode. Both modes automatically revert buffers |
37 |
;; whenever the corresponding files have been changed on disk. |
;; whenever the corresponding files have been changed on disk and the |
38 |
|
;; buffer contains no unsaved changes. |
39 |
;; |
;; |
40 |
;; Auto-Revert Mode can be activated for individual buffers. Global |
;; Auto-Revert Mode can be activated for individual buffers. Global |
41 |
;; Auto-Revert Mode applies to all file buffers. (If the user option |
;; Auto-Revert Mode applies to all file buffers. (If the user option |
60 |
;; Just put point at the end of the buffer and it will stay there. |
;; Just put point at the end of the buffer and it will stay there. |
61 |
;; These rules apply to file buffers. For non-file buffers, the |
;; These rules apply to file buffers. For non-file buffers, the |
62 |
;; behavior may be mode dependent. |
;; 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.) |
70 |
|
|
71 |
;; Usage: |
;; Usage: |
72 |
;; |
;; |
397 |
(not (file-remote-p buffer-file-name)) |
(not (file-remote-p buffer-file-name)) |
398 |
(file-readable-p buffer-file-name) |
(file-readable-p buffer-file-name) |
399 |
(not (verify-visited-file-modtime buffer))) |
(not (verify-visited-file-modtime buffer))) |
400 |
(and (or auto-revert-mode auto-revert-tail-mode |
(and (or auto-revert-mode |
401 |
global-auto-revert-non-file-buffers) |
global-auto-revert-non-file-buffers) |
402 |
revert-buffer-function |
revert-buffer-function |
403 |
(boundp 'buffer-stale-function) |
(boundp 'buffer-stale-function) |