From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: file+olp problem in org-capture. Date: Tue, 24 Aug 2010 15:46:46 +0200 Message-ID: <3B0FDA0E-5948-4494-B0F1-59C1D6231F59@gmail.com> References: <4C73C1E2.9040904@ccbr.umn.edu> Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from [140.186.70.92] (port=42489 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OntqA-0001tj-2t for emacs-orgmode@gnu.org; Tue, 24 Aug 2010 09:47:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Ontq7-0003Xt-NN for emacs-orgmode@gnu.org; Tue, 24 Aug 2010 09:47:01 -0400 Received: from paard.ic.uva.nl ([145.18.40.182]:38854) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Ontq7-0003Xk-Fq for emacs-orgmode@gnu.org; Tue, 24 Aug 2010 09:46:59 -0400 In-Reply-To: <4C73C1E2.9040904@ccbr.umn.edu> 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: Erik Iverson Cc: Tim O'Callaghan , org-mode Hi everyone, this begins to smell like it should be a FAQ entry.... :) - Carsten On Aug 24, 2010, at 2:58 PM, Erik Iverson wrote: > Tim, > > I ran into the exact same issue yesterday, in fact, our > examples are almost identical! > > Here is the reply I received from David. > http://www.mail-archive.com/emacs-orgmode@gnu.org/msg29029.html > > I didn't tried his solution yet, but it should work. > > > On 08/24/2010 03:16 AM, Tim O'Callaghan wrote: >> 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. >> >> _______________________________________________ >> Emacs-orgmode mailing list >> Please use `Reply All' to send replies to the list. >> Emacs-orgmode@gnu.org >> http://lists.gnu.org/mailman/listinfo/emacs-orgmode > > > _______________________________________________ > Emacs-orgmode mailing list > Please use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode - Carsten