From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric S Fraga Subject: Re: how to unschedule a task in agenda view? Date: Thu, 14 Jan 2010 12:43:40 +0000 Message-ID: <87r5ps26wz.wl%ucecesf@ucl.ac.uk> References: <87zl4h0vx2.wl%ucecesf@ucl.ac.uk> Reply-To: Eric S Fraga Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NVP3U-0005wC-SU for emacs-orgmode@gnu.org; Thu, 14 Jan 2010 07:44:04 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NVP3Q-0005th-4s for emacs-orgmode@gnu.org; Thu, 14 Jan 2010 07:44:04 -0500 Received: from [199.232.76.173] (port=46508 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NVP3P-0005tZ-Vn for emacs-orgmode@gnu.org; Thu, 14 Jan 2010 07:44:00 -0500 Received: from vscane-c.ucl.ac.uk ([144.82.108.43]:34754) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NVP3P-0005pt-DG for emacs-orgmode@gnu.org; Thu, 14 Jan 2010 07:43:59 -0500 In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Manish Cc: org-mode mailing list At Thu, 14 Jan 2010 18:07:34 +0530, Manish wrote: > > On Thu, Jan 14, 2010 at 4:56 PM, Eric S Fraga wrote: > [...] > > Ideally, it would be nice if one could attach actions (beyond logbook > > recording) to todo state changes, actions like "unschedule this item > > when switching to WAITING state" and I'm sure there are others... but > > having this capability is not critical of course. > > 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 > > Best, > -- > Manish I just *knew* that org-mode would already support what I wanted. Why I didn't think of looking at the hooks, I'm not sure. Thanks for this pointer. I'm off to play with it!