emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] Clock table not responding to :tags?


From: Bernt Hansen
Subject: Re: [O] Clock table not responding to :tags?
Date: Thu, 10 Mar 2011 21:20:02 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux)

John Hendy <address@hidden> 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 via email to

[Prev in Thread] Current Thread [Next in Thread]