[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/helm b350b3a4d5 3/4: Don't handle directory creation error
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/helm b350b3a4d5 3/4: Don't handle directory creation errors when |
Date: |
Sun, 28 May 2023 13:01:45 -0400 (EDT) |
branch: elpa/helm
commit b350b3a4d56a6706a41ffe45da0e5c94f3292972
Author: Thierry Volpiatto <thievol@posteo.net>
Commit: Thierry Volpiatto <thievol@posteo.net>
Don't handle directory creation errors when
dired-create-destination-dirs is bound.
---
helm-files.el | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/helm-files.el b/helm-files.el
index eec1e30241..7cd60eb924 100644
--- a/helm-files.el
+++ b/helm-files.el
@@ -5620,7 +5620,10 @@ DESTINATION for the actions copy and rename."
dired-async-mode)
1 -1)))
(and follow (fboundp 'dired-async-mode) (dired-async-mode -1))
- (when (and (cdr files) (not (file-directory-p destination)))
+ ;; When dired-create-destination-dirs is available (emacs-27.1+) such error
+ ;; is handled later in dired-create-files.
+ (when (and (null (boundp 'dired-create-destination-dirs))
+ (cdr files) (not (file-directory-p destination)))
(error "%s: target `%s' is not a directory" action destination))
(unwind-protect
(dired-create-files