From: Bastien <bzg@altern.org>
To: Luca Ferrari <fluca1978@infinito.it>
Cc: emacs-orgmode@gnu.org
Subject: Re: help advicing org-todo
Date: Thu, 03 Jan 2013 17:48:44 +0100 [thread overview]
Message-ID: <87zk0q2owj.fsf@bzg.ath.cx> (raw)
In-Reply-To: <CAKoxK+5=0EgrCdRVGnO1jpwDTBJGzxWwY_k_wztyTRGsFFPs0Q@mail.gmail.com> (Luca Ferrari's message of "Thu, 3 Jan 2013 17:02:18 +0100")
Hi Luca,
Luca Ferrari <fluca1978@infinito.it> writes:
> I'd like to advice the function org-todo to check in and check out the
> clock automatically.
I would not advice `org-todo', I would explore the idea of adding a
function to `org-after-todo-state-change-hook'.
> I've defined the org-todo-keywords so that they have a choice letter as follows:
>
> (setq org-todo-keywords
> '( (sequence "TODO(t!)" "|" "DONE(d!)")
> (sequence "FEATURE(f!)" "BUG(b!)" "IMPLEMENTING(i!)" "|"
> "COMPLETED(c!)")
> ))
>
> and I'd like to start the clock each time the "i" (implementing) is
> chosen, stopping the clock each time the "c" (completed) is selected.
You can use (setq org-clock-out-when-done t) for this.
> However I've a little problem doing the advice because the argument is
> null and therefore I don't know which letter the user has pressed.
> Anyone can provide a little help?
HTH,
--
Bastien
next prev parent reply other threads:[~2013-01-03 16:48 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-01-03 16:02 help advicing org-todo Luca Ferrari
2013-01-03 16:48 ` Bastien [this message]
2013-01-03 17:16 ` Luca Ferrari
2013-01-03 17:25 ` Nick Dokos
2013-01-04 15:27 ` Bastien
2013-01-07 7:27 ` Luca Ferrari
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=87zk0q2owj.fsf@bzg.ath.cx \
--to=bzg@altern.org \
--cc=emacs-orgmode@gnu.org \
--cc=fluca1978@infinito.it \
/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).