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)
This commit is contained in:
Michael Albinus 2018-11-30 12:04:57 +01:00
parent 5f67353da7
commit c53e7f2c23

View file

@ -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))