# HG changeset patch # User Richard M. Stallman # Date 1114273499 0 # Node ID d9c520f08ec6619cdfc60e828ea34603f73209f0 # Parent a01e0abcda654f7052ecef41272288fb30308937 (Changing Files): Document MUSTBENEW arg in copy-file. diff -r a01e0abcda65 -r d9c520f08ec6 lispref/files.texi --- 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