From: Nick Dokos <ndokos@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: org-trigger-hook vs. org-after-todo-state-change-hook
Date: Wed, 26 Aug 2015 21:02:35 -0400 [thread overview]
Message-ID: <8737z55ys4.fsf@pierrot.dokosmarshall.org> (raw)
In-Reply-To: 878u8ygkxz.fsf@mbork.pl
Marcin Borkowski <mbork@mbork.pl> writes:
> org-trigger-hook vs. org-after-todo-state-change-hook:
>
> which one to choose? (I want to execute some code when an item is
> marked as done.) Why do both of them exist?
>
The trigger hook functions take a proplist argument which provides a lot
more information to the function than what is available to the
after-todo-state-change functions (which take no argument): the latter
can only know what the new state is going to be (through a global
variable); as a result, they can be much simpler than the trigger
functions, so if you don't need the extra info, after-todo is probably
the way to go.
--
Nick
prev parent reply other threads:[~2015-08-27 1:02 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-08-26 14:53 org-trigger-hook vs. org-after-todo-state-change-hook Marcin Borkowski
2015-08-27 1:02 ` Nick Dokos [this message]
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=8737z55ys4.fsf@pierrot.dokosmarshall.org \
--to=ndokos@gmail.com \
--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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.