Re: [O] help advicing org-todo

2013-01-06 Thread Luca Ferrari
This is great! Thanks, Luca (setq org-clock-in-switch-to-state STRT) (setq org-clock-out-switch-to-state DONE)

Re: [O] help advicing org-todo

2013-01-04 Thread Bastien
Hi Luca, Luca Ferrari fluca1...@infinito.it writes: a very good advice. Now, forgive my lisp ignorance, but I've defined the following function to do what I want: ... Actually you can simply use (setq org-clock-in-switch-to-state STRT) (setq org-clock-out-switch-to-state DONE) HTH, --

[O] help advicing org-todo

2013-01-03 Thread Luca Ferrari
Hi all, I'd like to advice the function org-todo to check in and check out the clock automatically. 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!)

Re: [O] help advicing org-todo

2013-01-03 Thread Bastien
Hi Luca, Luca Ferrari fluca1...@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

Re: [O] help advicing org-todo

2013-01-03 Thread Luca Ferrari
Thanks, a very good advice. Now, forgive my lisp ignorance, but I've defined the following function to do what I want: (defun org-todo-automatic-clock () Starts/Stops the clock when a task is marked as implementing or completed (if (string= state org-todo-fluca1978-running)

Re: [O] help advicing org-todo

2013-01-03 Thread Nick Dokos
Luca Ferrari fluca1...@infinito.it wrote: Thanks, a very good advice. Now, forgive my lisp ignorance, but I've defined the following function to do what I want: (defun org-todo-automatic-clock () Starts/Stops the clock when a task is marked as implementing or completed (if (string=