org-clock: Improve `untilnow' range behavior and performance
commitffa5f3c5198c87454a9957f81380d52d2bbb96a0
authorJack Henahan <jhenahan@me.com>
Sun, 21 Jan 2018 15:40:22 +0000 (21 10:40 -0500)
committerNicolas Goaziou <mail@nicolasgoaziou.fr>
Sun, 21 Jan 2018 22:26:22 +0000 (21 23:26 +0100)
treec470d0a4e89cc1c9bd6e13d8828928374a595e57
parentb891e46ccb72427358e3cc82c150f89d7e4eb135
org-clock: Improve `untilnow' range behavior and performance

* org-clock.el (org-clock-special-range): Set `untilnow' to use the
year -50000, rather than the earliest representable date.
(org-clock--oldest-date): Remove.

The `untilnow' range relied on the constant `org-clock--oldest-date`
to find the earliest representable date, which caused delays when
loading `org-clock' on systems where `most-negative-fixnum' is large.
This change removes that constant in favor of a simpler hack to
produce a range between the current time and before the dawn of human
civilization.  If this breaks your workflow, please report to the Time
Police.

TINYCHANGE
lisp/org-clock.el