branch: externals/async
commit efe6bdab99859815207871e5d087c31e52fe0dbb
Author: Thierry Volpiatto <[email protected]>
Commit: Thierry Volpiatto <[email protected]>
Check if dired buffer is alive before reverting (#99)
* dired-async.el (dired-async-after-file-create): Do it.
---
dired-async.el | 1 +
1 file changed, 1 insertion(+)
diff --git a/dired-async.el b/dired-async.el
index fbab33c..bc406b3 100644
--- a/dired-async.el
+++ b/dired-async.el
@@ -161,6 +161,7 @@ Should take same args as `message'."
(dired-plural-s total))))
(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))))
;; Finally send the success message.
(funcall dired-async-message-function