Deric Bytes <dericby...@gmail.com> 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


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

Reply via email to