diff options
| author | Michael Albinus | 2018-11-30 12:04:57 +0100 |
|---|---|---|
| committer | Michael Albinus | 2018-11-30 12:04:57 +0100 |
| commit | c53e7f2c23bf02069469e764bf8563244ef6751a (patch) | |
| tree | 82adf41e1e29b02ddb67cac240bfe59bda3c659a | |
| parent | 5f67353da7af3ebb8fdf7bc4953e112fe1a33689 (diff) | |
| download | emacs-c53e7f2c23bf02069469e764bf8563244ef6751a.tar.gz emacs-c53e7f2c23bf02069469e764bf8563244ef6751a.zip | |
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)
| -rw-r--r-- | lisp/autorevert.el | 1 |
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'" | |||
| 527 | (maphash | 527 | (maphash |
| 528 | (lambda (key _value) | 528 | (lambda (key _value) |
| 529 | (when (and | 529 | (when (and |
| 530 | (file-notify-valid-p key) | ||
| 530 | (equal (file-notify--watch-absolute-filename | 531 | (equal (file-notify--watch-absolute-filename |
| 531 | (gethash key file-notify-descriptors)) | 532 | (gethash key file-notify-descriptors)) |
| 532 | (directory-file-name file)) | 533 | (directory-file-name file)) |