summaryrefslogtreecommitdiff
path: root/lisp/autorevert.el
diff options
context:
space:
mode:
authorLuc Teirlinck <teirllm@auburn.edu>2004-05-27 23:45:51 +0000
committerLuc Teirlinck <teirllm@auburn.edu>2004-05-27 23:45:51 +0000
commite7893b534c0ae7620ddf3a0083b2bfe601f91dd3 (patch)
treef56d68021263ab7bb562d30951dbb222c3d1c587 /lisp/autorevert.el
parentae3b29834c776376f14b6796ec4118b132e52341 (diff)
(auto-revert-handler): Disable auto-reverting of remote files.
Diffstat (limited to 'lisp/autorevert.el')
-rw-r--r--lisp/autorevert.el1
1 files changed, 1 insertions, 0 deletions
diff --git a/lisp/autorevert.el b/lisp/autorevert.el
index 58bb6d29705..1ba48a54236 100644
--- a/lisp/autorevert.el
+++ b/lisp/autorevert.el
@@ -311,6 +311,7 @@ This is an internal function used by Auto-Revert Mode."
(unless (buffer-modified-p)
(let ((buffer (current-buffer)) revert eob eoblist)
(or (and buffer-file-name
+ (not (file-remote-p buffer-file-name))
(file-readable-p buffer-file-name)
(not (verify-visited-file-modtime buffer))
(setq revert t))