From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Tim O'Callaghan" Subject: file+olp problem in org-capture. Date: Tue, 24 Aug 2010 10:16:03 +0200 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Return-path: Received: from [140.186.70.92] (port=45462 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OnogE-0005pR-Db for emacs-orgmode@gnu.org; Tue, 24 Aug 2010 04:16:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OnogD-0007rA-62 for emacs-orgmode@gnu.org; Tue, 24 Aug 2010 04:16:26 -0400 Received: from mail-iw0-f169.google.com ([209.85.214.169]:39990) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OnogD-0007qr-3B for emacs-orgmode@gnu.org; Tue, 24 Aug 2010 04:16:25 -0400 Received: by iwn33 with SMTP id 33so5904068iwn.0 for ; Tue, 24 Aug 2010 01:16:24 -0700 (PDT) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: org-mode Hi, first, am i right i assuming that the file+olp is designed so that i can specify the top of a tree, and the headings in the tree i want to be able to capture to? That is what i am trying to do with the "1" option. It does not evaluate the concat operation and so fails. ;; constant used in lots of other things. (defconst toc:ze-org-dir "~/org/") ;; example org template (setq org-capture-templates '( ;; works ;; (file+headline "path/to/file" "node headline") ("0" "0+inbox" entry (file+headline (concat toc:ze-org-dir "0+inbox.org") "+INBOX") "* %? \n") ;; does not work ;; (file+olp "path/to/file" "Level 1 heading" "Level 2" ...) ("1" "1+projects" entry (file+olp (concat toc:ze-org-dir "1+projects.org") "+TASKS" "+PROJECTS") "* "))) Tim.