From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Journal versus clock tables: Opposing requirements? Date: Tue, 8 Nov 2011 10:54:43 +0100 Message-ID: <0B5C7332-F2CF-483E-B47F-ADA0EB8A03CC@gmail.com> References: <87obwogo1c.fsf@rat.lan> <87bosngf3t.fsf@rat.lan> Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([140.186.70.92]:60476) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RNiOH-00021p-RK for emacs-orgmode@gnu.org; Tue, 08 Nov 2011 04:54:50 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RNiOG-0001Kv-Db for emacs-orgmode@gnu.org; Tue, 08 Nov 2011 04:54:49 -0500 Received: from mail-ey0-f169.google.com ([209.85.215.169]:43094) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RNiOG-0001Kd-42 for emacs-orgmode@gnu.org; Tue, 08 Nov 2011 04:54:48 -0500 Received: by eye4 with SMTP id 4so186311eye.0 for ; Tue, 08 Nov 2011 01:54:47 -0800 (PST) In-Reply-To: <87bosngf3t.fsf@rat.lan> 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: Olaf Dietsche Cc: emacs-orgmode@gnu.org, Tommy Kelly On Nov 8, 2011, at 10:04 AM, Olaf Dietsche wrote: > Tommy Kelly writes: > >>> OK, that might be what I need then. I thought clock tables grouped >>> things by headings, not by tags. I'll have a look at the manual. >> >> I'm trying the tagging thing within clock tables, but I can't get it >> working at all. I've attached a tag to a single headline, and checked >> that I've got that right by using "C-c a m". Then I added a :tags item >> to my clock table block but it seems to have no effect. Is this valid: >> >> #+BEGIN: clocktable :maxlevel 2 :scope file :block thisweek :step week >> :indent :tags test_tag >> #+END: >> >> I've also tried :tags 'test_tag', :tags '+test_tag' and a bunch of >> other things, but nothing seems to do anything. What I was expecting >> was that my clock table, currently filled with lots of items, would be >> reduced to looking only at the single headline that I've tagged. But >> it's not -- it just stays as it was before. > > I haven't tried this myself, just looking at the manual. But playing > around, it seems you need double quotes around your tags match. Yes. The clock table parameters are read as lisp syntax, and the match is a string. HTH - Carsten > > Here's a simple example for a start: > > Tagged clock tables -*- mode: org; fill-column: 78 -*- > > * Shopping :errands: > :CLOCK: > CLOCK: [2011-11-07 Mo 09:45]--[2011-11-07 Mo 09:50] => 0:05 > :END: > * Cleaning :house: > :CLOCK: > CLOCK: [2011-11-07 Mo 08:50]--[2011-11-07 Mo 09:05] => 0:15 > :END: > * Kids :children: > :CLOCK: > CLOCK: [2011-11-07 Mo 08:30]--[2011-11-07 Mo 08:50] => 0:20 > :END: > * Homework :children: > :CLOCK: > CLOCK: [2011-11-07 Mo 13:40]--[2011-11-07 Mo 14:05] => 0:25 > :END: > * Exercises :health: > :CLOCK: > CLOCK: [2011-11-07 Mo 07:30]--[2011-11-07 Mo 07:50] => 0:20 > :END: > > #+BEGIN: clocktable :maxlevel 2 :scope file :tags "health" > Clock summary at [2011-11-08 Di 09:57] > > | Headline | Time | > |--------------+--------| > | *Total time* | *0:20* | > |--------------+--------| > | Exercises | 0:20 | > #+END: clocktable > > #+BEGIN: clocktable :maxlevel 2 :scope file :tags "children" > Clock summary at [2011-11-08 Di 09:58] > > | Headline | Time | > |--------------+--------| > | *Total time* | *0:45* | > |--------------+--------| > | Kids | 0:20 | > | Homework | 0:25 | > #+END: clocktable > > Regards, Olaf - Carsten