[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[O] Bug: Clocktable does not count columns for properties when using :fo
From: |
Fernando Varesi |
Subject: |
[O] 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/)] |
Date: |
Sat, 09 Jan 2016 08:52:15 -0000 |
User-agent: |
Notmuch/0.21 (http://notmuchmail.org) Emacs/24.5.1 (x86_64-pc-linux-gnu) |
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.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [O] 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 <=