summaryrefslogtreecommitdiff
path: root/lisp/autorevert.el
diff options
context:
space:
mode:
authorMichael Albinus <michael.albinus@gmx.de>2012-03-11 19:02:48 +0100
committerMichael Albinus <michael.albinus@gmx.de>2012-03-11 19:02:48 +0100
commit8d815e3c6aa3564749c19d8a35a006508daa2b3e (patch)
tree8424b6bba8ad4510da9ba3ae296f8c61396955b4 /lisp/autorevert.el
parent8f75469172437f64824113db6ff0d0c5083bfdc6 (diff)
downloademacs-8d815e3c6aa3564749c19d8a35a006508daa2b3e.tar.gz
Fix previous patch.
Diffstat (limited to 'lisp/autorevert.el')
-rw-r--r--lisp/autorevert.el10
1 files changed, 5 insertions, 5 deletions
diff --git a/lisp/autorevert.el b/lisp/autorevert.el
index 40cf79a6428..e0bde7c6dc5 100644
--- a/lisp/autorevert.el
+++ b/lisp/autorevert.el
@@ -444,11 +444,11 @@ This is an internal function used by Auto-Revert Mode."
;; `remote-file-name-inhibit-cache' forces Tramp
;; to reread the values.
(let ((remote-file-name-inhibit-cache t))
- (file-readable-p buffer-file-name)
- (/= auto-revert-tail-pos
- (setq size
- (nth 7 (file-attributes
- buffer-file-name)))))
+ (and (file-readable-p buffer-file-name)
+ (/= auto-revert-tail-pos
+ (setq size
+ (nth 7 (file-attributes
+ buffer-file-name))))))
(and (not (file-remote-p buffer-file-name))
(file-readable-p buffer-file-name)
(not (verify-visited-file-modtime buffer)))))