From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Gilbert Subject: Re: can you require a certain template with lognotedone? Date: Tue, 13 Jul 2010 09:58:20 -0700 Message-ID: References: <16C874DD-C7B5-4B8B-9C2B-D54D64640FBE@gilbert.org> <87tyo3d18e.fsf@fastmail.fm> Mime-Version: 1.0 (Apple Message framework v1081) Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable Return-path: Received: from [140.186.70.92] (port=51071 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OYioM-0001Mu-UL for emacs-orgmode@gnu.org; Tue, 13 Jul 2010 12:58:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OYioK-00043u-2v for emacs-orgmode@gnu.org; Tue, 13 Jul 2010 12:58:25 -0400 Received: from [74.94.69.218] (port=53578 helo=peach.gilbert.org) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OYioJ-00043f-Uj for emacs-orgmode@gnu.org; Tue, 13 Jul 2010 12:58:24 -0400 Received: from [10.1.10.16] (unknown [10.1.10.16]) by peach.gilbert.org (Postfix) with ESMTP id 6FFE0EBE74D3 for ; Tue, 13 Jul 2010 09:58:21 -0700 (PDT) In-Reply-To: <87tyo3d18e.fsf@fastmail.fm> 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: emacs-orgmode Mailinglist >> 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. >=20 > 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. =97 Michael