Commit b885bf36 authored by Eli Zaretskii's avatar Eli Zaretskii
Browse files

Fix bug #9139 with revisiting non-existent files.

 src/fileio.c (Finsert_file_contents): If the file cannot be opened,
 set its "size" to -1.  This will set the modtime_size field of
 the corresponding buffer to -1, which is what
 verify-visited-file-modtime expects for files that do not exist.
parent ee0e9f11
2011-09-11 Eli Zaretskii <eliz@gnu.org>
* fileio.c (Finsert_file_contents): If the file cannot be opened,
set its "size" to -1. This will set the modtime_size field of
the corresponding buffer to -1, which is what
verify-visited-file-modtime expects for files that do not exist.
(Bug#9139)
2011-09-11 Paul Eggert <eggert@cs.ucla.edu>
* keymap.h (KEY_DESCRIPTION_SIZE, push_key_description): Move decls
......
......@@ -3253,6 +3253,7 @@ variable `last-coding-system-used' to the coding system actually used. */)
if (NILP (visit))
report_file_error ("Opening input file", Fcons (orig_filename, Qnil));
st.st_mtime = -1;
st.st_size = -1;
how_much = 0;
if (!NILP (Vcoding_system_for_read))
Fset (Qbuffer_file_coding_system, Vcoding_system_for_read);
......
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