changeset 61759:d9c520f08ec6

(Changing Files): Document MUSTBENEW arg in copy-file.
author Richard M. Stallman <rms@gnu.org>
date Sat, 23 Apr 2005 16:24:59 +0000
parents a01e0abcda65
children 51f159119616
files lispref/files.texi
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lispref/files.texi	Sat Apr 23 16:22:23 2005 +0000
+++ b/lispref/files.texi	Sat Apr 23 16:24:59 2005 +0000
@@ -1364,7 +1364,7 @@
 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 @@
 
 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