From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: Alternate format for datetree Date: Tue, 28 Aug 2012 08:50:56 -0400 Message-ID: <6796.1346158256@alphaville> References: <20532.1346040247@alphaville> <503C861B.2040002@wilkesley.net> Reply-To: nicholas.dokos@hp.com Return-path: Received: from eggs.gnu.org ([208.118.235.92]:52928) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T6LG7-00037g-AX for emacs-orgmode@gnu.org; Tue, 28 Aug 2012 08:51:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T6LFz-0007au-Bb for emacs-orgmode@gnu.org; Tue, 28 Aug 2012 08:51:07 -0400 Received: from g6t0187.atlanta.hp.com ([15.193.32.64]:35278) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T6LFz-0007aY-6K for emacs-orgmode@gnu.org; Tue, 28 Aug 2012 08:50:59 -0400 In-Reply-To: Message from Ian Barton of "Tue, 28 Aug 2012 09:49:31 BST." <503C861B.2040002@wilkesley.net> 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: Ian Barton Cc: emacs-orgmode@gnu.org Ian Barton 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