diff options
| author | Eli Zaretskii | 2005-04-24 09:19:10 +0000 |
|---|---|---|
| committer | Eli Zaretskii | 2005-04-24 09:19:10 +0000 |
| commit | 7fce7dfe69a1afbb663b5cde14dd34918f027090 (patch) | |
| tree | ccfcbec86effd20eafb0d60e3682dede7730ee42 | |
| parent | 49ed33c7f519e77d1f8afac1b6cd79f61f1ddfe6 (diff) | |
| download | emacs-7fce7dfe69a1afbb663b5cde14dd34918f027090.tar.gz emacs-7fce7dfe69a1afbb663b5cde14dd34918f027090.zip | |
(Fcopy_file): Doc fix.
[MSDOS]: Fix call to emacs_open: buffer_file_type not defined and
not needed.
| -rw-r--r-- | src/ChangeLog | 6 | ||||
| -rw-r--r-- | src/fileio.c | 19 |
2 files changed, 16 insertions, 9 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 62321dc64ae..4de54bcb7b1 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2005-04-24 Eli Zaretskii <eliz@gnu.org> | ||
| 2 | |||
| 3 | * fileio.c (Fcopy_file): Doc fix. | ||
| 4 | [MSDOS]: Fix call to emacs_open: buffer_file_type not defined and | ||
| 5 | not needed. | ||
| 6 | |||
| 1 | 2005-04-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> | 7 | 2005-04-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
| 2 | 8 | ||
| 3 | * Makefile.in [HAVE_CARBON] (MAC_OBJ): Add macselect.o. | 9 | * Makefile.in [HAVE_CARBON] (MAC_OBJ): Add macselect.o. |
diff --git a/src/fileio.c b/src/fileio.c index aaf75da4abb..45c9d3463f7 100644 --- a/src/fileio.c +++ b/src/fileio.c | |||
| @@ -2400,14 +2400,15 @@ Always sets the file modes of the output file to match the input file. | |||
| 2400 | 2400 | ||
| 2401 | Fourth arg KEEP-TIME non-nil means give the output file the same | 2401 | Fourth arg KEEP-TIME non-nil means give the output file the same |
| 2402 | last-modified time as the old one. (This works on only some systems.) | 2402 | last-modified time as the old one. (This works on only some systems.) |
| 2403 | The optional fifth arg MUSTBENEW, if non-nil, insists on a check | ||
| 2404 | for an existing file with the same name. If MUSTBENEW is `excl', | ||
| 2405 | that means to get an error if the file already exists; never overwrite. | ||
| 2406 | If MUSTBENEW is neither nil nor `excl', that means ask for | ||
| 2407 | confirmation before overwriting, but do go ahead and overwrite the file | ||
| 2408 | if the user confirms. | ||
| 2409 | 2403 | ||
| 2410 | A prefix arg makes KEEP-TIME non-nil. */) | 2404 | A prefix arg makes KEEP-TIME non-nil. |
| 2405 | |||
| 2406 | The optional fifth arg MUSTBENEW, if non-nil, insists on a check | ||
| 2407 | for an existing file with the same name. If MUSTBENEW is `excl', | ||
| 2408 | that means to get an error if the file already exists; never overwrite. | ||
| 2409 | If MUSTBENEW is neither nil nor `excl', that means ask for | ||
| 2410 | confirmation before overwriting, but do go ahead and overwrite the file | ||
| 2411 | if the user confirms. */) | ||
| 2411 | (file, newname, ok_if_already_exists, keep_time, mustbenew) | 2412 | (file, newname, ok_if_already_exists, keep_time, mustbenew) |
| 2412 | Lisp_Object file, newname, ok_if_already_exists, keep_time, mustbenew; | 2413 | Lisp_Object file, newname, ok_if_already_exists, keep_time, mustbenew; |
| 2413 | { | 2414 | { |
| @@ -2529,8 +2530,8 @@ A prefix arg makes KEEP-TIME non-nil. */) | |||
| 2529 | #ifdef MSDOS | 2530 | #ifdef MSDOS |
| 2530 | /* System's default file type was set to binary by _fmode in emacs.c. */ | 2531 | /* System's default file type was set to binary by _fmode in emacs.c. */ |
| 2531 | ofd = emacs_open (SDATA (encoded_newname), | 2532 | ofd = emacs_open (SDATA (encoded_newname), |
| 2532 | O_WRONLY | O_CREAT | buffer_file_type | 2533 | O_WRONLY | O_TRUNC | O_CREAT |
| 2533 | | (EQ (mustbenew, Qexcl) ? O_EXCL : O_TRUNC), | 2534 | | (EQ (mustbenew, Qexcl) ? O_EXCL : 0), |
| 2534 | S_IREAD | S_IWRITE); | 2535 | S_IREAD | S_IWRITE); |
| 2535 | #else /* not MSDOS */ | 2536 | #else /* not MSDOS */ |
| 2536 | ofd = emacs_open (SDATA (encoded_newname), | 2537 | ofd = emacs_open (SDATA (encoded_newname), |