-
Notifications
You must be signed in to change notification settings - Fork 126
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix elfeed-time-duration-absolute for Emacs 24.3
The time-subtract function in Emacs 24.5 and earlier does not support float seconds. So, instead, always use float seconds and replace the time-subtract with a plain substraction (-). Emacs' encoding of time using a list of small integers was a mistake since double precision floats provide more than enough precision (53 bits) to store these time values. Also added an optional argument to support testing since overriding float-time via cl-letf wasn't working.
- Loading branch information
Showing
2 changed files
with
21 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters