* Bug: Clocktable does not count columns for properties when using :formula % [8.3.3 (8.3.3-elpaplus @ /home/fvaresi/.emacs.d/elpa/org-plus-contrib-20160108/)]
@ 2016-01-09 8:52 Fernando Varesi
0 siblings, 0 replies; only message in thread
From: Fernando Varesi @ 2016-01-09 8:52 UTC (permalink / raw)
To: emacs-orgmode
Hi there! Let me first introduce a test case.
Example content:
===
* DONE Task A :tag1:
CLOCK: [2016-01-09 Sat 04:36]--[2016-01-09 Sat 05:20] => 0:44
* DONE Task B :tag2:
CLOCK: [2016-01-09 Sat 05:20]--[2016-01-09 Sat 05:37] => 0:17
#+BEGIN: clocktable :maxlevel 2 :scope file :formula % :properties ("TAGS")
#+END:
===
After running org-dblock-update, this was the result (note the % column):
===
#+BEGIN: clocktable :maxlevel 2 :scope file :formula % :properties ("TAGS")
#+CAPTION: Clock summary at [2016-01-09 Sat 05:49]
| TAGS | Headline | Time | % |
|--------+--------------+--------+-----|
| | *Total time* | *1:01* | 0.0 |
|--------+--------------+--------+-----|
| :tag1: | DONE Task A | 0:44 | 0.0 |
| :tag2: | DONE Task B | 0:17 | 0.0 |
#+TBLFM: $4='(org-clock-time% @2$2 $2..$3);%.1f
#+END:
===
If I remove the :properties parameters the percentage values are correct.
I fixed this locally by adding this line both when computing tcol and pcol around line 2648 of org-clock.el
(if properties (length properties) 0)
Best regards,
Fernando.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2016-01-09 8:52 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-01-09 8:52 Bug: Clocktable does not count columns for properties when using :formula % [8.3.3 (8.3.3-elpaplus @ /home/fvaresi/.emacs.d/elpa/org-plus-contrib-20160108/)] Fernando Varesi
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).