From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: Invalid capture template with pull of Org 7.8.03? Date: Thu, 12 Jan 2012 18:44:47 -0500 Message-ID: <5607.1326411887@alphaville1> References: <4F0F6CB3.6050908@vinylisland.org> Reply-To: nicholas.dokos@hp.com Return-path: Received: from eggs.gnu.org ([140.186.70.92]:58385) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RlULC-0006Os-TR for emacs-orgmode@gnu.org; Thu, 12 Jan 2012 18:45:55 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RlULB-0002gd-JS for emacs-orgmode@gnu.org; Thu, 12 Jan 2012 18:45:54 -0500 Received: from g6t0186.atlanta.hp.com ([15.193.32.63]:29261) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RlULB-0002YE-Fi for emacs-orgmode@gnu.org; Thu, 12 Jan 2012 18:45:53 -0500 In-Reply-To: Message from Damon Haley of "Thu, 12 Jan 2012 16:28:51 MST." <4F0F6CB3.6050908@vinylisland.org> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Damon Haley Cc: nicholas.dokos@hp.com, emacs-orgmode@gnu.org Damon Haley wrote: > Hi I was wondering if someone could point me in the right direction > because one of my Org capture templates, that I use to feed questions to > myself (for later use with org-drill) just broke with the most recent > bzr pull of emacs. > Probably not - see below. > Now, when I try to use the capture template, I only get this header in > my target org file. > > ** Invalid capture template > > I'm on the 24.0.92.1 version of emacs which ships with Org 7.8.03. > > Here's the template, which I stole from: > http://orgmode.org/worg/org-contrib/org-drill.html > > (add-to-list 'org-capture-templates vvv > ' <<<< THIS SHOULD BE A BACKQUOTE ^^^ > ("W" > "Capture web snippet" > entry > (file+headline "~/git/org/learn-emacs.org" "Emacs mastery") > ,(concat "* Fact: '%:description' :" > (format "%s" org-drill-question-tag) > ":\n:PROPERTIES:\n:DATE_ADDED: %u\n:SOURCE_URL: > %c\n:END:\n\n%i\n%?\n") > :empty-lines 1 > :immediate-finish t)) > > Is there any obvious reason this template would break? You are quoting the entry but including a , before the concat. That indicates that instead of the quote ', you need to use a backquote ` to allow the comma to evaluate the (concat ...) expression at definition time. I checked the webpage you refer to and there is a backquote there, so I can only surmise that you changed it by mistake recently. Nick