emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Bernt Hansen <bernt@norang.ca>
To: Deric Bytes <dericbytes@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: Changing todo status to waiting before clocked out.
Date: Sat, 11 Apr 2009 09:09:44 -0400	[thread overview]
Message-ID: <87iqlbl4kn.fsf@legolas.norang.ca> (raw)
In-Reply-To: <59b700510904110528q420228a9y8b1849b460c65caf@mail.gmail.com> (Deric Bytes's message of "Sat\, 11 Apr 2009 13\:28\:06 +0100")

Deric Bytes <dericbytes@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

  reply	other threads:[~2009-04-11 13:10 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-04-11 12:28 Changing todo status to waiting before clocked out Deric Bytes
2009-04-11 13:09 ` Bernt Hansen [this message]
2009-04-11 20:35   ` SOLVED: " dericbytes
2009-04-12 11:09     ` fixed error in my code dericbytes

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87iqlbl4kn.fsf@legolas.norang.ca \
    --to=bernt@norang.ca \
    --cc=dericbytes@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).