aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/fileio.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/fileio.c b/src/fileio.c
index 6e4d5a81004..1615bca3781 100644
--- a/src/fileio.c
+++ b/src/fileio.c
@@ -5628,13 +5628,17 @@ Next attempt to save will certainly not complain of a discrepancy. */)
5628DEFUN ("visited-file-modtime", Fvisited_file_modtime, 5628DEFUN ("visited-file-modtime", Fvisited_file_modtime,
5629 Svisited_file_modtime, 0, 0, 0, 5629 Svisited_file_modtime, 0, 0, 0,
5630 doc: /* Return the current buffer's recorded visited file modification time. 5630 doc: /* Return the current buffer's recorded visited file modification time.
5631The value is a list of the form (HIGH . LOW), like the time values 5631The value is a list of the form (HIGH LOW), like the time values
5632that `file-attributes' returns. If the current buffer has no recorded 5632that `file-attributes' returns. If the current buffer has no recorded
5633file modification time, this function returns 0. 5633file modification time, this function returns 0.
5634See Info node `(elisp)Modification Time' for more details. */) 5634See Info node `(elisp)Modification Time' for more details. */)
5635 () 5635 ()
5636{ 5636{
5637 return long_to_cons ((unsigned long) current_buffer->modtime); 5637 Lisp_Object tcons;
5638 tcons = long_to_cons ((unsigned long) current_buffer->modtime);
5639 if (CONSP (tcons))
5640 return list2 (XCAR (tcons), XCDR (tcons));
5641 return tcons;
5638} 5642}
5639 5643
5640DEFUN ("set-visited-file-modtime", Fset_visited_file_modtime, 5644DEFUN ("set-visited-file-modtime", Fset_visited_file_modtime,