Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
7fce7dfe
Commit
7fce7dfe
authored
Apr 24, 2005
by
Eli Zaretskii
Browse files
(Fcopy_file): Doc fix.
[MSDOS]: Fix call to emacs_open: buffer_file_type not defined and not needed.
parent
49ed33c7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
9 deletions
+16
-9
src/ChangeLog
src/ChangeLog
+6
-0
src/fileio.c
src/fileio.c
+10
-9
No files found.
src/ChangeLog
View file @
7fce7dfe
2005-04-24 Eli Zaretskii <eliz@gnu.org>
* fileio.c (Fcopy_file): Doc fix.
[MSDOS]: Fix call to emacs_open: buffer_file_type not defined and
not needed.
2005-04-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
* Makefile.in [HAVE_CARBON] (MAC_OBJ): Add macselect.o.
...
...
src/fileio.c
View file @
7fce7dfe
...
...
@@ -2400,14 +2400,15 @@ Always sets the file modes of the output file to match the input file.
Fourth arg KEEP-TIME non-nil means give the output file the same
last-modified time as the old one. (This works on only some systems.)
The optional fifth arg MUSTBENEW, if non-nil, insists on a check
for an existing file with the same name. If MUSTBENEW is `excl',
that means to get an error if the file already exists; never overwrite.
If MUSTBENEW is neither nil nor `excl', that means ask for
confirmation before overwriting, but do go ahead and overwrite the file
if the user confirms.
A prefix arg makes KEEP-TIME non-nil. */)
A prefix arg makes KEEP-TIME non-nil.
The optional fifth arg MUSTBENEW, if non-nil, insists on a check
for an existing file with the same name. If MUSTBENEW is `excl',
that means to get an error if the file already exists; never overwrite.
If MUSTBENEW is neither nil nor `excl', that means ask for
confirmation before overwriting, but do go ahead and overwrite the file
if the user confirms. */
)
(
file
,
newname
,
ok_if_already_exists
,
keep_time
,
mustbenew
)
Lisp_Object
file
,
newname
,
ok_if_already_exists
,
keep_time
,
mustbenew
;
{
...
...
@@ -2529,8 +2530,8 @@ A prefix arg makes KEEP-TIME non-nil. */)
#ifdef MSDOS
/* System's default file type was set to binary by _fmode in emacs.c. */
ofd
=
emacs_open
(
SDATA
(
encoded_newname
),
O_WRONLY | O_
CREAT | buffer_file_type
| (EQ (mustbenew, Qexcl) ? O_EXCL :
O_TRUNC
),
O_WRONLY
|
O_
TRUNC
|
O_CREAT
|
(
EQ
(
mustbenew
,
Qexcl
)
?
O_EXCL
:
0
),
S_IREAD
|
S_IWRITE
);
#else
/* not MSDOS */
ofd
=
emacs_open
(
SDATA
(
encoded_newname
),
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment