]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix Bug#33556
authorMichael Albinus <michael.albinus@gmx.de>
Fri, 30 Nov 2018 11:04:57 +0000 (12:04 +0100)
committerMichael Albinus <michael.albinus@gmx.de>
Fri, 30 Nov 2018 11:04:57 +0000 (12:04 +0100)
* 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)

lisp/autorevert.el

index 2cf5b427ea3f261bf9250abec5a107b131cad03a..d4cb823084ff909bf9e79596f9cf01392fd7e17f 100644 (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))