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

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

[elpa] master bcffaeb 067/187: * helm-async.el (dired-create-file): Reve


From: Michael Albinus
Subject: [elpa] master bcffaeb 067/187: * helm-async.el (dired-create-file): Revert changes in fb8f10b.
Date: Wed, 30 Dec 2015 11:49:44 +0000

branch: master
commit bcffaebca57102d40c9bec728da724c8e0510218
Author: Thierry Volpiatto <address@hidden>
Commit: Thierry Volpiatto <address@hidden>

    * helm-async.el (dired-create-file): Revert changes in fb8f10b.
---
 helm-async.el |   11 ++---------
 1 files changed, 2 insertions(+), 9 deletions(-)

diff --git a/helm-async.el b/helm-async.el
index 8254e20..dc001a8 100644
--- a/helm-async.el
+++ b/helm-async.el
@@ -196,8 +196,6 @@ old file was marked."
         (if (not to)
             (setq skipped (cons (dired-make-relative from) skipped))
           (let* ((overwrite (file-exists-p to))
-                 (attrs (file-attributes from))
-                 (from-dir-p (eq (car attrs) t))
                  (dired-overwrite-confirmed ; for dired-handle-overwrite
                   (and overwrite
                        (let ((help-form '(format "\
@@ -228,7 +226,7 @@ ESC or `q' to not overwrite any of the remaining files,
             ;; need such a construction of the target directory,
             ;; so modify the destination TO to "~/test/" instead of 
"~/test/foo/".
             (let ((destname (file-name-directory to)))
-              (when (and from-dir-p
+              (when (and (file-directory-p from)
                          (file-directory-p to)
                          (eq file-creator 'dired-copy-file))
                 (setq to destname))
@@ -239,12 +237,7 @@ ESC or `q' to not overwrite any of the remaining files,
                    (file-in-directory-p destname from)
                    (error "Cannot copy `%s' into its subdirectory `%s'"
                           from to)))
-            (if (and helm-async-be-async
-                     (or (not from-dir-p)
-                         (and from-dir-p
-                              (or (eq dired-recursive-copies 'always)
-                                  (yes-or-no-p
-                                   (format "Recursive copies of %s? " 
from))))))
+            (if helm-async-be-async
                 (if overwrite
                     (or (and dired-overwrite-confirmed
                              (push (cons from to) async-fn-list))



reply via email to

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