From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: Alternate format for datetree Date: Wed, 29 Aug 2012 10:17:20 -0400 Message-ID: <7717.1346249840@alphaville> References: <20532.1346040247@alphaville> <503C861B.2040002@wilkesley.net> <6796.1346158256@alphaville> <503DC974.7030508@manor-farm.org> Reply-To: nicholas.dokos@hp.com Return-path: Received: from eggs.gnu.org ([208.118.235.92]:36028) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T6jC9-0000y9-LP for emacs-orgmode@gnu.org; Wed, 29 Aug 2012 10:24:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T6jC3-00034p-B8 for emacs-orgmode@gnu.org; Wed, 29 Aug 2012 10:24:37 -0400 Received: from g6t0187.atlanta.hp.com ([15.193.32.64]:27455) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T6jC3-00032n-63 for emacs-orgmode@gnu.org; Wed, 29 Aug 2012 10:24:31 -0400 In-Reply-To: Message from Ian Barton of "Wed, 29 Aug 2012 08:49:08 BST." <503DC974.7030508@manor-farm.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: ian@manor-farm.org Cc: emacs-orgmode@gnu.org Ian Barton wrote: > Thanks Nick. Hwever with the following minimal template, from the OP, > I still get the error: > > ;; org-capture settings. > (setq org-capture-templates > `(("t" "test" entry > (file+headline "~/file.org" > ,(format "%s" > (format-time-string "%m"))) > ,(format "** %s \n*** %s-%s \n**** [%s-%s-%s %s %s:%s] " > (format-time-string "%d") > (format-time-string "%Y") > (format-time-string "%A") > (format-time-string "%Y") > (format-time-string "%m") > (format-time-string "%d") > (format-time-string "%a") > (format-time-string "%H") > (format-time-string "%M")) > ))) > I put this in a minimal .emacs and I *do not* get an error. Please try the appended minimal .emacs (change the pathnames appropriately) with emacs -q -l /path/to/minimal/.emacs M-x org-capture RET t M-x org-capture RET u and post the backtrace if any. Both of them work fine for me. You are sure you used a backquote? Nick --8<---------------cut here---------------start------------->8--- ;;; -*- mode: emacs-lisp -*- ;;; constant part (add-to-list 'load-path (expand-file-name "~/src/emacs/org/org-mode/lisp")) (add-to-list 'load-path (expand-file-name "~/src/emacs/org/org-mode/contrib/lisp")) (add-to-list 'auto-mode-alist '("\\.\\(org\\|org_archive\\|txt\\)$" . org-mode)) (require 'org-install) (setq debug-on-error t) (setq debug-on-quit t) (setq eval-expression-print-length nil) (setq eval-expression-print-level nil) (global-set-key "\C-cl" 'org-store-link) (global-set-key "\C-ca" 'org-agenda) ;;; variable part ;; org-capture settings. (setq org-capture-templates `(("t" "test" entry (file+headline "~/test.org" ,(format "%s" (format-time-string "%m"))) ,(format "** %s \n*** %s-%s \n**** [%s-%s-%s %s %s:%s] " (format-time-string "%d") (format-time-string "%Y") (format-time-string "%A") (format-time-string "%Y") (format-time-string "%m") (format-time-string "%d") (format-time-string "%a") (format-time-string "%H") (format-time-string "%M")) ) ("u" "Test" entry (file+headline "~/test.org" ,(format "%s %s" (format-time-string "%B") (format-time-string "%Y")))))) --8<---------------cut here---------------end--------------->8---