Commit c9d14ebc authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files

(Fwrite_region): If handler, don't mess with modtime.

(Finsert_file_contents): Likewise.
parent aec81cb6
...@@ -2411,7 +2411,6 @@ If VISIT is non-nil, BEG and END must be nil.") ...@@ -2411,7 +2411,6 @@ If VISIT is non-nil, BEG and END must be nil.")
if (!NILP (handler)) if (!NILP (handler))
{ {
val = call5 (handler, Qinsert_file_contents, filename, visit, beg, end); val = call5 (handler, Qinsert_file_contents, filename, visit, beg, end);
st.st_mtime = 0;
goto handled; goto handled;
} }
...@@ -2656,12 +2655,8 @@ to the file, instead of any buffer contents, and END is ignored.") ...@@ -2656,12 +2655,8 @@ to the file, instead of any buffer contents, and END is ignored.")
val = call6 (handler, Qwrite_region, start, end, val = call6 (handler, Qwrite_region, start, end,
filename, append, visit); 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) if (visiting)
{ {
current_buffer->modtime = 0;
current_buffer->save_modified = MODIFF; current_buffer->save_modified = MODIFF;
XFASTINT (current_buffer->save_length) = Z - BEG; XFASTINT (current_buffer->save_length) = Z - BEG;
current_buffer->filename = visit_file; current_buffer->filename = visit_file;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment