emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Bastien <bzg@altern.org>
To: Eric S Fraga <e.fraga@ucl.ac.uk>
Cc: emacs-orgmode@gnu.org
Subject: Re: [bug] changing TODO status with org-after-todo-state-change-hook defined fails
Date: Fri, 01 Mar 2013 17:31:47 +0100	[thread overview]
Message-ID: <87wqtraxos.fsf@bzg.ath.cx> (raw)
In-Reply-To: <87r4jz2n8h.fsf@pinto.chemeng.ucl.ac.uk> (Eric S. Fraga's message of "Fri, 1 Mar 2013 14:44:46 +0000")

Hi Eric,

Eric S Fraga <e.fraga@ucl.ac.uk> 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	other threads:[~2013-03-01 16:32 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-03-01 14:44 [bug] changing TODO status with org-after-todo-state-change-hook defined fails Eric S Fraga
2013-03-01 16:31 ` Bastien [this message]
2013-03-01 20:19   ` Eric S Fraga
2013-03-01 22:16   ` Sebastien Vauban
2013-03-02 10:25     ` Bastien

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87wqtraxos.fsf@bzg.ath.cx \
    --to=bzg@altern.org \
    --cc=e.fraga@ucl.ac.uk \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).