diff options
| author | Richard M. Stallman | 2005-04-23 16:24:59 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2005-04-23 16:24:59 +0000 |
| commit | 31c8450e3d6e9003cfd73f78d80cf527c0e05a8a (patch) | |
| tree | 29fa06b03bc3b0e2acec44593d92a650e161cd3b | |
| parent | c9fa5dc9e97c2ba6ee6bd4914de44f50105d1230 (diff) | |
| download | emacs-31c8450e3d6e9003cfd73f78d80cf527c0e05a8a.tar.gz emacs-31c8450e3d6e9003cfd73f78d80cf527c0e05a8a.zip | |
(Changing Files): Document MUSTBENEW arg in copy-file.
| -rw-r--r-- | lispref/files.texi | 6 |
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 | |||
| 1364 | same effect as renaming, aside from momentary intermediate states. | 1364 | same effect as renaming, aside from momentary intermediate states. |
| 1365 | @end deffn | 1365 | @end deffn |
| 1366 | 1366 | ||
| 1367 | @deffn Command copy-file oldname newname &optional ok-if-exists time | 1367 | @deffn Command copy-file oldname newname &optional ok-if-exists time mustbenew |
| 1368 | This command copies the file @var{oldname} to @var{newname}. An | 1368 | This command copies the file @var{oldname} to @var{newname}. An |
| 1369 | error is signaled if @var{oldname} does not exist. If @var{newname} | 1369 | error is signaled if @var{oldname} does not exist. If @var{newname} |
| 1370 | names a directory, it copies @var{oldname} into that directory, | 1370 | names a directory, it copies @var{oldname} into that directory, |
| @@ -1379,6 +1379,10 @@ This function copies the file modes, too. | |||
| 1379 | 1379 | ||
| 1380 | In an interactive call, a prefix argument specifies a non-@code{nil} | 1380 | In an interactive call, a prefix argument specifies a non-@code{nil} |
| 1381 | value for @var{time}. | 1381 | value for @var{time}. |
| 1382 | |||
| 1383 | The argument @var{mustbenew} controls whether an existing file can be | ||
| 1384 | overwritten. It works like the similarly-named argument of | ||
| 1385 | @code{write-file} (@pref{Writing to Files}). | ||
| 1382 | @end deffn | 1386 | @end deffn |
| 1383 | 1387 | ||
| 1384 | @deffn Command make-symbolic-link filename newname &optional ok-if-exists | 1388 | @deffn Command make-symbolic-link filename newname &optional ok-if-exists |