[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/async 4d3b737 52/60: Fix error from reverting to nonexi
From: |
Stefan Monnier |
Subject: |
[elpa] externals/async 4d3b737 52/60: Fix error from reverting to nonexistent directories |
Date: |
Tue, 8 Oct 2019 10:11:36 -0400 (EDT) |
branch: externals/async
commit 4d3b737a965224639ae76f1139f3768bc9b0c6b6
Author: Hinckley, Troy J <address@hidden>
Commit: Hinckley, Troy J <address@hidden>
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"
- [elpa] externals/async 953a614 26/60: Add mode line lighter for dired-async-mode, (continued)
- [elpa] externals/async 953a614 26/60: Add mode line lighter for dired-async-mode, Stefan Monnier, 2019/10/08
- [elpa] externals/async 868d927 33/60: Add .gitignore, Stefan Monnier, 2019/10/08
- [elpa] externals/async 7fa23eb 44/60: Update dired-buffers when operation ends (#99), Stefan Monnier, 2019/10/08
- [elpa] externals/async efe6bda 45/60: Check if dired buffer is alive before reverting (#99), Stefan Monnier, 2019/10/08
- [elpa] externals/async c9bd058 48/60: DRY in async-inject-variables, Stefan Monnier, 2019/10/08
- [elpa] externals/async 5863eef 28/60: Copy the autoload file when installing, Stefan Monnier, 2019/10/08
- [elpa] externals/async dea9627 31/60: Merge pull request #87 from darkfeline/async, Stefan Monnier, 2019/10/08
- [elpa] externals/async 8bb64e3 41/60: Require cl-lib., Stefan Monnier, 2019/10/08
- [elpa] externals/async 7279cc6 38/60: Remove autoload file as well when uninstalling, Stefan Monnier, 2019/10/08
- [elpa] externals/async afe10c4 30/60: Add one-shot dired-async commands, Stefan Monnier, 2019/10/08
- [elpa] externals/async 4d3b737 52/60: Fix error from reverting to nonexistent directories,
Stefan Monnier <=
- [elpa] externals/async 04e1a2c 43/60: Add async-byte-compile-file, Stefan Monnier, 2019/10/08
- [elpa] externals/async 66e6856 34/60: Merge pull request #92 from arichiardi/add-gitignore, Stefan Monnier, 2019/10/08
- [elpa] externals/async bd68cc1 58/60: Handle dotted lists as well, Stefan Monnier, 2019/10/08