summaryrefslogtreecommitdiff
path: root/lisp/autorevert.el
diff options
context:
space:
mode:
authorStefan Monnier <monnier@iro.umontreal.ca>2008-03-26 02:38:15 +0000
committerStefan Monnier <monnier@iro.umontreal.ca>2008-03-26 02:38:15 +0000
commitaa657fbff97a27f4a5cfee8f6818ee00c13437c0 (patch)
tree28a6a38949ec9c551bfea0d536058d96e5ef3880 /lisp/autorevert.el
parent67af6bdd7bd5a144f2d06fb70042ee00c582ac14 (diff)
downloademacs-aa657fbff97a27f4a5cfee8f6818ee00c13437c0.tar.gz
(auto-revert-buffers): Use buffer-live-p.
Diffstat (limited to 'lisp/autorevert.el')
-rw-r--r--lisp/autorevert.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/autorevert.el b/lisp/autorevert.el
index 2cca9b06568..dff842855e8 100644
--- a/lisp/autorevert.el
+++ b/lisp/autorevert.el
@@ -530,7 +530,7 @@ the timer when no buffers need to be checked."
(not (and auto-revert-stop-on-user-input
(input-pending-p))))
(let ((buf (car bufs)))
- (if (buffer-name buf) ; Buffer still alive?
+ (if (buffer-live-p buf)
(with-current-buffer buf
;; Test if someone has turned off Auto-Revert Mode in a
;; non-standard way, for example by changing major mode.