emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* clocktable and :tags
@ 2010-06-04 23:39 Kristofer Bergstrom
  2010-06-05  0:49 ` Sebastian Rose
  0 siblings, 1 reply; 7+ messages in thread
From: Kristofer Bergstrom @ 2010-06-04 23:39 UTC (permalink / raw)
  To: emacs-orgmode

I am trying to use the clocktable dynamic block to generate monthly
time reports for my work on a particular project.  I would like to
have a tally of how much time I spent on tasks labelled with the
":ON:ADMIN:" tag.  Looking at a post by Adam Elliott from when the
clocktable block was implemented, I think I'm on the right track, but
my tables do not seem to be affected by the ":tags" option at all.  Am
I doing something silly?

Kris Bergstrom
Los Angeles CA

(In case the text below gets mangled: http://pastebin.ca/1877564 )

#+STARTUP: hidestars

* DONE Call shoj and maz about school gig		     :PHONE:ON:ADMIN:
[2010-06-01 Tue 16:05]
* DONE organize files in tempAudio 				     :CHAPPA:
  CLOCK: [2010-06-01 Tue 16:44]--[2010-06-01 Tue 16:47] =>  0:03
* DONE Buy new slip mat
** DONE Research slip mats					     :ONLINE:
** DONE Buy Butter Rugs						     :ONLINE:
   CLOCK: [2010-06-01 Tue 17:57]--[2010-06-01 Tue 18:06] =>  0:09
* DONE Get files off camera					       :HOME:
  CLOCK: [2010-06-01 Tue 17:48]--[2010-06-01 Tue 18:45] =>  0:57
** DONE Create encrypted folder
* DONE Move cash in 2555 to new Schwab checking
  CLOCK: [2010-06-01 Tue 18:49]--[2010-06-01 Tue 18:51] =>  0:02
* DONE Update sound_input_list w/ Yoko's preferences		   :ON:ADMIN:
  CLOCK: [2010-06-01 Tue 20:19]--[2010-06-01 Tue 20:24] =>  0:05
* DONE Create zip of pics for Cleveland kids			    :TPADMIN:
  CLOCK: [2010-06-01 Tue 20:27]--[2010-06-01 Tue 20:44] =>  0:17
* DONE Take On van to mechanic 					   :ON:ADMIN:
  CLOCK: [2010-06-03 Thu 08:50]--[2010-06-03 Thu 09:36] =>  0:46
* DONE review Many Sides, TsukiE, and Stroll
  :CLOCK:
  CLOCK: [2010-06-03 Thu 17:13]--[2010-06-03 Fri 17:23] =>  0:10
  CLOCK: [2010-06-03 Thu 15:03]--[2010-06-03 Thu 15:09] =>  0:06
  :END:
* DONE Fix bike pedals 						       :HOME:
  CLOCK: [2010-06-04 Fri 14:30]--[2010-06-04 Fri 14:52] =>  0:22
* DONE Water indoor/outdoor plants 				       :HOME:

#+BEGIN: clocktable :tags "ON-ADMIN" :block thismonth :maxlevel 2 :scope file
Clock summary at [2010-06-04 Fri 16:41], for June 2010.

| L | Headline                                           |   Time |      |
|---+----------------------------------------------------+--------+------|
|   | *Total time*                                       | *2:57* |      |
|---+----------------------------------------------------+--------+------|
| 1 | DONE organize files in tempAudio                   |   0:03 |      |
|---+----------------------------------------------------+--------+------|
| 1 | DONE Buy new slip mat                              |   0:09 |      |
| 2 | DONE Buy Butter Rugs                               |        | 0:09 |
|---+----------------------------------------------------+--------+------|
| 1 | DONE Get files off camera                          |   0:57 |      |
|---+----------------------------------------------------+--------+------|
| 1 | DONE Move cash in 2555 to new Schwab checking      |   0:02 |      |
|---+----------------------------------------------------+--------+------|
| 1 | DONE Update sound_input_list w/ Yoko's preferences |   0:05 |      |
|---+----------------------------------------------------+--------+------|
| 1 | DONE Create zip of pics for Cleveland kids         |   0:17 |      |
|---+----------------------------------------------------+--------+------|
| 1 | DONE Take On van to mechanic                       |   0:46 |      |
|---+----------------------------------------------------+--------+------|
| 1 | DONE review Many Sides, TsukiE, and Stroll         |   0:16 |      |
|---+----------------------------------------------------+--------+------|
| 1 | DONE Fix bike pedals                               |   0:22 |      |
#+END:

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: clocktable and :tags
  2010-06-04 23:39 Kristofer Bergstrom
@ 2010-06-05  0:49 ` Sebastian Rose
  2010-06-05  1:11   ` Kristofer Bergstrom
  0 siblings, 1 reply; 7+ messages in thread
From: Sebastian Rose @ 2010-06-05  0:49 UTC (permalink / raw)
  To: Kristofer Bergstrom; +Cc: emacs-orgmode

Kristofer Bergstrom <kris@OnEnsemble.org> writes:
> I am trying to use the clocktable dynamic block to generate monthly
> time reports for my work on a particular project.  I would like to
> have a tally of how much time I spent on tasks labelled with the
> ":ON:ADMIN:" tag.  Looking at a post by Adam Elliott from when the
> clocktable block was implemented, I think I'm on the right track, but
> my tables do not seem to be affected by the ":tags" option at all.  Am
> I doing something silly?

I don't use tags a lot here.  But from what I understand, ":ON:ADMIN"
are to tags: "ON" and "ADMIN".


> #+BEGIN: clocktable :tags "ON-ADMIN" :block thismonth :maxlevel 2 :scope file

There's a dash too much. Should be "ON ADMIN":

  #+BEGIN: clocktable :tags "ON ADMIN" ...


This works here. 


Best wishes

  Sebastian

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: clocktable and :tags
  2010-06-05  0:49 ` Sebastian Rose
@ 2010-06-05  1:11   ` Kristofer Bergstrom
  2010-06-05  1:32     ` Sebastian Rose
  0 siblings, 1 reply; 7+ messages in thread
From: Kristofer Bergstrom @ 2010-06-05  1:11 UTC (permalink / raw)
  To: emacs-orgmode

Thank you very much for the input, Sebastian.  I tried without the
dash (and typed C-c C-x C-r to update the table) but the table still
includes items not tagged ON or ADMIN, as shown below.  I've tried
with and without colons, with and without the quotes, and have tried
other tags.  I've also tried mangling the :tags option completely like
":tagsasdf" and there is no effect.  It is as if the :tags modifier is
not being read at all.  The timestamp of the clocktable is updated and
the minibuffer shows the update completing.

Does :tags functionality depend on something elsewhere that I'm forgetting?

Kris

#+BEGIN: clocktable :tags "ON ADMIN" :block thismonth :maxlevel 2 :scope file
Clock summary at [2010-06-04 Fri 18:09], for June 2010.

| L | Headline                                           |   Time |      |
|---+----------------------------------------------------+--------+------|
|   | *Total time*                                       | *2:57* |      |
|---+----------------------------------------------------+--------+------|
| 1 | DONE organize files in tempAudio                   |   0:03 |      |
|---+----------------------------------------------------+--------+------|
| 1 | DONE Buy new slip mat                              |   0:09 |      |
| 2 | DONE Buy Butter Rugs                               |        | 0:09 |
|---+----------------------------------------------------+--------+------|
| 1 | DONE Get files off camera                          |   0:57 |      |
|---+----------------------------------------------------+--------+------|
| 1 | DONE Move cash in 2555 to new Schwab checking      |   0:02 |      |
|---+----------------------------------------------------+--------+------|
| 1 | DONE Update sound_input_list w/ Yoko's preferences |   0:05 |      |
|---+----------------------------------------------------+--------+------|
| 1 | DONE Create zip of pics for Cleveland kids         |   0:17 |      |
|---+----------------------------------------------------+--------+------|
| 1 | DONE Take On van to mechanic                       |   0:46 |      |
|---+----------------------------------------------------+--------+------|
| 1 | DONE review Many Sides, TsukiE, and Stroll         |   0:16 |      |
|---+----------------------------------------------------+--------+------|
| 1 | DONE Fix bike pedals                               |   0:22 |      |
#+END:

On Fri, Jun 4, 2010 at 5:49 PM, Sebastian Rose <sebastian_rose@gmx.de> wrote:
> Kristofer Bergstrom <kris@OnEnsemble.org> writes:
>> I am trying to use the clocktable dynamic block to generate monthly
>> time reports for my work on a particular project.  I would like to
>> have a tally of how much time I spent on tasks labelled with the
>> ":ON:ADMIN:" tag.  Looking at a post by Adam Elliott from when the
>> clocktable block was implemented, I think I'm on the right track, but
>> my tables do not seem to be affected by the ":tags" option at all.  Am
>> I doing something silly?
>
> I don't use tags a lot here.  But from what I understand, ":ON:ADMIN"
> are to tags: "ON" and "ADMIN".
>
>
>> #+BEGIN: clocktable :tags "ON-ADMIN" :block thismonth :maxlevel 2 :scope file
>
> There's a dash too much. Should be "ON ADMIN":
>
>  #+BEGIN: clocktable :tags "ON ADMIN" ...
>
>
> This works here.
>
>
> Best wishes
>
>  Sebastian
>

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: clocktable and :tags
  2010-06-05  1:11   ` Kristofer Bergstrom
@ 2010-06-05  1:32     ` Sebastian Rose
  0 siblings, 0 replies; 7+ messages in thread
From: Sebastian Rose @ 2010-06-05  1:32 UTC (permalink / raw)
  To: Kristofer Bergstrom; +Cc: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 446 bytes --]

Kristofer Bergstrom <kris@OnEnsemble.org> writes:
> Thank you very much for the input, Sebastian.  I tried without the
> dash (and typed C-c C-x C-r to update the table) but the table still
> includes items not tagged ON or ADMIN, as shown below.

Use this line:

> #+BEGIN: clocktable :tags "ON ADMIN" :block thismonth :maxlevel 2 :scope file

...and just press `C-c C-c' when in that line.

Does that work?


Here it does. I get this result:



[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: Type: text/x-verbatim, Size: 745 bytes --]

#+BEGIN: clocktable :tags "ON ADMIN" :block thismonth :maxlevel 2 :scope file
Clock summary at [2010-06-05 Sa 03:28], for Juni 2010.

| L | Headline                                          |   Time |
|---+---------------------------------------------------+--------|
|   | *Total time*                                      | *0:54* |
|---+---------------------------------------------------+--------|
| 1 | DONE Call shoj and maz about school gig           |   0:03 |
|---+---------------------------------------------------+--------|
| 1 | DONE Update sound_input_list w/ Yoko's preferences |   0:05 |
|---+---------------------------------------------------+--------|
| 1 | DONE Take On van to mechanic                      |   0:46 |
#+END:

[-- Attachment #3: Type: text/plain, Size: 113 bytes --]



"DONE Call shoj and maz about school gig" is in the table, since I
switched that task to "DONE".


  Sebastian

[-- Attachment #4: Type: text/plain, Size: 201 bytes --]

_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: clocktable and :tags
@ 2010-06-05 16:16 Kristofer Bergstrom
  2010-06-05 16:37 ` Matt Lundin
  0 siblings, 1 reply; 7+ messages in thread
From: Kristofer Bergstrom @ 2010-06-05 16:16 UTC (permalink / raw)
  To: emacs-orgmode

Unfortunately, the :tags element of clocktable dynamic blocks does not
seem to be functioning properly.  Identical commands on Sebastian's
system worked fine.  The problem can be seen below in a test I'm
using.  Running C-c C-c while on the clocktable line updates the
timestamp in the clocktable, but the tags element is not being
evaluated.

Perhaps some emacs setting is causing issues?  I have tried commenting
out a few (possibly related?) entries in my .emacs file -- (setq
org-todo-keywords and (setq org-tag-alist -- but to no avail.

Or maybe I should upgrade to a newer version of org-mode?  I don't
know how to determine the current version I am using... I believe it
came preinstalled with Emacs23, which I installed from Ubuntu 9.04's
apt repositories.

Should I give up on getting :tags working and search for a workaround?

Kris

Here is my .emacs file: http://pastebin.com/eW4KSyL6

From a buffer called test.org:

#+STARTUP: hidestars

* Work-related project 1					   :ON:ADMIN:
  CLOCK: [2010-06-05 Sat 05:12]--[2010-06-05 Sat 05:22] =>  0:10
* Work-related project 2					   :ON:ADMIN:
  CLOCK: [2010-06-05 Sat 06:20]--[2010-06-05 Sat 06:25] =>  0:05
* Non work-related project 3					      :PHONE:
  CLOCK: [2010-06-05 Sat 07:33]--[2010-06-05 Sat 07:36] =>  0:03
* Non work-related project 4					     :ERRAND:
  CLOCK: [2010-06-05 Sat 08:13]--[2010-06-05 Sat 08:14] =>  0:01

#+BEGIN: clocktable :tags "PHONE" :maxlevel 2 :scope file
Clock summary at [2010-06-05 Sat 08:14]

| L | Headline                   |   Time |
|---+----------------------------+--------|
|   | *Total time*               | *0:19* |
|---+----------------------------+--------|
| 1 | Work-related project 1     |   0:10 |
|---+----------------------------+--------|
| 1 | Work-related project 2     |   0:05 |
|---+----------------------------+--------|
| 1 | Non work-related project 3 |   0:03 |
|---+----------------------------+--------|
| 1 | Non work-related project 4 |   0:01 |
#+END:

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: clocktable and :tags
  2010-06-05 16:16 Kristofer Bergstrom
@ 2010-06-05 16:37 ` Matt Lundin
  0 siblings, 0 replies; 7+ messages in thread
From: Matt Lundin @ 2010-06-05 16:37 UTC (permalink / raw)
  To: Kristofer Bergstrom; +Cc: emacs-orgmode

Kristofer Bergstrom <kris@OnEnsemble.org> writes:

> Unfortunately, the :tags element of clocktable dynamic blocks does not
> seem to be functioning properly.  Identical commands on Sebastian's
> system worked fine.  The problem can be seen below in a test I'm
> using.  Running C-c C-c while on the clocktable line updates the
> timestamp in the clocktable, but the tags element is not being
> evaluated.

Using your example, it works fine here with the latest org-mode:

--8<---------------cut here---------------start------------->8---
#+BEGIN: clocktable :tags "PHONE" :maxlevel 2 :scope file
Clock summary at [2010-06-05 Sat 12:29]

| L | Headline                   | Time   |
|---+----------------------------+--------|
|   | *Total time*               | *0:03* |
|---+----------------------------+--------|
| 1 | Non work-related project 3 | 0:03   |
#+END:
--8<---------------cut here---------------end--------------->8---

> Or maybe I should upgrade to a newer version of org-mode?  I don't
> know how to determine the current version I am using... 

Type M-x org-version. 

Or in an org-mode buffer you can use the menu: 

  - Org --> Documentation --> Show version

Since the clock report is working fine here with an up-to-date org-mode,
I'd recommend trying the most recent release:

http://orgmode.org/org-6.36c.tar.gz

Best,
Matt

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: clocktable and :tags
@ 2010-06-06  1:25 Kristofer Bergstrom
  0 siblings, 0 replies; 7+ messages in thread
From: Kristofer Bergstrom @ 2010-06-06  1:25 UTC (permalink / raw)
  To: emacs-orgmode

Problem solved!  After upgrading from 6.21b to 6.36c, the :tags option
is now working!  Below is what I did to upgrade.

Thank you to Sebastian, Matt, Bernt, and sshelagh for help along the way!

Kris

wget http://orgmode.org/org-6.36c.tar.gz
tar xzvf org-6.36c.tar.gz
sudo mv org-6.36c /usr/share/emacs/site-lisp/
cd /usr/share/emacs/site-lisp/org-6.36c
following http://orgmode.org/manual/Installation.html#Installation :
 edit the top four variables in "Makefile" as described in Makefile
 make
 make-install
restart emacs23

On Sat, Jun 5, 2010 at 3:30 PM, Bernt Hansen <bernt@norang.ca> wrote:
> Kristofer Bergstrom <kris@OnEnsemble.org> writes:
>
>> I would like to upgrade my version of org-mode (I'm using Emacs23),
>> with the hopes it will solve a problem of the :tags option not being
>> evaluated in clocktable dynamic blocks.  According to "M-x
>> org-version", I am currently using 6.21b.  Matt pointed me to
>> http://orgmode.org/org-6.36c.tar.gz .
>>
>> Is there information available about how to upgrade, or install
>> multiple versions of org-mode?  The "Installation" instructions in the
>> org-mode manual refer to Emacs22 or to enabling the pre-installed
>> Emacs23 version.
>>
>> Thank you in advance!
>
> Hi,
>
> just download the new version and unpack it in some directory then add
> that directory to your load path.
>
> HTH,
> Bernt
>

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2010-06-06  1:25 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-06-06  1:25 clocktable and :tags Kristofer Bergstrom
  -- strict thread matches above, loose matches on Subject: below --
2010-06-05 16:16 Kristofer Bergstrom
2010-06-05 16:37 ` Matt Lundin
2010-06-04 23:39 Kristofer Bergstrom
2010-06-05  0:49 ` Sebastian Rose
2010-06-05  1:11   ` Kristofer Bergstrom
2010-06-05  1:32     ` Sebastian Rose

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).