From mboxrd@z Thu Jan 1 00:00:00 1970 From: Chao LU Subject: Org-capture template Problem Date: Mon, 23 May 2011 16:29:33 -0400 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=0015174029107afa5104a3f7556e Return-path: Received: from eggs.gnu.org ([140.186.70.92]:43009) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QOblD-0006Pq-Qe for emacs-orgmode@gnu.org; Mon, 23 May 2011 16:29:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QOblC-0008RW-PY for emacs-orgmode@gnu.org; Mon, 23 May 2011 16:29:55 -0400 Received: from mail-fx0-f41.google.com ([209.85.161.41]:63759) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QOblC-0008RP-IQ for emacs-orgmode@gnu.org; Mon, 23 May 2011 16:29:54 -0400 Received: by fxm18 with SMTP id 18so5217331fxm.0 for ; Mon, 23 May 2011 13:29:53 -0700 (PDT) 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: emacs-orgmode@gnu.org --0015174029107afa5104a3f7556e Content-Type: text/plain; charset=ISO-8859-1 Dear all, I'm trying to define a template for org-capture like below: ------------ (setq org-capture-templates '( *("e" "EMACS" entry (file+olp (concat org-source-dir "/Emacs.org") "EMACS" "INBOX") "* %?" :prepend t)* ("i" "INBOX" entry (file+olp (concat org-private-dir "/iPrv.org") "INBOX" "-INBOX-") "* %?" :prepend t) ) ) And the file Emacs.org has such structure: ------------ #+-*- coding:utf-8; mode:org -*- #+STARTUP: 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 * Emacs ** INBOX *** blabla ------------ It doesn't work, the error message is "*progn: Heading not found on level 3: INBOX*". To me, it seems Emacs was trying to find the headline *(3rd level)* with name of INBOX. But according to my configuration, it should go and find the head of *2nd level*. Could anybody give me some hint why it behave like so? Thanks, Chao --0015174029107afa5104a3f7556e Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Dear all,

I'm trying to define a template for org-capture like b= elow:
------------
(setq org-capture-templates
=A0=A0=A0=A0=A0 = 9;(
=A0=A0=A0=A0=A0=A0=A0=A0 ("e" "EMACS" entry (= file+olp (concat org-source-dir "/Emacs.org") "EMACS" &= quot;INBOX") "* %?" :prepend t)
=A0=A0=A0=A0=A0=A0=A0=A0 ("i" "INBOX" entry (file+olp (= concat org-private-dir "/iPrv.org") "INBOX" "-INBO= X-") "* %?" :prepend t)
=A0 =A0 =A0=A0 )
)

And = the file Emacs.org has such structure:
------------
#+-*- coding:utf-8; mode:org -*-
#+STARTUP:=A0=A0=A0 Ove= rview
#+INFOJS_OPT: view:overview mouse:underline buttons:nil ltoc:nil#+INFOJS_OPT: up:Sitemap.html
#+INFOJS_OPT: home:index.html
#+INFOJ= S_OPT: path:./theme/org-info.js
#+OPTIONS: num:nil h:3 TeX:nil LaTeX:nil toc:nil f:t \n:t
#+FILETAGS: Em= acs
#+TITLE: Emacs
#+LINK: pdf file:./Emacs/%s.pdf
#+LINK: txt fil= e:./Emacs/%s.txt

* Emacs
** INBOX
*** blabla
------------<= br>
It doesn't work, the error message is "progn: Heading not f= ound on level 3: INBOX".

To me, it seems Emacs was trying = to find the headline (3rd level) with name of INBOX. But according t= o my configuration, it should go and find the head of 2nd level. Cou= ld anybody give me some hint why it behave like so?

Thanks,

Chao

--0015174029107afa5104a3f7556e--