From: Paul Eggert Date: Wed, 4 Jul 2012 17:11:11 +0000 (-0700) Subject: * fileio.c (time_error_value): Rename from special_mtime. X-Git-Tag: emacs-24.2.90~1199^2~217 X-Git-Url: https://code.delx.au/gnu-emacs/commitdiff_plain/f094125348fa8512392cc315b16de957c4f35458 * fileio.c (time_error_value): Rename from special_mtime. The old name's problems were noted by Eli Zaretskii in . --- diff --git a/src/ChangeLog b/src/ChangeLog index 06f9f9370a..6493d9eab0 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,5 +1,9 @@ 2012-07-04 Paul Eggert + * fileio.c (time_error_value): Rename from special_mtime. + The old name's problems were noted by Eli Zaretskii in + . + * 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. diff --git a/src/fileio.c b/src/fileio.c index 1dadd06c28..5905c0e551 100644 --- a/src/fileio.c +++ b/src/fileio.c @@ -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)