diff options
| author | Luc Teirlinck | 2004-07-14 22:47:11 +0000 |
|---|---|---|
| committer | Luc Teirlinck | 2004-07-14 22:47:11 +0000 |
| commit | e5fcddc8f856ed141b374a7b3787ef4cf2718a30 (patch) | |
| tree | cc0e2138581fd9cb6001cfdc7b30f4dc6bf0420f /src/fileio.c | |
| parent | 366511da44322c6ee74c32948aaa8d3f5625cb01 (diff) | |
| download | emacs-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.c | 8 |
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. */) | |||
| 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, |