comparison src/fileio.c @ 56422:36170ef90094

(Fvisited_file_modtime): Return a list of two integers, instead of a cons.
author Luc Teirlinck <teirllm@auburn.edu>
date Wed, 14 Jul 2004 22:47:11 +0000
parents 56b3ebd82889
children a86a4deb195d 3864ee1088e9 97905c4f1a42
comparison
equal deleted inserted replaced
56421:0ef3adf2dcd7 56422:36170ef90094
5626 } 5626 }
5627 5627
5628 DEFUN ("visited-file-modtime", Fvisited_file_modtime, 5628 DEFUN ("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.
5631 The value is a list of the form (HIGH . LOW), like the time values 5631 The value is a list of the form (HIGH LOW), like the time values
5632 that `file-attributes' returns. If the current buffer has no recorded 5632 that `file-attributes' returns. If the current buffer has no recorded
5633 file modification time, this function returns 0. 5633 file modification time, this function returns 0.
5634 See Info node `(elisp)Modification Time' for more details. */) 5634 See 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
5640 DEFUN ("set-visited-file-modtime", Fset_visited_file_modtime, 5644 DEFUN ("set-visited-file-modtime", Fset_visited_file_modtime,
5641 Sset_visited_file_modtime, 0, 1, 0, 5645 Sset_visited_file_modtime, 0, 1, 0,
5642 doc: /* Update buffer's recorded modification time from the visited file's time. 5646 doc: /* Update buffer's recorded modification time from the visited file's time.