From: Fernando Varesi <fvaresi@gmail.com>
To: emacs-orgmode@gnu.org
Subject: 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 05:52:07 -0300 [thread overview]
Message-ID: <87vb73i18o.fsf@gmail.com> (raw)
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.
reply other threads:[~2016-01-09 8:52 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87vb73i18o.fsf@gmail.com \
--to=fvaresi@gmail.com \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).