aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuc Teirlinck2004-02-17 02:26:58 +0000
committerLuc Teirlinck2004-02-17 02:26:58 +0000
commit8a9825f74d0c4a1e16669e0e7ccc400ec86743db (patch)
tree56cbf3178ac15425f43d9d38e03631b46d1d82b2
parent84e34002192697facaee1137ff7516f4981ca6a0 (diff)
downloademacs-8a9825f74d0c4a1e16669e0e7ccc400ec86743db.tar.gz
emacs-8a9825f74d0c4a1e16669e0e7ccc400ec86743db.zip
(auto-revert-buffer-p): Only revert dired buffers if one of
global-auto-revert-non-file-buffers or autorevert-mode is non-nil.
-rw-r--r--lisp/ChangeLog13
-rw-r--r--lisp/autorevert.el7
2 files changed, 14 insertions, 6 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index e5aad8f695f..ef3893ea83b 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,9 @@
12004-02-16 Luc Teirlinck <teirllm@auburn.edu>
2
3 * autorevert.el (auto-revert-buffer-p): Only revert dired buffers
4 if one of global-auto-revert-non-file-buffers or autorevert-mode
5 is non-nil.
6
12004-02-16 Eli Zaretskii <eliz@elta.co.il> 72004-02-16 Eli Zaretskii <eliz@elta.co.il>
2 8
3 * subr.el (delete-dups): A better implementation from Karl Heuer 9 * subr.el (delete-dups): A better implementation from Karl Heuer
@@ -6,8 +12,7 @@
62004-02-16 Matt Hodges <matt@stchem.bham.ac.uk> (tiny change) 122004-02-16 Matt Hodges <matt@stchem.bham.ac.uk> (tiny change)
7 13
8 * net/telnet.el (telnet-interrupt-subjob): Move doc string to the 14 * net/telnet.el (telnet-interrupt-subjob): Move doc string to the
9 correct place. 15 correct place. * progmodes/icon.el (icon-indent-command): Ditto.
10 * progmodes/icon.el (icon-indent-command): Ditto.
11 * textmodes/paragraphs.el (repunctuate-sentences): Ditto. 16 * textmodes/paragraphs.el (repunctuate-sentences): Ditto.
12 17
132004-02-16 Eli Zaretskii <eliz@elta.co.il> 182004-02-16 Eli Zaretskii <eliz@elta.co.il>
@@ -45,7 +50,7 @@
45 by calls to check-field; change the call to 50 by calls to check-field; change the call to
46 rmail-output-to-rmail-file such that rmail-current-message stays 51 rmail-output-to-rmail-file such that rmail-current-message stays
47 the same to avoid wrong deletion of unseen 52 the same to avoid wrong deletion of unseen
48 flags. 53 flags.
49 (rsf-add-contents-type): New function to convert old format 54 (rsf-add-contents-type): New function to convert old format
50 of rmail-spam-definitions-alist into new one. 55 of rmail-spam-definitions-alist into new one.
51 Changed prefixes of all variables and functions from 56 Changed prefixes of all variables and functions from
@@ -115,7 +120,7 @@
115 120
1162004-02-16 Dave Love <fx@gnu.org> 1212004-02-16 Dave Love <fx@gnu.org>
117 122
118 * newcomment.el (comment-insert-comment-function) 123 * newcomment.el (comment-insert-comment-function)
119 (comment-region-function, uncomment-region-function): New. 124 (comment-region-function, uncomment-region-function): New.
120 (comment-indent): Use comment-insert-comment-function. 125 (comment-indent): Use comment-insert-comment-function.
121 (uncomment-region): Use uncomment-region-function. 126 (uncomment-region): Use uncomment-region-function.
diff --git a/lisp/autorevert.el b/lisp/autorevert.el
index a720e547b20..b1f0d7b7bfa 100644
--- a/lisp/autorevert.el
+++ b/lisp/autorevert.el
@@ -297,10 +297,13 @@ Use `auto-revert-mode' to revert a particular buffer."
297 297
298(defun auto-revert-buffer-p () 298(defun auto-revert-buffer-p ()
299 "Check if current buffer should be reverted." 299 "Check if current buffer should be reverted."
300 ;; - Always include dired buffers to list. It would be too expensive 300 ;; - Always include dired buffers to list. It would be too expensive
301 ;; to test the "revert" status here each time timer launches. 301 ;; to test the "revert" status here each time timer launches.
302 ;; - Same for VC buffers. 302 ;; - Same for VC buffers.
303 (or (eq major-mode 'dired-mode) 303 (or (and (eq major-mode 'dired-mode)
304 (or (and global-auto-revert-mode
305 global-auto-revert-non-file-buffers)
306 auto-revert-mode))
304 (and (not (buffer-modified-p)) 307 (and (not (buffer-modified-p))
305 (auto-revert-vc-buffer-p)) 308 (auto-revert-vc-buffer-p))
306 (and (not (buffer-modified-p)) 309 (and (not (buffer-modified-p))