aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog5
-rw-r--r--src/fileio.c5
2 files changed, 9 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index b1575f621e3..a82d2a03af8 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,8 @@
12012-07-03 Andreas Schwab <schwab@linux-m68k.org>
2
3 * fileio.c (Finsert_file_contents): Properly handle st_mtime
4 marker for non-existing file. (Bug#11852)
5
12012-07-03 Glenn Morris <rgm@gnu.org> 62012-07-03 Glenn Morris <rgm@gnu.org>
2 7
3 * lisp.h (Fread_file_name): Restore EXFUN (it's not a normal DEFUN 8 * lisp.h (Fread_file_name): Restore EXFUN (it's not a normal DEFUN
diff --git a/src/fileio.c b/src/fileio.c
index 942957030e0..820dabff53e 100644
--- a/src/fileio.c
+++ b/src/fileio.c
@@ -4193,7 +4193,10 @@ variable `last-coding-system-used' to the coding system actually used. */)
4193 4193
4194 if (NILP (handler)) 4194 if (NILP (handler))
4195 { 4195 {
4196 current_buffer->modtime = get_stat_mtime (&st); 4196 if (st.st_mtime == -1)
4197 EMACS_SET_INVALID_TIME (current_buffer->modtime);
4198 else
4199 current_buffer->modtime = get_stat_mtime (&st);
4197 current_buffer->modtime_size = st.st_size; 4200 current_buffer->modtime_size = st.st_size;
4198 BVAR (current_buffer, filename) = orig_filename; 4201 BVAR (current_buffer, filename) = orig_filename;
4199 } 4202 }