org-colview: Allow custom COLLECT functions for derived properties
commit2b2314d46d6dd41b3b36ae1ce3ab6884ff2acb42
authorStig Brautaset <stig@brautaset.org>
Fri, 8 Sep 2017 19:26:56 +0000 (8 20:26 +0100)
committerNicolas Goaziou <mail@nicolasgoaziou.fr>
Sun, 10 Sep 2017 09:06:43 +0000 (10 11:06 +0200)
tree8fbc7ee4a0a5d9d2256a876e0d8ba21d6344811b
parent3ab1afd0ea3fdc5e8cd33826c14a15d8e4c630df
org-colview: Allow custom COLLECT functions for derived properties

* lisp/org-colview.el (org-columns-summary-types): Allow new format.
(org-columns--summarize): Update to new summary type format.
(org-columns--collect): New function.
(org-columns--compute-spec): Apply changes.

* testing/lisp/test-org-colview.el (test-org-colview/columns-summary):
  Add test.

In addition to (LABEL . SUMMARIZE), org-columns-summary-types now
accepts (LABEL SUMMARIZE COLLECT) entries. The new COLLECT function is
called with one argument, the property being summarized.

TINYCHANGE
etc/ORG-NEWS
lisp/org-colview.el
testing/lisp/test-org-colview.el