emacs-elpa-diffs
[Top][All Lists]
Advanced

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

[elpa] externals/async 0b545da 53/60: Only revert dired buffers if not r


From: Stefan Monnier
Subject: [elpa] externals/async 0b545da 53/60: Only revert dired buffers if not remote
Date: Tue, 8 Oct 2019 10:11:36 -0400 (EDT)

branch: externals/async
commit 0b545daeea9120dd54cac123c30706fef1f30e06
Author: Hinckley, Troy J <address@hidden>
Commit: Hinckley, Troy J <address@hidden>

    Only revert dired buffers if not remote
    
    Make sure that a file is not remote before we revert it, because
    otherwise we could introduce unnecessary delay.
---
 dired-async.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/dired-async.el b/dired-async.el
index 6c72606..677c169 100644
--- a/dired-async.el
+++ b/dired-async.el
@@ -163,7 +163,8 @@ Should take same args as `message'."
              (cl-loop for (_f . b) in dired-buffers
                       when (buffer-live-p b)
                       do (with-current-buffer b
-                           (when (file-exists-p default-directory)
+                         (when (and (not (file-remote-p default-directory nil 
t))
+                                    (file-exists-p default-directory))
                              (revert-buffer nil t)))))
            ;; Finally send the success message.
            (funcall dired-async-message-function



reply via email to

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