aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
Diffstat (limited to 'doc')
-rw-r--r--doc/emacs/files.texi8
-rw-r--r--doc/lispref/files.texi5
2 files changed, 7 insertions, 6 deletions
diff --git a/doc/emacs/files.texi b/doc/emacs/files.texi
index 0cf46b6df1c..ca4f2239537 100644
--- a/doc/emacs/files.texi
+++ b/doc/emacs/files.texi
@@ -1572,10 +1572,10 @@ file @var{new}.
1572 1572
1573@findex copy-directory 1573@findex copy-directory
1574 @kbd{M-x copy-directory} copies directories, similar to the 1574 @kbd{M-x copy-directory} copies directories, similar to the
1575@command{cp -r} shell command. If @var{new} is an existing directory, 1575@command{cp -r} shell command. If @var{new} is a directory name, it
1576it creates a copy of the @var{old} directory and puts it in @var{new}. 1576creates a copy of the @var{old} directory and puts it in @var{new}.
1577If @var{new} is not an existing directory, it copies all the contents 1577Otherwise it copies all the contents of @var{old} into a new directory
1578of @var{old} into a new directory named @var{new}. 1578named @var{new}.
1579 1579
1580@cindex renaming files 1580@cindex renaming files
1581@findex rename-file 1581@findex rename-file
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
2978This command copies the directory named @var{dirname} to 2978This 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
2982It always sets the file modes of the copied files to match the 2983It always sets the file modes of the copied files to match the
2983corresponding original file. 2984corresponding original file.
@@ -2992,7 +2993,7 @@ this happens by default.
2992 2993
2993The fifth argument @var{copy-contents}, if non-@code{nil}, means to 2994The fifth argument @var{copy-contents}, if non-@code{nil}, means to
2994copy the contents of @var{dirname} directly into @var{newname} if the 2995copy the contents of @var{dirname} directly into @var{newname} if the
2995latter is an existing directory, instead of copying @var{dirname} into 2996latter is a directory name, instead of copying @var{dirname} into
2996it as a subdirectory. 2997it as a subdirectory.
2997@end deffn 2998@end deffn
2998 2999