From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: [bug] changing TODO status with org-after-todo-state-change-hook defined fails Date: Fri, 01 Mar 2013 17:31:47 +0100 Message-ID: <87wqtraxos.fsf@bzg.ath.cx> References: <87r4jz2n8h.fsf@pinto.chemeng.ucl.ac.uk> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:55146) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UBSsE-0005uy-Mk for emacs-orgmode@gnu.org; Fri, 01 Mar 2013 11:32:00 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UBSs9-0002or-MV for emacs-orgmode@gnu.org; Fri, 01 Mar 2013 11:31:54 -0500 Received: from mail-we0-x232.google.com ([2a00:1450:400c:c03::232]:64872) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UBSs9-0002oj-GU for emacs-orgmode@gnu.org; Fri, 01 Mar 2013 11:31:49 -0500 Received: by mail-we0-f178.google.com with SMTP id u7so1381194wey.37 for ; Fri, 01 Mar 2013 08:31:48 -0800 (PST) In-Reply-To: <87r4jz2n8h.fsf@pinto.chemeng.ucl.ac.uk> (Eric S. Fraga's message of "Fri, 1 Mar 2013 14:44:46 +0000") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Eric S Fraga Cc: emacs-orgmode@gnu.org Hi Eric, Eric S Fraga writes: > #+begin_src emacs-lisp > (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= org-state "WAIT") (org-schedule t)))) > #+end_src You need to use (org-schedule '(4)) here, this is part of a change in master that allows to use C-u C-u C-c C-s to add a delay (and same for C-u C-u C-c C-d which adds a warning delay.) > Any suggestions (other than remove the hook ;-)? HTH! -- Bastien