/[emacs]/emacs/lisp/autorevert.el
ViewVC logotype

Diff of /emacs/lisp/autorevert.el

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.35 by pfeiffer, Wed Jul 14 21:06:39 2004 UTC revision 1.36 by teirllm, Sat Jul 17 20:53:22 2004 UTC
# Line 34  Line 34 
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
# Line 59  Line 60 
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  ;;  ;;
# Line 389  This is an internal function used by Aut Line 397  This is an internal function used by Aut
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)

Legend:
Removed from v.1.35  
changed lines
  Added in v.1.36

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26