diff options
| author | Richard M. Stallman | 2007-08-03 03:39:09 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2007-08-03 03:39:09 +0000 |
| commit | 73ff9d42c45fed4c2202feeb1a2acbfe00fd3ad9 (patch) | |
| tree | cff3f519e7674a33f53ac5f03bcd1696dd72c1e4 /src/fileio.c | |
| parent | 1ad08acd2bf7e17cd3222f8636bb6dd662b60df7 (diff) | |
| download | emacs-73ff9d42c45fed4c2202feeb1a2acbfe00fd3ad9.tar.gz emacs-73ff9d42c45fed4c2202feeb1a2acbfe00fd3ad9.zip | |
(Fvisited_file_modtime): Use make_time.
Diffstat (limited to 'src/fileio.c')
| -rw-r--r-- | src/fileio.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/fileio.c b/src/fileio.c index 3859f9e35aa..1962035e0bd 100644 --- a/src/fileio.c +++ b/src/fileio.c | |||
| @@ -5692,11 +5692,9 @@ file modification time, this function returns 0. | |||
| 5692 | See Info node `(elisp)Modification Time' for more details. */) | 5692 | See Info node `(elisp)Modification Time' for more details. */) |
| 5693 | () | 5693 | () |
| 5694 | { | 5694 | { |
| 5695 | Lisp_Object tcons; | 5695 | if (! current_buffer->modtime) |
| 5696 | tcons = long_to_cons ((unsigned long) current_buffer->modtime); | 5696 | return make_number (0); |
| 5697 | if (CONSP (tcons)) | 5697 | return make_time ((time_t) current_buffer->modtime); |
| 5698 | return list2 (XCAR (tcons), XCDR (tcons)); | ||
| 5699 | return tcons; | ||
| 5700 | } | 5698 | } |
| 5701 | 5699 | ||
| 5702 | DEFUN ("set-visited-file-modtime", Fset_visited_file_modtime, | 5700 | DEFUN ("set-visited-file-modtime", Fset_visited_file_modtime, |