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.
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
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))
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)