Ian Barton <[email protected]> wrote:
> I would like to use something like this. However, using a recent git
> checkout of org mode and the following simple template from the
> original list message:
>
> ("u"
> "Test"
> entry
> (file+headline "~/test.org"
> ,(format "%s %s"
> (format-time-string "%B")
> (format-time-string "%Y"))))
> I get the following error:
>
> Debugger entered--Lisp error: (wrong-type-argument stringp (\, (format
> "%s %s" (format-time-string "%B") (format-time-string "%Y"))))
> regexp-quote((\, (format "%s %s" (format-time-string "%B")
> (format-time-string "%Y"))))
> org-capture-set-target-location()
> org-capture(nil)
> call-interactively(org-capture nil nil)
>
> I also get the same error from John Hendy's template. Is this a bug in
> recent versions of org, or is there an error in the template lisp? I
> have tried doing a git bisect, but can only go back a few commits, as
> my config now includes several things that have only recently been
> added to org.
>
You are missing the backquote:
--8<---------------cut here---------------start------------->8---
`("u"
"Test"
entry
(file+headline "~/test.org"
,(format "%s %s"
(format-time-string "%B")
(format-time-string "%Y"))))
--8<---------------cut here---------------end--------------->8---
Nick