emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Chao LU <loochao@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Org-capture template Problem
Date: Mon, 23 May 2011 16:29:33 -0400	[thread overview]
Message-ID: <BANLkTi=c-gii9u=FBP6GR8NKs2Nczr6S3w@mail.gmail.com> (raw)

[-- 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 --]

             reply	other threads:[~2011-05-23 20:29 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-23 20:29 Chao LU [this message]
2011-05-24  3:26 ` Org-capture template Problem Nick Dokos

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='BANLkTi=c-gii9u=FBP6GR8NKs2Nczr6S3w@mail.gmail.com' \
    --to=loochao@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).