Use Org duration library
commit7e8cf5f4c202f51231d444f41735a4db06cb7052
authorNicolas Goaziou <mail@nicolasgoaziou.fr>
Wed, 8 Feb 2017 21:24:32 +0000 (8 22:24 +0100)
committerNicolas Goaziou <mail@nicolasgoaziou.fr>
Mon, 13 Feb 2017 13:41:15 +0000 (13 14:41 +0100)
treefd9501833710815c1283908df620837ada7d0a4e
parent1d39286183f82a102975001329eb0df00b7996d0
Use Org duration library

* contrib/lisp/org-depend.el (org-depend-trigger-todo): Use new
  functions.

* contrib/lisp/org-invoice.el (org-invoice-heading-info):
(org-invoice-info-to-table):
(org-invoice-list-to-table): Use new functions.

* contrib/lisp/ox-taskjuggler.el (org-taskjuggler--build-task): Use
  new functions.

* lisp/org-agenda.el (org-agenda-show-clocking-issues):
(org-agenda-format-item):
(org-agenda-filter-effort-form): Use new functions.

* lisp/org-clock.el (org-clock-get-clock-string):
(org-clock-modify-effort-estimate):
(org-clock-notify-once-if-expired):
(org-clock-out):
(org-clock-display):
(org-clock-put-overlay):
(org-clocktable-write-default): Use new functions.

* lisp/org-table.el (org-table-sort-lines): Use new functions.

* lisp/org.el (org-properties-postprocess-alist):
(org-refresh-effort-properties):
(org-set-effort):
(org-entry-properties):
(org-property-next-allowed-value): Use new functions.

(org-time-clocksum-format):
(org-time-clocksum-use-fractional):
(org-time-clocksum-use-fractional-format):
(org-time-clocksum-use-effort-durations): Declare as obsolete.  Move
to "org-compat.el".

(org-minutes-to-clocksum-string):
(org-hh:mm-string-to-minutes):
(org-duration-string-to-minutes): Declare as obsolete.  Move to
"org-compat.el".
(org-hours-to-clocksum-string): Remove function.

* lisp/org-colview.el (org-columns--collect-values): Use new
  functions.
(org-columns--duration-re): Remove variable.
(org-columns--time-to-seconds): Rename to...
(org-columns--age-to-minutes): ... this.
(org-columns--format-age): New function.
(org-columns--summary-apply-times):
(org-columns--summary-min-age):
(org-columns--summary-max-age):
(org-columns--summary-mean-age): Use new functions.

* testing/lisp/test-org-clock.el (test-org-clock-clocktable-contents-at-point):
* testing/lisp/test-org-colview.el (test-org-colview/columns-summary):
  Update tests.
12 files changed:
contrib/lisp/org-depend.el
contrib/lisp/org-invoice.el
contrib/lisp/ox-taskjuggler.el
etc/ORG-NEWS
lisp/org-agenda.el
lisp/org-clock.el
lisp/org-colview.el
lisp/org-compat.el
lisp/org-table.el
lisp/org.el
testing/lisp/test-org-clock.el
testing/lisp/test-org-colview.el