aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog6
-rw-r--r--src/fileio.c19
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 @@
12005-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
12005-04-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> 72005-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
2401Fourth arg KEEP-TIME non-nil means give the output file the same 2401Fourth arg KEEP-TIME non-nil means give the output file the same
2402last-modified time as the old one. (This works on only some systems.) 2402last-modified time as the old one. (This works on only some systems.)
2403The 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
2410A prefix arg makes KEEP-TIME non-nil. */) 2404A prefix arg makes KEEP-TIME non-nil.
2405
2406The optional fifth arg MUSTBENEW, if non-nil, insists on a check
2407for an existing file with the same name. If MUSTBENEW is `excl',
2408that means to get an error if the file already exists; never overwrite.
2409If MUSTBENEW is neither nil nor `excl', that means ask for
2410confirmation before overwriting, but do go ahead and overwrite the file
2411if 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),