diff options
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 a032a179ee1..bbc7d86c429 100644 --- a/src/fileio.c +++ b/src/fileio.c | |||
| @@ -5541,13 +5541,17 @@ Next attempt to save will certainly not complain of a discrepancy. */) | |||
| 5541 | DEFUN ("visited-file-modtime", Fvisited_file_modtime, | 5541 | DEFUN ("visited-file-modtime", Fvisited_file_modtime, |
| 5542 | Svisited_file_modtime, 0, 0, 0, | 5542 | Svisited_file_modtime, 0, 0, 0, |
| 5543 | doc: /* Return the current buffer's recorded visited file modification time. | 5543 | doc: /* Return the current buffer's recorded visited file modification time. |
| 5544 | The value is a list of the form (HIGH . LOW), like the time values | 5544 | The value is a list of the form (HIGH LOW), like the time values |
| 5545 | that `file-attributes' returns. If the current buffer has no recorded | 5545 | that `file-attributes' returns. If the current buffer has no recorded |
| 5546 | file modification time, this function returns 0. | 5546 | file modification time, this function returns 0. |
| 5547 | See Info node `(elisp)Modification Time' for more details. */) | 5547 | See Info node `(elisp)Modification Time' for more details. */) |
| 5548 | () | 5548 | () |
| 5549 | { | 5549 | { |
| 5550 | return long_to_cons ((unsigned long) current_buffer->modtime); | 5550 | Lisp_Object tcons; |
| 5551 | tcons = long_to_cons ((unsigned long) current_buffer->modtime); | ||
| 5552 | if (CONSP (tcons)) | ||
| 5553 | return list2 (XCAR (tcons), XCDR (tcons)); | ||
| 5554 | return tcons; | ||
| 5551 | } | 5555 | } |
| 5552 | 5556 | ||
| 5553 | DEFUN ("set-visited-file-modtime", Fset_visited_file_modtime, | 5557 | DEFUN ("set-visited-file-modtime", Fset_visited_file_modtime, |