From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matt Lundin Subject: Re: can you require a certain template with lognotedone? Date: Tue, 13 Jul 2010 08:18:09 -0400 Message-ID: <87tyo3d18e.fsf@fastmail.fm> References: <16C874DD-C7B5-4B8B-9C2B-D54D64640FBE@gilbert.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from [140.186.70.92] (port=47569 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OYeL3-0007x3-4D for emacs-orgmode@gnu.org; Tue, 13 Jul 2010 08:11:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OYeL1-0003ot-LI for emacs-orgmode@gnu.org; Tue, 13 Jul 2010 08:11:52 -0400 Received: from out1.smtp.messagingengine.com ([66.111.4.25]:51549) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OYeL1-0003ob-JL for emacs-orgmode@gnu.org; Tue, 13 Jul 2010 08:11:51 -0400 In-Reply-To: <16C874DD-C7B5-4B8B-9C2B-D54D64640FBE@gilbert.org> (Michael Gilbert's message of "Mon, 12 Jul 2010 18:05:43 -0700") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Michael Gilbert Cc: emacs-orgmode Mailinglist Hi Michael, Michael Gilbert writes: > 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. Best, Matt