aboutsummaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorPaul Eggert2017-09-10 22:07:30 -0700
committerPaul Eggert2017-09-10 22:31:23 -0700
commite22794867d878d53675fcc91d2ef1ad2494a2ff2 (patch)
tree49339927ea210b509507e704067cfe689145fc00 /etc
parentcf9891e14e48a93bca2065fdd7998f5f677786dc (diff)
downloademacs-e22794867d878d53675fcc91d2ef1ad2494a2ff2.tar.gz
emacs-e22794867d878d53675fcc91d2ef1ad2494a2ff2.zip
Make copy-directory act like copy-file etc.
Do the special dance with the destination only if it is a directory name, for consistency with copy-file etc. (Bug#27986). * doc/emacs/files.texi (Copying and Naming): * doc/lispref/files.texi (Create/Delete Dirs): * etc/NEWS: Document this. * lisp/files.el (copy-directory): Treat NEWNAME as special only if it is a directory name.
Diffstat (limited to 'etc')
-rw-r--r--etc/NEWS4
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/NEWS b/etc/NEWS
index 4187dd8a30a..136d4582544 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -1285,8 +1285,8 @@ documentation and had inherent races that led to security holes. A
1285call like (rename-file C D) that used the old, undocumented behavior 1285call like (rename-file C D) that used the old, undocumented behavior
1286can be written as (rename-file C (file-name-as-directory D)), a 1286can be written as (rename-file C (file-name-as-directory D)), a
1287formulation portable to both older and newer versions of Emacs. 1287formulation portable to both older and newer versions of Emacs.
1288Affected functions include add-name-to-file, copy-file, 1288Affected functions include add-name-to-file, copy-directory,
1289make-symbolic-link, and rename-file. 1289copy-file, make-symbolic-link, and rename-file.
1290 1290
1291 1291
1292* Lisp Changes in Emacs 26.1 1292* Lisp Changes in Emacs 26.1