branch: externals/async commit 81dc034572e963550c5403a2b3c28047e46b4029 Merge: d17c11e 0b545da Author: Thierry Volpiatto <thierry.volpia...@gmail.com> Commit: GitHub <nore...@github.com>
Merge pull request #107 from CeleritasCelery/master Fix error from reverting to nonexistent directories --- 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"