From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric S Fraga 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 Message-ID: <87r4c68rpv.fsf@pinto.chemeng.ucl.ac.uk> References: <87ioxjbyew.fsf@ucl.ac.uk> <65BBCAEB-3A73-4372-BD99-F76F928AACC5@gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:59009) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VQboP-0003Ke-RP for emacs-orgmode@gnu.org; Mon, 30 Sep 2013 07:38:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VQboI-00072L-RK for emacs-orgmode@gnu.org; Mon, 30 Sep 2013 07:38:49 -0400 Received: from co9ehsobe004.messaging.microsoft.com ([207.46.163.27]:16866 helo=co9outboundpool.messaging.microsoft.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VQboI-000721-J0 for emacs-orgmode@gnu.org; Mon, 30 Sep 2013 07:38:42 -0400 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Carsten Dominik Cc: emacs-orgmode@gnu.org --=-=-= Content-Type: text/plain Carsten Dominik 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 --=-=-= Content-Type: text/x-diff Content-Disposition: attachment; filename="0001-Make-reference-to-formatting-variable-for-clock-tabl.patch" >From 1218a2045656c563612d4d9f494dcbc4c3225509 Mon Sep 17 00:00:00 2001 From: Eric S Fraga 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 --=-=-=--