emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Change todo state when scheduled or a deadline is set
@ 2017-08-30 14:11 Narendra Joshi
  2017-09-02  3:01 ` Adam Porter
  0 siblings, 1 reply; 2+ messages in thread
From: Narendra Joshi @ 2017-08-30 14:11 UTC (permalink / raw)
  To: emacs-orgmode

Hi,

I would like to change the state of a task to TODO when it is scheduled
or a deadline is set for the task. I couldn't find any hook that is
called after scheduling. How can I do this? 

Best,
-- 
Narendra Joshi

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Change todo state when scheduled or a deadline is set
  2017-08-30 14:11 Change todo state when scheduled or a deadline is set Narendra Joshi
@ 2017-09-02  3:01 ` Adam Porter
  0 siblings, 0 replies; 2+ messages in thread
From: Adam Porter @ 2017-09-02  3:01 UTC (permalink / raw)
  To: emacs-orgmode

Narendra Joshi <narendraj9@gmail.com> writes:

> I would like to change the state of a task to TODO when it is scheduled
> or a deadline is set for the task. I couldn't find any hook that is
> called after scheduling. How can I do this? 

Hi Narendra,

You're right, looking at org--deadline-or-schedule, there doesn't seem
to be a hook for this.  So:

1.  You could use advice-add to run a function after this is run.

2.  You could add a hook to this function and send a patch.  :)

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-09-02  3:02 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-08-30 14:11 Change todo state when scheduled or a deadline is set Narendra Joshi
2017-09-02  3:01 ` Adam Porter

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).