branch: externals/async
commit 0b545daeea9120dd54cac123c30706fef1f30e06
Author: Hinckley, Troy J <troy.j.hinck...@intel.com>
Commit: Hinckley, Troy J <troy.j.hinck...@intel.com>

    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