emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Bernt Hansen <bernt@norang.ca>
To: John Hendy <jw.hendy@gmail.com>
Cc: emacs-orgmode <emacs-orgmode@gnu.org>
Subject: Re: Clock table not responding to :tags?
Date: Thu, 10 Mar 2011 21:20:02 -0500	[thread overview]
Message-ID: <87r5aeflf1.fsf@norang.ca> (raw)
In-Reply-To: <AANLkTikgE_1D9W1hbZz50=+Tb-j59bUinL8dntjLBjno@mail.gmail.com> (John Hendy's message of "Thu, 10 Mar 2011 19:56:11 -0600")

John Hendy <jw.hendy@gmail.com> writes:

> Hi,
>
> I have a pretty simple file I just started at home:
> -----
> ** [2011-03-09 Wed]
> *** dinner 								:fam:
>     :LOGBOOK:
>     CLOCK: [2011-03-09 Wed 18:15]--[2011-03-09 Wed 19:00] =>  0:45
>     :END:
> *** watched music videos with Felicity/played guitar			:fam:
>     :LOGBOOK:
>     CLOCK: [2011-03-09 Wed 19:00]--[2011-03-09 Wed 19:45] =>  0:45
>     :END:
> *** cleaned up							      :chore:
>     :LOGBOOK:
>    CLOCK: [2011-03-09 Wed 20:00]--[2011-03-09 Wed 20:15] =>  0:15
>     :END:
> *** setup emacs/org-mode					       :surf:
>     :LOGBOOK:
>     CLOCK: [2011-03-09 Wed 20:15]--[2011-03-09 Wed 20:35] =>  0:20
>     :END:
> *** arch forum posting
>     :LOGBOOK:
>     CLOCK: [2011-03-09 Wed 20:35]--[2011-03-09 Wed 21:15] =>  0:40
>     :END:
> *** cribbage board						       :wood:
>     :LOGBOOK:
>     CLOCK: [2011-03-09 Thu 21:15]--[2011-03-09 Thu 21:45] =>  0:30
>     :END:
> *** sleep							      :sleep:
>     :LOGBOOK:
>     CLOCK: [2011-03-09 Thu 22:00]--[2011-03-10 Thu 05:15] =>  7:15
>     :END:
> -----
>
> But the output table doesn't seem to respond to tags...
>
> ------
>  #+BEGIN: clocktable :maxlevel 3 :scope file :tags "fam"
>  Clock summary at [2011-03-10 Thu 19:53]
>
> | L | Headline                                         | Time    |
>   |      |
> |---+--------------------------------------------------+---------+-------+------|
> |   | *Total time*                                     | *11:16* |
>   |      |
> |---+--------------------------------------------------+---------+-------+------|
> | 1 | Time tracking                                    | 11:16   |
>   |      |
> | 2 | [2011-03-09 Wed]                                 |         |
> 10:30 |      |
> | 3 | dinner                                           |         |
>   | 0:45 |
> | 3 | watched music videos with Felicity/played guitar |         |
>   | 0:45 |
> | 3 | cleaned up                                       |         |
>   | 0:15 |
> | 3 | setup emacs/org-mode                             |         |
>   | 0:20 |
> | 3 | arch forum posting                               |         |
>   | 0:40 |
> | 3 | cribbage board                                   |         |
>   | 0:30 |
> | 3 | sleep                                            |         |
>   | 7:15 |
> #+END
> -----
>
> Any suggestions? It says "Updating dynamic block 'clocktable' at line
> 12...done" when I C-c C-c, but nothing changes. This is on my Mac,
> which is a bit new... at work, if I don't use quotes around the tag, I
> get "stringp nil" or something like that. On this computer quotation
> marks or not... I don't get a response.
>
> Any suggestions?
>
> Thanks,
> John

Hi John,

This works for me but I don't have the same output table format with the
level in column 1 as you do.  What version of org-mode are you using?

--8<---------------cut here---------------start------------->8---
* Testing
** [2011-03-09 Wed]
*** dinner                                                            :fam:
    :LOGBOOK:
    CLOCK: [2011-03-09 Wed 18:15]--[2011-03-09 Wed 19:00] =>  0:45
    :END:
*** watched music videos with Felicity/played guitar                  :fam:
    :LOGBOOK:
    CLOCK: [2011-03-09 Wed 19:00]--[2011-03-09 Wed 19:45] =>  0:45
    :END:
*** cleaned up                                                      :chore:
    :LOGBOOK:
   CLOCK: [2011-03-09 Wed 20:00]--[2011-03-09 Wed 20:15] =>  0:15
    :END:
*** setup emacs/org-mode                                             :surf:
    :LOGBOOK:
    CLOCK: [2011-03-09 Wed 20:15]--[2011-03-09 Wed 20:35] =>  0:20
    :END:
*** arch forum posting
    :LOGBOOK:
    CLOCK: [2011-03-09 Wed 20:35]--[2011-03-09 Wed 21:15] =>  0:40
    :END:
*** cribbage board                                                   :wood:
    :LOGBOOK:
    CLOCK: [2011-03-09 Thu 21:15]--[2011-03-09 Thu 21:45] =>  0:30
    :END:
*** sleep                                                           :sleep:
    :LOGBOOK:
    CLOCK: [2011-03-09 Thu 22:00]--[2011-03-10 Thu 05:15] =>  7:15
    :END:

** Clock table
#+BEGIN: clocktable :maxlevel 3 :scope file :tags "fam"
Clock summary at [2011-03-10 Thu 21:15]

| Headline                                         | Time   |      |      |
|--------------------------------------------------+--------+------+------|
| *Total time*                                     | *1:30* |      |      |
|--------------------------------------------------+--------+------+------|
| Testing                                          | 1:30   |      |      |
| [2011-03-09 Wed]                                 |        | 1:30 |      |
| dinner                                           |        |      | 0:45 |
| watched music videos with Felicity/played guitar |        |      | 0:45 |
#+END
--8<---------------cut here---------------end--------------->8---

-- 
Bernt

  reply	other threads:[~2011-03-11  2:20 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-11  1:56 Clock table not responding to :tags? John Hendy
2011-03-11  2:20 ` Bernt Hansen [this message]
2011-03-11  2:39   ` John Hendy
2011-03-11  2:48     ` Bernt Hansen
2011-03-11  2:55       ` John Hendy
2011-03-11  3:22         ` John Hendy
2011-03-11  3:31         ` Bernt Hansen
2011-03-11  3:54           ` John Hendy
2011-03-11 16:07         ` Nick Dokos
2011-03-11 16:24           ` John Hendy

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=87r5aeflf1.fsf@norang.ca \
    --to=bernt@norang.ca \
    --cc=emacs-orgmode@gnu.org \
    --cc=jw.hendy@gmail.com \
    /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).