mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-15 10:30:25 -08:00
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):
This commit is contained in:
parent
2bfa42855b
commit
3aee7be62e
11 changed files with 35 additions and 38 deletions
|
|
@ -161,7 +161,7 @@ telling Microsoft that."
|
|||
(let ((exp (url-cookie-expires cookie)))
|
||||
(and (> (length exp) 0)
|
||||
(condition-case ()
|
||||
(> (float-time) (float-time (date-to-time exp)))
|
||||
(time-less-p nil (date-to-time exp))
|
||||
(error nil)))))
|
||||
|
||||
(defun url-cookie-retrieve (host &optional localpart secure)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue