branch: externals/async
commit 4d3b737a965224639ae76f1139f3768bc9b0c6b6
Author: Hinckley, Troy J <[email protected]>
Commit: Hinckley, Troy J <[email protected]>
Fix error from reverting to nonexistent directories
---
dired-async.el | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/dired-async.el b/dired-async.el
index bc406b3..6c72606 100644
--- a/dired-async.el
+++ b/dired-async.el
@@ -162,7 +162,9 @@ 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 (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"