emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

emacs-27 8a92030: Fix hang in autorevert-tests.el


From: Michael Albinus
Subject: emacs-27 8a92030: Fix hang in autorevert-tests.el
Date: Sun, 28 Mar 2021 15:06:32 -0400 (EDT)

branch: emacs-27
commit 8a92030f6af29c8b4892218052c2f8da00c45806
Author: Michael Albinus <michael.albinus@gmx.de>
Commit: Michael Albinus <michael.albinus@gmx.de>

    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.
---
 test/lisp/autorevert-tests.el | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/test/lisp/autorevert-tests.el b/test/lisp/autorevert-tests.el
index 6ced9a1..8b8313d 100644
--- a/test/lisp/autorevert-tests.el
+++ b/test/lisp/autorevert-tests.el
@@ -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)))))
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]