Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
636334d6
Commit
636334d6
authored
Jul 04, 2012
by
Andreas Schwab
Browse files
* fileio.c (Finsert_file_contents): Properly handle st_mtime
marker for non-existing file.
parent
9c46aab9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
1 deletion
+9
-1
src/ChangeLog
src/ChangeLog
+5
-0
src/fileio.c
src/fileio.c
+4
-1
No files found.
src/ChangeLog
View file @
636334d6
2012-07-03 Andreas Schwab <schwab@linux-m68k.org>
* fileio.c (Finsert_file_contents): Properly handle st_mtime
marker for non-existing file. (Bug#11852)
2012-07-03 Glenn Morris <rgm@gnu.org>
* lisp.h (Fread_file_name): Restore EXFUN (it's not a normal DEFUN
...
...
src/fileio.c
View file @
636334d6
...
...
@@ -4193,7 +4193,10 @@ variable `last-coding-system-used' to the coding system actually used. */)
if
(
NILP
(
handler
))
{
current_buffer->modtime = get_stat_mtime (&st);
if
(
st
.
st_mtime
==
-
1
)
EMACS_SET_INVALID_TIME
(
current_buffer
->
modtime
);
else
current_buffer
->
modtime
=
get_stat_mtime
(
&
st
);
current_buffer
->
modtime_size
=
st
.
st_size
;
BVAR
(
current_buffer
,
filename
)
=
orig_filename
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment