* fileio.c (Fvisited_file_modtime): Return (-1 ...) for nonexistent
files, fixing a regression from 24.2.
This commit is contained in:
parent
78f9ea875a
commit
184246dffc
2 changed files with 14 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2012-12-10 Paul Eggert <eggert@cs.ucla.edu>
|
||||||
|
|
||||||
|
* fileio.c (Fvisited_file_modtime): Return (-1 ...) for nonexistent
|
||||||
|
files, fixing a regression from 24.2.
|
||||||
|
|
||||||
2012-12-08 Jan Djärv <jan.h.d@swipnet.se>
|
2012-12-08 Jan Djärv <jan.h.d@swipnet.se>
|
||||||
|
|
||||||
* nsterm.m (fd_handler:): FD_ZERO fds (Bug#13103).
|
* nsterm.m (fd_handler:): FD_ZERO fds (Bug#13103).
|
||||||
|
|
|
@ -5178,7 +5178,15 @@ See Info node `(elisp)Modification Time' for more details. */)
|
||||||
(void)
|
(void)
|
||||||
{
|
{
|
||||||
if (EMACS_NSECS (current_buffer->modtime) < 0)
|
if (EMACS_NSECS (current_buffer->modtime) < 0)
|
||||||
|
{
|
||||||
|
if (EMACS_NSECS (current_buffer->modtime) == NONEXISTENT_MODTIME_NSECS)
|
||||||
|
{
|
||||||
|
/* make_lisp_time won't work here if time_t is unsigned. */
|
||||||
|
return list4 (make_number (-1), make_number (65535),
|
||||||
|
make_number (0), make_number (0));
|
||||||
|
}
|
||||||
return make_number (0);
|
return make_number (0);
|
||||||
|
}
|
||||||
return make_lisp_time (current_buffer->modtime);
|
return make_lisp_time (current_buffer->modtime);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue