diff options
| author | Paul Eggert | 2022-10-13 01:48:10 -0700 |
|---|---|---|
| committer | Paul Eggert | 2022-10-13 01:48:29 -0700 |
| commit | 97de273dca8d97039131f9d3f29b2820b5497805 (patch) | |
| tree | 031219304fc0df40b0fb0ad06277d68f220d143b /src | |
| parent | 12f261c4708d58362c9e080a686b0e41821c6db8 (diff) | |
| download | emacs-97de273dca8d97039131f9d3f29b2820b5497805.tar.gz emacs-97de273dca8d97039131f9d3f29b2820b5497805.zip | |
Simplify recent "File exists" fix
* src/fileio.c (Finsert_file_contents):
Simplify previous change that fixed bug#42431.
Diffstat (limited to 'src')
| -rw-r--r-- | src/fileio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fileio.c b/src/fileio.c index a2388898034..49553f3c91f 100644 --- a/src/fileio.c +++ b/src/fileio.c | |||
| @@ -5000,7 +5000,7 @@ by calling `format-decode', which see. */) | |||
| 5000 | unbind_to (count1, Qnil); | 5000 | unbind_to (count1, Qnil); |
| 5001 | } | 5001 | } |
| 5002 | 5002 | ||
| 5003 | if (NILP (handler) && !NILP (visit) && current_buffer->modtime.tv_nsec < 0) | 5003 | if (save_errno != 0) |
| 5004 | { | 5004 | { |
| 5005 | /* Signal an error if visiting a file that could not be opened. */ | 5005 | /* Signal an error if visiting a file that could not be opened. */ |
| 5006 | report_file_errno ("Opening input file", orig_filename, save_errno); | 5006 | report_file_errno ("Opening input file", orig_filename, save_errno); |