From: Michael Albinus Date: Fri, 30 Nov 2018 11:04:57 +0000 (+0100) Subject: Fix Bug#33556 X-Git-Tag: emacs-27.0.90~4074 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=c53e7f2c23bf02069469e764bf8563244ef6751a;p=emacs.git 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) --- 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))