From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: New clocktable code Date: Tue, 2 Nov 2010 09:40:24 +0100 Message-ID: Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from [140.186.70.92] (port=35212 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PDHC4-00044k-QN for emacs-orgmode@gnu.org; Tue, 02 Nov 2010 09:46:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PDCPs-00061j-5L for emacs-orgmode@gnu.org; Tue, 02 Nov 2010 04:40:29 -0400 Received: from mail-ey0-f169.google.com ([209.85.215.169]:60967) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PDCPr-00061U-WA for emacs-orgmode@gnu.org; Tue, 02 Nov 2010 04:40:28 -0400 Received: by eydd26 with SMTP id d26so3294164eyd.0 for ; Tue, 02 Nov 2010 01:40:27 -0700 (PDT) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Org Mode Cc: Rainer Stengele Hi everyone, I have just pushed a rewrite of the clocktable code. It has more options now, and most importantly the code is *much* cleaner. In particular, data collection and formatting are now clearly separated. Anyone who would like to hack now actually has a chance to do so in a correct way (well, Adam Elliot succeeded anyway with the old code when he implemented tags filtering, but that was a strike of genius....) Here are the new properties: :narrow An integer to limit the width of the headline column in the org table. Does not work together with `:link'. If you write it like `50!', then the headline will be be shortened literally, so that this will also work in export and with `:link'. :indent Indent each headline field according to its level. This is done by a funny string like \____, but it looks OK and works in export. :tcolumns Number of columns to be used for times. If this is smaller than `:maxlevel', lower levels will be lumped into one column. For best result, combine this with :intent t :level Should a level number column be included? :compact Abbreviation for `:level nil :indent t :narrow 40! :tcolumns 1' All are overwritten except if there is an explicit `:narrow' :formatter A function to format clock data and insert it into the buffer. Use this to make your own formatting all together. There is a new variable `org-clock-table-defaults' where you can specify defaults for all clocktable properties. Since this is a rewrite, it would be very useful if a few people who have been using clock tables in the past try this code and check if they get the same results. Thanks to Rainer Stengele for pushing me far enough to finally tackle this mess and rewrite it. - Carsten