diff options
| author | Paul Eggert | 2017-09-10 22:07:30 -0700 |
|---|---|---|
| committer | Paul Eggert | 2017-09-10 22:31:23 -0700 |
| commit | e22794867d878d53675fcc91d2ef1ad2494a2ff2 (patch) | |
| tree | 49339927ea210b509507e704067cfe689145fc00 /etc | |
| parent | cf9891e14e48a93bca2065fdd7998f5f677786dc (diff) | |
| download | emacs-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/NEWS | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -1285,8 +1285,8 @@ documentation and had inherent races that led to security holes. A | |||
| 1285 | call like (rename-file C D) that used the old, undocumented behavior | 1285 | call like (rename-file C D) that used the old, undocumented behavior |
| 1286 | can be written as (rename-file C (file-name-as-directory D)), a | 1286 | can be written as (rename-file C (file-name-as-directory D)), a |
| 1287 | formulation portable to both older and newer versions of Emacs. | 1287 | formulation portable to both older and newer versions of Emacs. |
| 1288 | Affected functions include add-name-to-file, copy-file, | 1288 | Affected functions include add-name-to-file, copy-directory, |
| 1289 | make-symbolic-link, and rename-file. | 1289 | copy-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 |