Mercurial > emacs
comparison src/fileio.c @ 59670:c31adbdf12ec
(Fcopy_file): Doc fix.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Fri, 21 Jan 2005 20:50:50 +0000 |
parents | 3912575fcded |
children | 9f1d36cee13a |
comparison
equal
deleted
inserted
replaced
59669:080df55d2c06 | 59670:c31adbdf12ec |
---|---|
2388 If NEWNAME names a directory, copy FILE there. | 2388 If NEWNAME names a directory, copy FILE there. |
2389 Signals a `file-already-exists' error if file NEWNAME already exists, | 2389 Signals a `file-already-exists' error if file NEWNAME already exists, |
2390 unless a third argument OK-IF-ALREADY-EXISTS is supplied and non-nil. | 2390 unless a third argument OK-IF-ALREADY-EXISTS is supplied and non-nil. |
2391 A number as third arg means request confirmation if NEWNAME already exists. | 2391 A number as third arg means request confirmation if NEWNAME already exists. |
2392 This is what happens in interactive use with M-x. | 2392 This is what happens in interactive use with M-x. |
2393 Always sets the file modes of the target file to match the source file. | |
2393 Fourth arg KEEP-TIME non-nil means give the new file the same | 2394 Fourth arg KEEP-TIME non-nil means give the new file the same |
2394 last-modified time as the old one. (This works on only some systems.) | 2395 last-modified time as the old one. (This works on only some systems.) |
2395 A prefix arg makes KEEP-TIME non-nil. | 2396 A prefix arg makes KEEP-TIME non-nil. */) |
2396 Also set the file modes of the target file to match the source file. */) | |
2397 (file, newname, ok_if_already_exists, keep_time) | 2397 (file, newname, ok_if_already_exists, keep_time) |
2398 Lisp_Object file, newname, ok_if_already_exists, keep_time; | 2398 Lisp_Object file, newname, ok_if_already_exists, keep_time; |
2399 { | 2399 { |
2400 int ifd, ofd, n; | 2400 int ifd, ofd, n; |
2401 char buf[16 * 1024]; | 2401 char buf[16 * 1024]; |