emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Org-capture template Problem
@ 2011-05-23 20:29 Chao LU
  2011-05-24  3:26 ` Nick Dokos
  0 siblings, 1 reply; 2+ messages in thread
From: Chao LU @ 2011-05-23 20:29 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 1160 bytes --]

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

[-- Attachment #2: Type: text/html, Size: 1461 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Org-capture template Problem
  2011-05-23 20:29 Org-capture template Problem Chao LU
@ 2011-05-24  3:26 ` Nick Dokos
  0 siblings, 0 replies; 2+ messages in thread
From: Nick Dokos @ 2011-05-24  3:26 UTC (permalink / raw)
  To: Chao LU; +Cc: nicholas.dokos, emacs-orgmode

Chao LU <loochao@gmail.com> wrote:

> 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?
> 

Search the list for "backquote".

Nick

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-05-24  4:26 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-05-23 20:29 Org-capture template Problem Chao LU
2011-05-24  3:26 ` Nick Dokos

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).