Allow more flexible customization of clocksum format
commita00a7b29183798c36ab75698a4ef5c3db4e670ec
authorToby S. Cubitt <tsc25@cantab.net>
Sun, 11 Nov 2012 22:20:24 +0000 (11 22:20 +0000)
committerNicolas Goaziou <n.goaziou@gmail.com>
Sat, 17 Nov 2012 14:39:07 +0000 (17 15:39 +0100)
treedf3717ad81150b6f588c264c5e17947c38f7c2bf
parentdaf0275085bf75ca83006317e0461c25da74c97a
Allow more flexible customization of clocksum format

* lisp/org.el (org-time-clocksum-format, org-time-clocksum-fractional-format):
in addition to a single format string, the clocksum formats can now be
plists specifying separate formats for different time units.

* lisp/org.el (org-minutes-to-clocksum-string): new function to
replace org-minutes-to-hh:mm-string, which converts a number of
minutes to a string according to the customization options.

* lisp/org-colview.el (org-columns-number-to-string): use new
org-minutes-to-clocksum-string function to format clocksum durations.

* lisp/org-clock.el: always call new org-minutes-to-clocksum-string
function when formatting time durations, instead of calling
org-minutes-to-hh:mm-string or passing org-time-clocksum-format
directly to format.
lisp/org-clock.el
lisp/org-colview.el
lisp/org.el