From mboxrd@z Thu Jan 1 00:00:00 1970 From: Juan Subject: Re: can you require a certain template with lognotedone? Date: Tue, 13 Jul 2010 01:17:33 -0300 Message-ID: <20100713041733.GG5569@soloJazz.com> 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=37840 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OYWw8-0007Nm-3W for emacs-orgmode@gnu.org; Tue, 13 Jul 2010 00:17:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OYWw7-0001Vj-0A for emacs-orgmode@gnu.org; Tue, 13 Jul 2010 00:17:40 -0400 Received: from cpoproxy1-pub.bluehost.com ([69.89.21.11]:53039) by eggs.gnu.org with smtp (Exim 4.69) (envelope-from ) id 1OYWw6-0001Ve-OG for emacs-orgmode@gnu.org; Tue, 13 Jul 2010 00:17:38 -0400 Content-Disposition: inline In-Reply-To: <16C874DD-C7B5-4B8B-9C2B-D54D64640FBE@gilbert.org> 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 Michael, Have a look at org-log-note-headings customization variable, together with org-log-done and friends. All these are quite static text you can configure, so probably then do not accomplish what you ask for. Maybe a good-enough solution is to store your template as a register and then insert it in the note-taking buffer. Throw something like this in your .emacs: (set-register ?n "This is\nmy template\n") so that C-x r i n will insert that text. ///----------------------------------------/// If you're feeling strange and are willing to change the code here: in file org.el, line ~10880 (current git pull): ;; It is now done, and it was not done before (org-add-planning-info 'closed (org-current-time)) (if (and (not dolog) (eq 'note org-log-done)) (org-add-log-setup 'done state this 'findpos 'note))) after the 'note, add your template as a string (or a lisp function that provides a string (template) depending on the context/setup): ... 'findpos 'note "this is\\nmy template"))) The string is an optional parameter for org-add-log-setup which will be copied into the Org-Note buffer. Good luck! .j. On Mon, Jul 12, 2010 at 06:05:43PM -0700, Michael Gilbert wrote: > 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.