emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Time clocking problem
@ 2016-09-01  2:27 Louis Turk
  2016-09-01 10:53 ` Malcolm Purvis
  0 siblings, 1 reply; 4+ messages in thread
From: Louis Turk @ 2016-09-01  2:27 UTC (permalink / raw)
  To: emacs-orgmode

Hi everyone,

I'm trying to learn how to time my work using this setup:

http://doc.norang.ca/org-mode.html

It is my understanding that:

1. When I punch in each morning using <F9> I the cursor can be anywhere
in any file, and this will start the clock in the * Organization task.

2. I can then go to a todo item and clock in to it, also using <F9> I,
and the clock will automatically stop on the *Organization task, and
start on the todo item.

3. When I clock out of the todo item, the clock should automatically
start again in the *Organization task.

1 and 3 do not work for me. I have to place the cursor on the
*Organization task to start timing it. And when I clock out of a todo
item, the *Organization task is not automatically clocked in.

Am I misunderstanding something? I want to keep track of all my work
time. Do I have to do it all manually?

Also, how can I be sure that org-id is working properly?

Many thanks in advance for any help.

Louis

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

* Re: Time clocking problem
  2016-09-01  2:27 Time clocking problem Louis Turk
@ 2016-09-01 10:53 ` Malcolm Purvis
  2016-09-01 12:59   ` Louis Turk
  0 siblings, 1 reply; 4+ messages in thread
From: Malcolm Purvis @ 2016-09-01 10:53 UTC (permalink / raw)
  To: emacs-orgmode

>>>>> "Louis" == Louis Turk <lou@dayspringpublisher.com> writes:

Louis> 1 and 3 do not work for me. I have to place the cursor on the
Louis> *Organization task to start timing it. And when I clock out of a
Louis> todo item, the *Organization task is not automatically clocked
Louis> in.

The code searches for the Organization task by the id stored in
the variable bh/organization-task-id.  Are these matching in your case?

Eg:

#+begin_src org
,#+FILETAGS: PERSONAL
...
,* Tasks
,** Organization
   :PROPERTIES:
   :CLOCK_MODELINE_TOTAL: today
   :ID:       eb155a82-92b2-4f25-a3c6-0304591af2f9
   :END:
   ...
#+end_src

#+begin_src elisp
(setq bh/organization-task-id "eb155a82-92b2-4f25-a3c6-0304591af2f9")
#+end_src

Malcolm

-- 
	       Malcolm Purvis <malcolm@purvis.id.au>

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

* Re: Time clocking problem
  2016-09-01 10:53 ` Malcolm Purvis
@ 2016-09-01 12:59   ` Louis Turk
  2016-09-04 12:38     ` Malcolm Purvis
  0 siblings, 1 reply; 4+ messages in thread
From: Louis Turk @ 2016-09-01 12:59 UTC (permalink / raw)
  To: emacs-orgmode

On 09/01/2016 06:53 PM, Malcolm Purvis wrote:
>>>>>> "Louis" == Louis Turk <lou@dayspringpublisher.com> writes:
> 
> Louis> 1 and 3 do not work for me. I have to place the cursor on the
> Louis> *Organization task to start timing it. And when I clock out of a
> Louis> todo item, the *Organization task is not automatically clocked
> Louis> in.
> 
> The code searches for the Organization task by the id stored in
> the variable bh/organization-task-id.  Are these matching in your case?
> 
> Eg:
> 
> #+begin_src org
> ,#+FILETAGS: PERSONAL
> ...
> ,* Tasks
> ,** Organization
>    :PROPERTIES:
>    :CLOCK_MODELINE_TOTAL: today
>    :ID:       eb155a82-92b2-4f25-a3c6-0304591af2f9
>    :END:
>    ...
> #+end_src
> 
> #+begin_src elisp
> (setq bh/organization-task-id "eb155a82-92b2-4f25-a3c6-0304591af2f9")
> #+end_src
> 
> Malcolm
> 

Hi Malcolm,

Thanks for responding.

Here is what I have:

#+FILETAGS OFFICE
#+OPTIONS: toc:0 H:4

* Organization
:LOGBOOK:
CLOCK: [2016-09-01 Thu 20:42]--[2016-09-01 Thu 20:43] =>  0:01
CLOCK: [2016-09-01 Thu 07:55]--[2016-09-01 Thu 07:56] =>  0:01
CLOCK: [2016-08-31 Wed 15:51]--[2016-08-31 Wed 15:54] =>  0:03
CLOCK: [2016-08-31 Wed 10:02]--[2016-08-31 Wed 10:36] =>  0:34
CLOCK: [2016-08-31 Wed 08:45]--[2016-08-31 Wed 09:09] =>  0:24
CLOCK: [2016-08-30 Tue 14:08]--[2016-08-30 Tue 14:09] =>  0:01
CLOCK: [2016-08-30 Tue 10:24]--[2016-08-30 Tue 10:25] =>  0:01
CLOCK: [2016-08-29 Mon 10:56]--[2016-08-29 Mon 11:08] =>  0:12
:END:
:PROPERTIES:
:CLOCK_MODELINE_TOTAL: today
:id: eb155a82-92b2-4f25-a3c6-0304591af2f9
:END:

This line is in my .emacs:

(defvar bh/organization-task-id "eb155a82-92b2-4f25-a3c6-0304591af2f9")

If I type:

C-u C-c C-x C-i 3

The clock starts on the * Organization task. So I assume the ID must not
be the problem.

The clock time above were all started with the cursor on the *
Organization task, except the top one which was started with C-u C-c C-x
C-i 3

Louis

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

* Re: Time clocking problem
  2016-09-01 12:59   ` Louis Turk
@ 2016-09-04 12:38     ` Malcolm Purvis
  0 siblings, 0 replies; 4+ messages in thread
From: Malcolm Purvis @ 2016-09-04 12:38 UTC (permalink / raw)
  To: emacs-orgmode

>>>>> "Louis" == Louis Turk <lou@dayspringpublisher.com> writes:

Louis> * Organization
[...]
Louis> :PROPERTIES:
Louis> :CLOCK_MODELINE_TOTAL: today
Louis> :id: eb155a82-92b2-4f25-a3c6-0304591af2f9
Louis> :END:

Louis> (defvar bh/organization-task-id "eb155a82-92b2-4f25-a3c6-0304591af2f9")

Louis,

These look correct to me.  Does the following command produce any output?

    M-: (org-id-find bh/organization-task-id)

Perhaps org can't find file with the Organization node.  It the file in
your agenda list?

Malcolm

-- 
	       Malcolm Purvis <malcolm@purvis.id.au>

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

end of thread, other threads:[~2016-09-04 12:38 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-09-01  2:27 Time clocking problem Louis Turk
2016-09-01 10:53 ` Malcolm Purvis
2016-09-01 12:59   ` Louis Turk
2016-09-04 12:38     ` Malcolm Purvis

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