Fix hang in autorevert-tests.el
* test/lisp/autorevert-tests.el (auto-revert--wait-for-revert): Apply more robust check, whether file notification is used.
This commit is contained in:
parent
91eea74229
commit
8a92030f6a
1 changed files with 3 additions and 1 deletions
|
@ -131,7 +131,9 @@ This expects `auto-revert--messages' to be bound by
|
|||
(format-message
|
||||
"Reverting buffer `%s'\\." (buffer-name buffer))
|
||||
auto-revert--messages)))
|
||||
(if (with-current-buffer buffer auto-revert-use-notify)
|
||||
(if (and (or file-notify--library
|
||||
(file-remote-p temporary-file-directory))
|
||||
(with-current-buffer buffer auto-revert-use-notify))
|
||||
(read-event nil nil 0.1)
|
||||
(sleep-for 0.1)))))
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue