mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-12-23 10:34:07 +00:00
Minor cleanup for times as lists of four integers.
* doc/lispref/os.texi (Time Parsing): Time values can now be four integers. * lisp/files.el (dir-locals-directory-cache): * lisp/ps-bdf.el (bdf-file-mod-time, bdf-read-font-info): Doc fixes. * lisp/net/tramp-sh.el (tramp-do-file-attributes-with-ls): * lisp/ps-bdf.el (bdf-file-newer-than-time): Process four-integers time stamps, not two. Doc fixes.
This commit is contained in:
parent
291a654dad
commit
0c93aa38b3
@ -1,3 +1,8 @@
|
||||
2012-11-18 Paul Eggert <eggert@cs.ucla.edu>
|
||||
|
||||
Minor cleanup for times as lists of four integers.
|
||||
* os.texi (Time Parsing): Time values can now be four integers.
|
||||
|
||||
2012-11-18 Glenn Morris <rgm@gnu.org>
|
||||
|
||||
* loading.texi (How Programs Do Loading): Add eager macro expansion.
|
||||
|
@ -1373,8 +1373,8 @@ on others, years as early as 1901 do work.
|
||||
@node Time Parsing
|
||||
@section Parsing and Formatting Times
|
||||
|
||||
These functions convert time values (lists of two or three integers)
|
||||
to text in a string, and vice versa.
|
||||
These functions convert time values to text in a string, and vice versa.
|
||||
Time values are lists of two to four integers (@pxref{Time of Day}).
|
||||
|
||||
@defun date-to-time string
|
||||
This function parses the time-string @var{string} and returns the
|
||||
|
@ -1,3 +1,13 @@
|
||||
2012-11-18 Paul Eggert <eggert@cs.ucla.edu>
|
||||
|
||||
Minor cleanup for times as lists of four integers.
|
||||
* files.el (dir-locals-directory-cache):
|
||||
* ps-bdf.el (bdf-file-mod-time, bdf-read-font-info):
|
||||
Doc fixes.
|
||||
* net/tramp-sh.el (tramp-do-file-attributes-with-ls):
|
||||
* ps-bdf.el (bdf-file-newer-than-time):
|
||||
Process four-integers time stamps, not two. Doc fixes.
|
||||
|
||||
2012-11-18 Glenn Morris <rgm@gnu.org>
|
||||
|
||||
* image.el (insert-image, insert-sliced-image): Doc fix.
|
||||
|
@ -3424,7 +3424,7 @@ DIR is the name of the directory.
|
||||
CLASS is the name of a variable class (a symbol).
|
||||
MTIME is the recorded modification time of the directory-local
|
||||
variables file associated with this entry. This time is a list
|
||||
of two integers (the same format as `file-attributes'), and is
|
||||
of integers (the same format as `file-attributes'), and is
|
||||
used to test whether the cache entry is still valid.
|
||||
Alternatively, MTIME can be nil, which means the entry is always
|
||||
considered valid.")
|
||||
|
@ -1270,12 +1270,11 @@ target of the symlink differ."
|
||||
res-uid
|
||||
;; 3. File gid.
|
||||
res-gid
|
||||
;; 4. Last access time, as a list of two integers. First
|
||||
;; integer has high-order 16 bits of time, second has low 16
|
||||
;; bits.
|
||||
;; 4. Last access time, as a list of integers in the same format
|
||||
;; as `current-time'.
|
||||
;; 5. Last modification time, likewise.
|
||||
;; 6. Last status change time, likewise.
|
||||
'(0 0) '(0 0) '(0 0) ;CCC how to find out?
|
||||
'(0 0 0 0) '(0 0 0 0) '(0 0 0 0) ;CCC how to find out?
|
||||
;; 7. Size in bytes (-1, if number is out of range).
|
||||
res-size
|
||||
;; 8. File modes, as a string of ten letters or dashes as in ls -l.
|
||||
|
@ -70,20 +70,15 @@ for BDFNAME."
|
||||
|
||||
(defsubst bdf-file-mod-time (filename)
|
||||
"Return modification time of FILENAME.
|
||||
The value is a list of two integers, the first integer has high-order
|
||||
16 bits, the second has low 16 bits."
|
||||
The value is a list of integers in the same format as `current-time'."
|
||||
(nth 5 (file-attributes filename)))
|
||||
|
||||
(defun bdf-file-newer-than-time (filename mod-time)
|
||||
"Return non-nil if and only if FILENAME is newer than MOD-TIME.
|
||||
MOD-TIME is a modification time as a list of two integers, the first
|
||||
integer has high-order 16 bits, the second has low 16 bits."
|
||||
(let* ((new-mod-time (bdf-file-mod-time filename))
|
||||
(new-time (car new-mod-time))
|
||||
(time (car mod-time)))
|
||||
(or (> new-time time)
|
||||
(and (= new-time time)
|
||||
(> (nth 1 new-mod-time) (nth 1 mod-time))))))
|
||||
MOD-TIME is a modification time as a list of integers in the same
|
||||
format as `current-time'."
|
||||
(let ((new-mod-time (bdf-file-mod-time filename)))
|
||||
(time-less-p mod-time new-mod-time)))
|
||||
|
||||
(defun bdf-find-file (bdfname)
|
||||
"Return a buffer visiting a bdf file BDFNAME.
|
||||
@ -178,8 +173,8 @@ FONT-INFO is a list of the following format:
|
||||
(BDFFILE MOD-TIME FONT-BOUNDING-BOX
|
||||
RELATIVE-COMPOSE BASELINE-OFFSET CODE-RANGE MAXLEN OFFSET-VECTOR)
|
||||
|
||||
MOD-TIME is last modification time as a list of two integers, the
|
||||
first integer has high-order 16 bits, the second has low 16 bits.
|
||||
MOD-TIME is last modification time as a list of integers in the
|
||||
same format as `current-time'.
|
||||
|
||||
SIZE is a size of the font on 72 dpi device. This value is got
|
||||
from SIZE record of the font.
|
||||
|
Loading…
Reference in New Issue
Block a user