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
c9d14ebc
Commit
c9d14ebc
authored
Dec 25, 1993
by
Richard M. Stallman
Browse files
(Fwrite_region): If handler, don't mess with modtime.
(Finsert_file_contents): Likewise.
parent
aec81cb6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
5 deletions
+0
-5
src/fileio.c
src/fileio.c
+0
-5
No files found.
src/fileio.c
View file @
c9d14ebc
...
...
@@ -2411,7 +2411,6 @@ If VISIT is non-nil, BEG and END must be nil.")
if
(
!
NILP
(
handler
))
{
val
=
call5
(
handler
,
Qinsert_file_contents
,
filename
,
visit
,
beg
,
end
);
st
.
st_mtime
=
0
;
goto
handled
;
}
...
...
@@ -2656,12 +2655,8 @@ to the file, instead of any buffer contents, and END is ignored.")
val
=
call6
(
handler
,
Qwrite_region
,
start
,
end
,
filename
,
append
,
visit
);
/* Do this before reporting IO error
to avoid a "file has changed on disk" warning on
next attempt to save. */
if
(
visiting
)
{
current_buffer
->
modtime
=
0
;
current_buffer
->
save_modified
=
MODIFF
;
XFASTINT
(
current_buffer
->
save_length
)
=
Z
-
BEG
;
current_buffer
->
filename
=
visit_file
;
...
...
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