branch: externals/async
commit e5f8a7f2b6a5bc8f3bea98f21e8281dd341970b1
Merge: 373b32a 81dc034
Author: Thierry Volpiatto <[email protected]>
Commit: Thierry Volpiatto <[email protected]>
Merge branch 'master' of github.com:jwiegley/emacs-async
---
dired-async.el | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/dired-async.el b/dired-async.el
index bc406b3..677c169 100644
--- a/dired-async.el
+++ b/dired-async.el
@@ -162,7 +162,10 @@ Should take same args as `message'."
(when dired-buffers
(cl-loop for (_f . b) in dired-buffers
when (buffer-live-p b)
- do (with-current-buffer b (revert-buffer nil t))))
+ do (with-current-buffer b
+ (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
"Asynchronous %s of %s on %s file%s done"