emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nick Dokos <nicholas.dokos@hp.com>
To: Damon Haley <news@vinylisland.org>
Cc: nicholas.dokos@hp.com, emacs-orgmode@gnu.org
Subject: Re: Invalid capture template with pull of Org 7.8.03?
Date: Thu, 12 Jan 2012 18:44:47 -0500	[thread overview]
Message-ID: <5607.1326411887@alphaville1> (raw)
In-Reply-To: Message from Damon Haley <news@vinylisland.org> of "Thu, 12 Jan 2012 16:28:51 MST." <4F0F6CB3.6050908@vinylisland.org>

Damon Haley <news@vinylisland.org> 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

  reply	other threads:[~2012-01-12 23:45 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-01-12 23:28 Invalid capture template with pull of Org 7.8.03? Damon Haley
2012-01-12 23:44 ` Nick Dokos [this message]
2012-01-13  0:07   ` Damon Haley

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=5607.1326411887@alphaville1 \
    --to=nicholas.dokos@hp.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=news@vinylisland.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).