summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lisp/autorevert.el1
1 files changed, 1 insertions, 0 deletions
diff --git a/lisp/autorevert.el b/lisp/autorevert.el
index 2cf5b427ea3..d4cb823084f 100644
--- a/lisp/autorevert.el
+++ b/lisp/autorevert.el
@@ -527,6 +527,7 @@ will use an up-to-date value of `auto-revert-interval'"
(maphash
(lambda (key _value)
(when (and
+ (file-notify-valid-p key)
(equal (file-notify--watch-absolute-filename
(gethash key file-notify-descriptors))
(directory-file-name file))