At Thu, 14 Jan 2010 18:07:34 +0530, Manish wrote: > > There is a hook "org-after-todo-state-change-hook" that is called > after the state of a TODO item is changed. So may be org-schedule can > be called to remove the SCHEDULED time on state change to WAITING? > > http://orgmode.org/worg/org-configs/org-hooks.php#sec-1.13
This works like a charm: --8<---------------cut here---------------start------------->8--- (add-hook 'org-after-todo-state-change-hook '(lambda () ;; remove the scheduled date/time if present as the activity is no longer mine ;; based on a suggestion by Manish on the org-mode mailing list (if (string= state "WAITING") (org-schedule t)))) --8<---------------cut here---------------end--------------->8--- Thanks again, eric _______________________________________________ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode