summaryrefslogtreecommitdiff
path: root/lispref/files.texi
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>2005-04-23 16:24:59 +0000
committerRichard M. Stallman <rms@gnu.org>2005-04-23 16:24:59 +0000
commit31c8450e3d6e9003cfd73f78d80cf527c0e05a8a (patch)
tree29fa06b03bc3b0e2acec44593d92a650e161cd3b /lispref/files.texi
parentc9fa5dc9e97c2ba6ee6bd4914de44f50105d1230 (diff)
downloademacs-31c8450e3d6e9003cfd73f78d80cf527c0e05a8a.tar.gz
(Changing Files): Document MUSTBENEW arg in copy-file.
Diffstat (limited to 'lispref/files.texi')
-rw-r--r--lispref/files.texi6
1 files changed, 5 insertions, 1 deletions
diff --git a/lispref/files.texi b/lispref/files.texi
index 18a98a406c4..a98b1663822 100644
--- a/lispref/files.texi
+++ b/lispref/files.texi
@@ -1364,7 +1364,7 @@ with @code{add-name-to-file} and then deleting @var{filename} has the
same effect as renaming, aside from momentary intermediate states.
@end deffn
-@deffn Command copy-file oldname newname &optional ok-if-exists time
+@deffn Command copy-file oldname newname &optional ok-if-exists time mustbenew
This command copies the file @var{oldname} to @var{newname}. An
error is signaled if @var{oldname} does not exist. If @var{newname}
names a directory, it copies @var{oldname} into that directory,
@@ -1379,6 +1379,10 @@ This function copies the file modes, too.
In an interactive call, a prefix argument specifies a non-@code{nil}
value for @var{time}.
+
+The argument @var{mustbenew} controls whether an existing file can be
+overwritten. It works like the similarly-named argument of
+@code{write-file} (@pref{Writing to Files}).
@end deffn
@deffn Command make-symbolic-link filename newname &optional ok-if-exists