summaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
authorMichael Albinus <michael.albinus@gmx.de>2018-11-30 12:04:57 +0100
committerMichael Albinus <michael.albinus@gmx.de>2018-11-30 12:04:57 +0100
commitc53e7f2c23bf02069469e764bf8563244ef6751a (patch)
tree82adf41e1e29b02ddb67cac240bfe59bda3c659a /lisp
parent5f67353da7af3ebb8fdf7bc4953e112fe1a33689 (diff)
downloademacs-c53e7f2c23bf02069469e764bf8563244ef6751a.tar.gz
Fix Bug#33556
* lisp/autorevert.el (auto-revert-notify-add-watch): Assert that a key in `auto-revert-notify-watch-descriptor-hash-list' is a valid file notification descriptor. (Bug#33556)
Diffstat (limited to 'lisp')
-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))