]> git.eshelyaron.com Git - emacs.git/commit
Remove some assumptions about timestamp format
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 25 Sep 2018 02:13:34 +0000 (19:13 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 25 Sep 2018 02:15:23 +0000 (19:15 -0700)
commitd0c77a189423dbf648ca5ae9d831a5a2e04e6947
tree0c4cf84c21071605699678116a28ebf8eadd2c3d
parent19ab7686ae42dcce1e0861bce4713c69a64eec45
Remove some assumptions about timestamp format

These changes remove some assumptions of Lisp code on timestamp
format.  Although we’re not going to change the default format any
time soon, I went looking for code that was too intimate about
details of timestamp format and removed assumptions where this was
easy to do with current Emacs primitives.
* lisp/ido.el (ido-wash-history):
Fix test for zero timestamp.
* lisp/time.el (display-time-event-handler):
Use time-less-p rather than doing it by hand.
(display-time-update): Simplify by using float-time
instead of doing the equivalent by hand.
* lisp/url/url-auth.el (url-digest-auth-make-cnonce):
* test/lisp/calendar/parse-time-tests.el (parse-time-tests):
* test/lisp/emacs-lisp/timer-tests.el (timer-test-multiple-of-time):
* test/lisp/net/tramp-tests.el:
(tramp-test19-directory-files-and-attributes)
(tramp-test22-file-times, tramp-test23-visited-file-modtime):
Don’t assume detailed format of returned Lisp timestamps.
lisp/ido.el
lisp/time.el
lisp/url/url-auth.el
test/lisp/calendar/parse-time-tests.el
test/lisp/emacs-lisp/timer-tests.el
test/lisp/net/tramp-tests.el