emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] [bug] changing TODO status with org-after-todo-state-change-hook


From: Bastien
Subject: Re: [O] [bug] changing TODO status with org-after-todo-state-change-hook defined fails
Date: Fri, 01 Mar 2013 17:31:47 +0100
User-agent: Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.3.50 (gnu/linux)

Hi Eric,

Eric S Fraga <address@hidden> 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]