all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Nick Dokos <nicholas.dokos@hp.com>
To: Chao LU <loochao@gmail.com>
Cc: nicholas.dokos@hp.com, emacs-orgmode@gnu.org
Subject: Re: Org-capture template Problem
Date: Mon, 23 May 2011 23:26:05 -0400	[thread overview]
Message-ID: <15243.1306207565@alphaville.dokosmarshall.org> (raw)
In-Reply-To: Message from Chao LU <loochao@gmail.com> of "Mon\, 23 May 2011 16\:29\:33 EDT." <BANLkTi=c-gii9u=FBP6GR8NKs2Nczr6S3w@mail.gmail.com>

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

      reply	other threads:[~2011-05-24  4:26 UTC|newest]

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

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

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

  git send-email \
    --in-reply-to=15243.1306207565@alphaville.dokosmarshall.org \
    --to=nicholas.dokos@hp.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=loochao@gmail.com \
    /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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.