]> git.eshelyaron.com Git - emacs.git/commit
Avoid unnecessary rounding errors in timestamps
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 22 Oct 2017 08:04:36 +0000 (01:04 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sun, 22 Oct 2017 08:07:32 +0000 (01:07 -0700)
commit3aee7be62eaf8caef6f2fab31bee79674b3abbb7
tree29226a5776f2ded9966138b98b5cef15b50ce463
parent2bfa42855bf0278497f2e4540eac2086dab254c3
Avoid unnecessary rounding errors in timestamps

Avoid the rounding errors of float-time when it’s easy.  E.g.,
replace (< (float-time a) (float-time b)) with (time-less-p a b).
* lisp/desktop.el (desktop-save):
* lisp/ecomplete.el (ecomplete-add-item):
* lisp/epg.el (epg-wait-for-completion):
* lisp/files.el (dir-locals-find-file, dir-locals-read-from-dir):
* lisp/image-dired.el (image-dired-get-thumbnail-image)
(image-dired-create-thumb-1):
* lisp/info.el (info-insert-file-contents):
* lisp/ls-lisp.el (ls-lisp-format-time):
* lisp/net/ange-ftp.el (ange-ftp-file-newer-than-file-p)
(ange-ftp-verify-visited-file-modtime):
* lisp/net/rcirc.el (rcirc-ctcp-sender-PING):
* lisp/textmodes/remember.el (remember-store-in-mailbox):
* lisp/url/url-cookie.el (url-cookie-expired-p):
Bypass float-time to avoid rounding errors.

* lisp/files.el (dir-locals-find-file):
lisp/desktop.el
lisp/ecomplete.el
lisp/epg.el
lisp/files.el
lisp/image-dired.el
lisp/info.el
lisp/ls-lisp.el
lisp/net/ange-ftp.el
lisp/net/rcirc.el
lisp/textmodes/remember.el
lisp/url/url-cookie.el