From: Eric S Fraga <e.fraga@ucl.ac.uk>
To: Carsten Dominik <carsten.dominik@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: [bug] how to specify the format for clock table summaries and bug in formula calculations
Date: Mon, 30 Sep 2013 12:38:20 +0100 [thread overview]
Message-ID: <87r4c68rpv.fsf@pinto.chemeng.ucl.ac.uk> (raw)
In-Reply-To: 65BBCAEB-3A73-4372-BD99-F76F928AACC5@gmail.com
[-- Attachment #1: Type: text/plain, Size: 588 bytes --]
Carsten Dominik <carsten.dominik@gmail.com> writes:
> Hi Eric,
>
> this would be
>
> (setq org-time-clocksum-format "%d:%02d")
Thanks. This does the job perfectly! Is this documented somewhere? I
did spend quite a bit of time looking in the manual and on Worg but to
no avail.
Given that the default doesn't work in general when using the percentage
formula, it might be a good idea to update the manual to at least point
to this variable? Maybe something along the attached patch?
Thanks again,
eric
--
: Eric S Fraga (0xFFFCF67D), Emacs 24.3.50.1, Org release_8.1.1-7-gaecdf5
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-Make-reference-to-formatting-variable-for-clock-tabl.patch --]
[-- Type: text/x-diff, Size: 1624 bytes --]
From 1218a2045656c563612d4d9f494dcbc4c3225509 Mon Sep 17 00:00:00 2001
From: Eric S Fraga <e.fraga@ucl.ac.uk>
Date: Mon, 30 Sep 2013 12:36:52 +0100
Subject: [PATCH] Make reference to formatting variable for clock table formula
option
* doc/org.texi (The clock table): The formula percentage option may
not work properly with the default time summary formatting. The
documentation refers the reader to the variable that may need to be
adjusted.
---
doc/org.texi | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/doc/org.texi b/doc/org.texi
index bfbc43c..093750b 100644
--- a/doc/org.texi
+++ b/doc/org.texi
@@ -6536,9 +6536,11 @@ but you can specify your own function using the @code{:formatter} parameter.
@r{property will get its own column.}
:inherit-props @r{When this flag is @code{t}, the values for @code{:properties} will be inherited.}
:formula @r{Content of a @code{#+TBLFM} line to be added and evaluated.}
- @r{As a special case, @samp{:formula %} adds a column with % time.}
@r{If you do not specify a formula here, any existing formula}
@r{below the clock table will survive updates and be evaluated.}
+ @r{As a special case, @samp{:formula %} adds a column with % time.}
+ @r{For this special case, it may be useful to change the default}
+ @r{formatting of time summaries: see @code{org-time-clocksum-format}}
:formatter @r{A function to format clock data and insert it into the buffer.}
@end example
To get a clock summary of the current level 1 tree, for the current
--
1.8.1.2
next prev parent reply other threads:[~2013-09-30 11:38 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-09-29 12:33 [bug] how to specify the format for clock table summaries and bug in formula calculations Eric S Fraga
2013-09-29 13:21 ` Carsten Dominik
2013-09-30 11:38 ` Eric S Fraga [this message]
2013-09-29 13:24 ` Daniele Pizzolli
2013-09-30 11:38 ` Eric S Fraga
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=87r4c68rpv.fsf@pinto.chemeng.ucl.ac.uk \
--to=e.fraga@ucl.ac.uk \
--cc=carsten.dominik@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).