emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Michael Gilbert <mcg@gilbert.org>
To: emacs-orgmode Mailinglist <emacs-orgmode@gnu.org>
Subject: Re: can you require a certain template with lognotedone?
Date: Tue, 13 Jul 2010 09:58:20 -0700	[thread overview]
Message-ID: <F9EBA0C1-EB22-42AB-83B2-035ACB05F299@gilbert.org> (raw)
In-Reply-To: <87tyo3d18e.fsf@fastmail.fm>

>> I require a note when certain TODOs are changed to DONE. These are
>> almost always some sort of structured logging. Is there a way to call
>> org-capture and/or require a certain template for that note? That
>> would be a very powerful workflow for me.
> 
> You could use org-after-todo-state-change-hook to call a function that
> invokes org-capture, using arbitrary tests to see if the current entry
> has a particular property, etc.

Thank you. This may be beyond my skill right now. And as Darlan pointed out to me offlist, this might be something that should be framed more generically. I do need to start learning about hooks though.

— Michael

      reply	other threads:[~2010-07-13 16:58 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-07-13  1:05 can you require a certain template with lognotedone? Michael Gilbert
2010-07-13  4:17 ` Juan
2010-07-13 12:18 ` Matt Lundin
2010-07-13 16:58   ` Michael Gilbert [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

  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=F9EBA0C1-EB22-42AB-83B2-035ACB05F299@gilbert.org \
    --to=mcg@gilbert.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).