From mboxrd@z Thu Jan 1 00:00:00 1970 From: Olaf Dietsche Subject: Re: Journal versus clock tables: Opposing requirements? Date: Tue, 08 Nov 2011 10:04:06 +0100 Message-ID: <87bosngf3t.fsf@rat.lan> References: <87obwogo1c.fsf@rat.lan> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([140.186.70.92]:41789) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RNhbP-0003B2-0O for emacs-orgmode@gnu.org; Tue, 08 Nov 2011 04:04:19 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RNhbM-000184-TH for emacs-orgmode@gnu.org; Tue, 08 Nov 2011 04:04:18 -0500 Received: from www85.your-server.de ([213.133.104.85]:34960) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RNhbM-00017I-Nv for emacs-orgmode@gnu.org; Tue, 08 Nov 2011 04:04:16 -0500 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: Tommy Kelly Cc: emacs-orgmode@gnu.org --=-=-= 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. Here's a simple example for a start: --=-=-= Content-Disposition: inline; filename=clock-tags.org Content-Description: Small example 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 --=-=-=--