From: Eric S Fraga <e.fraga@ucl.ac.uk>
To: Bastien <bzg@altern.org>
Cc: emacs-orgmode@gnu.org
Subject: Re: [bug] changing TODO status with org-after-todo-state-change-hook defined fails
Date: Fri, 1 Mar 2013 20:19:46 +0000 [thread overview]
Message-ID: <87sj4e3mal.fsf@ucl.ac.uk> (raw)
In-Reply-To: <87wqtraxos.fsf@bzg.ath.cx> (Bastien's message of "Fri, 1 Mar 2013 17:31:47 +0100")
Bastien <bzg@altern.org> writes:
> 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.)
>
> HTH!
It does indeed! I did read the description of org-schedule to remind
myself of why I had what I did there but I kind of skimmed over the
"universal argument" bit... <blush>
However, I would suggest that a more graceful exit might be good? I
still do not understand why the log message wasn't prompted for.
Anyway, thanks: my setup is working again as it should!
--
: Eric S Fraga, GnuPG: 0xC89193D8FFFCF67D
: in Emacs 24.3.50.1 and Org release_7.9.3f-1313-g7d4812
next prev parent reply other threads:[~2013-03-01 20:20 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
2013-03-01 20:19 ` Eric S Fraga [this message]
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=87sj4e3mal.fsf@ucl.ac.uk \
--to=e.fraga@ucl.ac.uk \
--cc=bzg@altern.org \
--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).