aboutsummaryrefslogtreecommitdiffstats
path: root/src/fileio.c
diff options
context:
space:
mode:
authorLuc Teirlinck2004-07-14 22:47:11 +0000
committerLuc Teirlinck2004-07-14 22:47:11 +0000
commite5fcddc8f856ed141b374a7b3787ef4cf2718a30 (patch)
treecc0e2138581fd9cb6001cfdc7b30f4dc6bf0420f /src/fileio.c
parent366511da44322c6ee74c32948aaa8d3f5625cb01 (diff)
downloademacs-e5fcddc8f856ed141b374a7b3787ef4cf2718a30.tar.gz
emacs-e5fcddc8f856ed141b374a7b3787ef4cf2718a30.zip
(Fvisited_file_modtime): Return a list of two integers,
instead of a cons.
Diffstat (limited to 'src/fileio.c')
-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,