emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/async efe6bda 45/60: Check if dired buffer is alive bef


From: Stefan Monnier
Subject: [elpa] externals/async efe6bda 45/60: Check if dired buffer is alive before reverting (#99)
Date: Tue, 8 Oct 2019 10:11:34 -0400 (EDT)

branch: externals/async
commit efe6bdab99859815207871e5d087c31e52fe0dbb
Author: Thierry Volpiatto <address@hidden>
Commit: Thierry Volpiatto <address@hidden>

    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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]