From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: Org-capture template Problem Date: Mon, 23 May 2011 23:26:05 -0400 Message-ID: <15243.1306207565@alphaville.dokosmarshall.org> References: Reply-To: nicholas.dokos@hp.com Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([140.186.70.92]:55283) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QOjCV-0005QV-Vg for emacs-orgmode@gnu.org; Tue, 24 May 2011 00:26:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QOjCV-0006Pw-1W for emacs-orgmode@gnu.org; Tue, 24 May 2011 00:26:35 -0400 Received: from vms173009pub.verizon.net ([206.46.173.9]:50970) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QOjCU-0006Pi-UU for emacs-orgmode@gnu.org; Tue, 24 May 2011 00:26:35 -0400 Received: from alphaville.dokosmarshall.org ([unknown] [173.76.32.106]) by vms173009.mailsrvcs.net (Sun Java(tm) System Messaging Server 7u2-7.02 32bit (built Apr 16 2009)) with ESMTPA id <0LLO00HM7K7HJI40@vms173009.mailsrvcs.net> for emacs-orgmode@gnu.org; Mon, 23 May 2011 22:26:11 -0500 (CDT) In-reply-to: Message from Chao LU of "Mon\, 23 May 2011 16\:29\:33 EDT." 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: Chao LU Cc: nicholas.dokos@hp.com, emacs-orgmode@gnu.org Chao LU wrote: > Dear all, >=20 > I'm trying to define a template for org-capture like below: > ------------ > (setq org-capture-templates > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 '( > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ("e" "EMACS" entry (file= +olp (concat org-source-dir "/Emacs.org") "EMACS" "INBOX") "* %?" > :prepend t) > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ("i" "INBOX" entry (file= +olp (concat org-private-dir "/iPrv.org") "INBOX" "-INBOX-") "* %?" > :prepend t) > =C2=A0 =C2=A0 =C2=A0=C2=A0 ) > ) >=20 > And the file Emacs.org has such structure: > ------------ > #+-*- coding:utf-8; mode:org -*- > #+STARTUP:=C2=A0=C2=A0=C2=A0 Overview > #+INFOJS_OPT: view:overview mouse:underline buttons:nil ltoc:nil > #+INFOJS_OPT: up:Sitemap.html > #+INFOJS_OPT: home:index.html > #+INFOJS_OPT: path:./theme/org-info.js > #+OPTIONS: num:nil h:3 TeX:nil LaTeX:nil toc:nil f:t \n:t > #+FILETAGS: Emacs > #+TITLE: Emacs > #+LINK: pdf file:./Emacs/%s.pdf > #+LINK: txt file:./Emacs/%s.txt >=20 > * Emacs > ** INBOX > *** blabla > ------------ >=20 > It doesn't work, the error message is "progn: Heading not found on level = 3: INBOX". >=20 > To me, it seems Emacs was trying to find the headline (3rd level) with na= me of INBOX. But according > to my configuration, it should go and find the head of 2nd level. Could a= nybody give me some hint > why it behave like so? >=20 Search the list for "backquote". Nick