[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] Alternate format for datetree
From: |
Nick Dokos |
Subject: |
Re: [O] Alternate format for datetree |
Date: |
Tue, 28 Aug 2012 08:50:56 -0400 |
Ian Barton <address@hidden> 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
- [O] Alternate format for datetree, c b, 2012/08/26
- Re: [O] Alternate format for datetree, John Hendy, 2012/08/26
- Re: [O] Alternate format for datetree, Nick Dokos, 2012/08/27
- Re: [O] Alternate format for datetree, John Hendy, 2012/08/27
- Re: [O] Alternate format for datetree, Ian Barton, 2012/08/28
- Re: [O] Alternate format for datetree, Nick Dokos, 2012/08/28
- Re: [O] Alternate format for datetree,
Nick Dokos <=
- Re: [O] Alternate format for datetree, Ian Barton, 2012/08/29
- Re: [O] Alternate format for datetree, Nick Dokos, 2012/08/29
- Re: [O] Alternate format for datetree, John Hendy, 2012/08/29
- Re: [O] Alternate format for datetree, Ian Barton, 2012/08/29