diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/fileio.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/fileio.c b/src/fileio.c index 25860721709..cb06ce57b86 100644 --- a/src/fileio.c +++ b/src/fileio.c | |||
| @@ -2411,7 +2411,6 @@ If VISIT is non-nil, BEG and END must be nil.") | |||
| 2411 | if (!NILP (handler)) | 2411 | if (!NILP (handler)) |
| 2412 | { | 2412 | { |
| 2413 | val = call5 (handler, Qinsert_file_contents, filename, visit, beg, end); | 2413 | val = call5 (handler, Qinsert_file_contents, filename, visit, beg, end); |
| 2414 | st.st_mtime = 0; | ||
| 2415 | goto handled; | 2414 | goto handled; |
| 2416 | } | 2415 | } |
| 2417 | 2416 | ||
| @@ -2656,12 +2655,8 @@ to the file, instead of any buffer contents, and END is ignored.") | |||
| 2656 | val = call6 (handler, Qwrite_region, start, end, | 2655 | val = call6 (handler, Qwrite_region, start, end, |
| 2657 | filename, append, visit); | 2656 | filename, append, visit); |
| 2658 | 2657 | ||
| 2659 | /* Do this before reporting IO error | ||
| 2660 | to avoid a "file has changed on disk" warning on | ||
| 2661 | next attempt to save. */ | ||
| 2662 | if (visiting) | 2658 | if (visiting) |
| 2663 | { | 2659 | { |
| 2664 | current_buffer->modtime = 0; | ||
| 2665 | current_buffer->save_modified = MODIFF; | 2660 | current_buffer->save_modified = MODIFF; |
| 2666 | XFASTINT (current_buffer->save_length) = Z - BEG; | 2661 | XFASTINT (current_buffer->save_length) = Z - BEG; |
| 2667 | current_buffer->filename = visit_file; | 2662 | current_buffer->filename = visit_file; |