Adapt dired-create-files to copy-directory changes.

* dired-aux.el (dired-create-files): Adapt destination name to
match the new behavior of copy-directory.
This commit is contained in:
Thierry Volpiatto
2011-02-12 17:55:28 -05:00
committed by Chong Yidong
parent 33d605d0d1
commit 9de31df2dd
2 changed files with 9 additions and 0 deletions

View File

@@ -1,3 +1,8 @@
2011-02-12 Thierry Volpiatto <thierry.volpiatto@gmail.com>
* dired-aux.el (dired-create-files): Adapt destination name to
match the new behavior of copy-directory.
2011-02-12 Chong Yidong <cyd@stupidchicken.com>
* mail/mail-utils.el (mail-dont-reply-to-names): New variable,

View File

@@ -1383,6 +1383,10 @@ ESC or `q' to not overwrite any of the remaining files,
(cond ((integerp marker-char) marker-char)
(marker-char (dired-file-marker from)) ; slow
(t nil))))
(when (and (file-directory-p from)
(file-directory-p to)
(eq file-creator 'dired-copy-file))
(setq to (file-name-directory to)))
(condition-case err
(progn
(funcall file-creator from to dired-overwrite-confirmed)