diff options
| author | Richard M. Stallman | 1999-09-09 04:24:12 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1999-09-09 04:24:12 +0000 |
| commit | 72bba429ca2f0a2b93aec486804956097f89fa1e (patch) | |
| tree | 10bec4b73c13d639b0bdd671046e23b65a93f9ed /src/fileio.c | |
| parent | d3acf96b5763571c89e1b6e0ea0385eb1ad77d9a (diff) | |
| download | emacs-72bba429ca2f0a2b93aec486804956097f89fa1e.tar.gz emacs-72bba429ca2f0a2b93aec486804956097f89fa1e.zip | |
(Fwrite_region): Finish renaming CONFIRM to MUSTBENEW.
(Fwrite_region) [DOS_NT]: Handle `excl' here too.
Diffstat (limited to 'src/fileio.c')
| -rw-r--r-- | src/fileio.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/fileio.c b/src/fileio.c index 579258f5236..efe7f432e2a 100644 --- a/src/fileio.c +++ b/src/fileio.c | |||
| @@ -4412,7 +4412,7 @@ This does code conversion according to the value of\n\ | |||
| 4412 | 4412 | ||
| 4413 | filename = Fexpand_file_name (filename, Qnil); | 4413 | filename = Fexpand_file_name (filename, Qnil); |
| 4414 | 4414 | ||
| 4415 | if (! NILP (confirm) && confirm != Qexcl) | 4415 | if (! NILP (mustbenew) && mustbenew != Qexcl) |
| 4416 | barf_or_query_if_file_exists (filename, "overwrite", 1, 0, 1); | 4416 | barf_or_query_if_file_exists (filename, "overwrite", 1, 0, 1); |
| 4417 | 4417 | ||
| 4418 | if (STRINGP (visit)) | 4418 | if (STRINGP (visit)) |
| @@ -4546,11 +4546,12 @@ This does code conversion according to the value of\n\ | |||
| 4546 | #else /* not VMS */ | 4546 | #else /* not VMS */ |
| 4547 | #ifdef DOS_NT | 4547 | #ifdef DOS_NT |
| 4548 | desc = open (fn, | 4548 | desc = open (fn, |
| 4549 | O_WRONLY | O_TRUNC | O_CREAT | buffer_file_type, | 4549 | O_WRONLY | O_TRUNC | O_CREAT | buffer_file_type |
| 4550 | | (mustbenew == Qexcl ? O_EXCL : 0), | ||
| 4550 | S_IREAD | S_IWRITE); | 4551 | S_IREAD | S_IWRITE); |
| 4551 | #else /* not DOS_NT */ | 4552 | #else /* not DOS_NT */ |
| 4552 | desc = open (fn, O_WRONLY | O_TRUNC | O_CREAT | 4553 | desc = open (fn, O_WRONLY | O_TRUNC | O_CREAT |
| 4553 | | (confirm == Qexcl ? O_EXCL : 0), | 4554 | | (mustbenew == Qexcl ? O_EXCL : 0), |
| 4554 | auto_saving ? auto_save_mode_bits : 0666); | 4555 | auto_saving ? auto_save_mode_bits : 0666); |
| 4555 | #endif /* not DOS_NT */ | 4556 | #endif /* not DOS_NT */ |
| 4556 | #endif /* not VMS */ | 4557 | #endif /* not VMS */ |