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 /doc/lispref | |
| 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 'doc/lispref')
| -rw-r--r-- | doc/lispref/files.texi | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/doc/lispref/files.texi b/doc/lispref/files.texi index eacaf046370..901382fe9bd 100644 --- a/doc/lispref/files.texi +++ b/doc/lispref/files.texi | |||
| @@ -2976,8 +2976,9 @@ if they don't already exist. | |||
| 2976 | 2976 | ||
| 2977 | @deffn Command copy-directory dirname newname &optional keep-time parents copy-contents | 2977 | @deffn Command copy-directory dirname newname &optional keep-time parents copy-contents |
| 2978 | This command copies the directory named @var{dirname} to | 2978 | This command copies the directory named @var{dirname} to |
| 2979 | @var{newname}. If @var{newname} names an existing directory, | 2979 | @var{newname}. If @var{newname} is a directory name, |
| 2980 | @var{dirname} will be copied to a subdirectory there. | 2980 | @var{dirname} will be copied to a subdirectory there. |
| 2981 | @xref{Directory Names}. | ||
| 2981 | 2982 | ||
| 2982 | It always sets the file modes of the copied files to match the | 2983 | It always sets the file modes of the copied files to match the |
| 2983 | corresponding original file. | 2984 | corresponding original file. |
| @@ -2992,7 +2993,7 @@ this happens by default. | |||
| 2992 | 2993 | ||
| 2993 | The fifth argument @var{copy-contents}, if non-@code{nil}, means to | 2994 | The fifth argument @var{copy-contents}, if non-@code{nil}, means to |
| 2994 | copy the contents of @var{dirname} directly into @var{newname} if the | 2995 | copy the contents of @var{dirname} directly into @var{newname} if the |
| 2995 | latter is an existing directory, instead of copying @var{dirname} into | 2996 | latter is a directory name, instead of copying @var{dirname} into |
| 2996 | it as a subdirectory. | 2997 | it as a subdirectory. |
| 2997 | @end deffn | 2998 | @end deffn |
| 2998 | 2999 | ||