[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] Changes to emacs/lisp/autorevert.el [emacs-unicode-2]
From: |
Miles Bader |
Subject: |
[Emacs-diffs] Changes to emacs/lisp/autorevert.el [emacs-unicode-2] |
Date: |
Fri, 23 Jul 2004 00:34:03 -0400 |
Index: emacs/lisp/autorevert.el
diff -c emacs/lisp/autorevert.el:1.15.8.3 emacs/lisp/autorevert.el:1.15.8.4
*** emacs/lisp/autorevert.el:1.15.8.3 Sat Jul 17 02:46:46 2004
--- emacs/lisp/autorevert.el Fri Jul 23 04:30:38 2004
***************
*** 34,40 ****
;;
;; This package contains two minor modes: Global Auto-Revert Mode and
;; Auto-Revert Mode. Both modes automatically revert buffers
! ;; whenever the corresponding files have been changed on disk.
;;
;; Auto-Revert Mode can be activated for individual buffers. Global
;; Auto-Revert Mode applies to all file buffers. (If the user option
--- 34,41 ----
;;
;; This package contains two minor modes: Global Auto-Revert Mode and
;; Auto-Revert Mode. Both modes automatically revert buffers
! ;; whenever the corresponding files have been changed on disk and the
! ;; buffer contains no unsaved changes.
;;
;; Auto-Revert Mode can be activated for individual buffers. Global
;; Auto-Revert Mode applies to all file buffers. (If the user option
***************
*** 59,64 ****
--- 60,72 ----
;; Just put point at the end of the buffer and it will stay there.
;; These rules apply to file buffers. For non-file buffers, the
;; behavior may be mode dependent.
+ ;;
+ ;; While you can use Auto Revert Mode to tail a file, this package
+ ;; contains a third minor mode, Auto Revert Tail Mode, which does so
+ ;; more efficiently, as long as you are sure that the file will only
+ ;; change by growing at the end. It only appends the new output,
+ ;; instead of reverting the entire buffer. It does so even if the
+ ;; buffer contains unsaved changes. (Because they will not be lost.)
;; Usage:
;;
***************
*** 389,395 ****
(not (file-remote-p buffer-file-name))
(file-readable-p buffer-file-name)
(not (verify-visited-file-modtime buffer)))
! (and (or auto-revert-mode auto-revert-tail-mode
global-auto-revert-non-file-buffers)
revert-buffer-function
(boundp 'buffer-stale-function)
--- 397,403 ----
(not (file-remote-p buffer-file-name))
(file-readable-p buffer-file-name)
(not (verify-visited-file-modtime buffer)))
! (and (or auto-revert-mode
global-auto-revert-non-file-buffers)
revert-buffer-function
(boundp 'buffer-stale-function)