* fileio.c (time_error_value): Rename from special_mtime.

The old name's problems were noted by Eli Zaretskii in
<http://lists.gnu.org/archive/html/emacs-devel/2012-07/msg00087.html>.
This commit is contained in:
Paul Eggert 2012-07-04 10:11:11 -07:00
parent 065c9eb405
commit f094125348
2 changed files with 8 additions and 4 deletions

View file

@ -1,5 +1,9 @@
2012-07-04 Paul Eggert <eggert@cs.ucla.edu>
* fileio.c (time_error_value): Rename from special_mtime.
The old name's problems were noted by Eli Zaretskii in
<http://lists.gnu.org/archive/html/emacs-devel/2012-07/msg00087.html>.
* emacs.c (gdb_pvec_type): Change it back to enum pvec_type.
This variable's comment says Emacs needs at least one GDB-visible
symbol of type enum pvec_type, to work around GDB problems.

View file

@ -3213,9 +3213,9 @@ emacs_lseek (int fd, EMACS_INT offset, int whence)
return lseek (fd, offset, whence);
}
/* Return a special mtime value indicating the error number ERRNUM. */
/* Return a special time value indicating the error number ERRNUM. */
static EMACS_TIME
special_mtime (int errnum)
time_error_value (int errnum)
{
EMACS_TIME t;
int ns = (errno == ENOENT || errno == EACCES || errno == ENOTDIR
@ -3336,7 +3336,7 @@ variable `last-coding-system-used' to the coding system actually used. */)
save_errno = errno;
if (NILP (visit))
report_file_error ("Opening input file", Fcons (orig_filename, Qnil));
mtime = special_mtime (save_errno);
mtime = time_error_value (save_errno);
st.st_size = -1;
how_much = 0;
if (!NILP (Vcoding_system_for_read))
@ -5106,7 +5106,7 @@ See Info node `(elisp)Modification Time' for more details. */)
mtime = (stat (SSDATA (filename), &st) == 0
? get_stat_mtime (&st)
: special_mtime (errno));
: time_error_value (errno));
if ((EMACS_TIME_EQ (mtime, b->modtime)
/* If both exist, accept them if they are off by one second. */
|| (EMACS_TIME_VALID_P (mtime) && EMACS_TIME_VALID_P (b->modtime)