[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Orgmode] Re: Changing todo status to waiting before clocked out.
From: |
Bernt Hansen |
Subject: |
[Orgmode] Re: Changing todo status to waiting before clocked out. |
Date: |
Sat, 11 Apr 2009 09:09:44 -0400 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux) |
Deric Bytes <address@hidden> writes:
> How can I change the todo status before an item is clocked out. I was
> hoping for something like the following
>
>
> (add-hook 'org-before-todo-state-change-hook
> 'dericbytes/org-clock-out-change-status-to-waiting)
>
>
> (defun dericbytes/org-clock-out-change-status-to-waiting ()
> (save-excursion
> (goto-char org-clock-marker)
> (org-todo "WAITING")))
The clock does not stop until you move the state to a DONE state. My
WAITING state is not a done state so I'm free to move the status from
TODO to WAITING and back without affecting the running clock.
You can also set 'org-clock-out-when-done' to nil to prevent the clock
from stopping when moving to done states as well.
HTH,
Bernt