Mercurial > emacs
comparison src/fileio.c @ 25597:16a9c3c6f90e
(Fwrite_region): Doc fix.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Tue, 07 Sep 1999 19:40:09 +0000 |
parents | 6671095a2649 |
children | c60d7a800e9c |
comparison
equal
deleted
inserted
replaced
25596:359d6e7a6ffc | 25597:16a9c3c6f90e |
---|---|
4267 VISIT is also the file name to lock and unlock for clash detection.\n\ | 4267 VISIT is also the file name to lock and unlock for clash detection.\n\ |
4268 If VISIT is neither t nor nil nor a string,\n\ | 4268 If VISIT is neither t nor nil nor a string,\n\ |
4269 that means do not print the \"Wrote file\" message.\n\ | 4269 that means do not print the \"Wrote file\" message.\n\ |
4270 The optional sixth arg LOCKNAME, if non-nil, specifies the name to\n\ | 4270 The optional sixth arg LOCKNAME, if non-nil, specifies the name to\n\ |
4271 use for locking and unlocking, overriding FILENAME and VISIT.\n\ | 4271 use for locking and unlocking, overriding FILENAME and VISIT.\n\ |
4272 The optional seventh arg CONFIRM, if non-nil, says ask for confirmation\n\ | 4272 The optional seventh arg MUSTBENEW, if non-nil, insists on a check\n\ |
4273 before overwriting an existing file and if equal to `excl', specifies\n\ | 4273 for an existing file with the same name. If MUSTBENEW is `excl',\n\ |
4274 that an error should be raised if the file already exists.\n\ | 4274 that means to get an error if the file already exists; never overwrite.\n\ |
4275 If MUSTBENEW is neither nil nor `excl', that means ask for\n\ | |
4276 confirmation before overwriting, but do go ahead and overwrite the file\n\ | |
4277 if the user confirms.\n\ | |
4275 Kludgy feature: if START is a string, then that string is written\n\ | 4278 Kludgy feature: if START is a string, then that string is written\n\ |
4276 to the file, instead of any buffer contents, and END is ignored.\n\ | 4279 to the file, instead of any buffer contents, and END is ignored.\n\ |
4277 \n\ | 4280 \n\ |
4278 This does code conversion according to the value of\n\ | 4281 This does code conversion according to the value of\n\ |
4279 `coding-system-for-write', `buffer-file-coding-system', or\n\ | 4282 `coding-system-for-write', `buffer-file-coding-system', or\n\ |
4280 `file-coding-system-alist', and sets the variable\n\ | 4283 `file-coding-system-alist', and sets the variable\n\ |
4281 `last-coding-system-used' to the coding system actually used.") | 4284 `last-coding-system-used' to the coding system actually used.") |
4282 | 4285 |
4283 (start, end, filename, append, visit, lockname, confirm) | 4286 (start, end, filename, append, visit, lockname, mustbenew) |
4284 Lisp_Object start, end, filename, append, visit, lockname, confirm; | 4287 Lisp_Object start, end, filename, append, visit, lockname, mustbenew; |
4285 { | 4288 { |
4286 register int desc; | 4289 register int desc; |
4287 int failure; | 4290 int failure; |
4288 int save_errno; | 4291 int save_errno; |
4289 unsigned char *fn; | 4292 unsigned char *fn; |