From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bernt Hansen Subject: Re: Capture Template problem Date: Wed, 23 Mar 2011 18:03:08 -0400 Message-ID: <87k4fplckj.fsf@norang.ca> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from [140.186.70.92] (port=51887 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q2W99-0001q2-W9 for emacs-orgmode@gnu.org; Wed, 23 Mar 2011 18:03:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q2W98-0001H7-Fc for emacs-orgmode@gnu.org; Wed, 23 Mar 2011 18:03:19 -0400 Received: from mho-02-ewr.mailhop.org ([204.13.248.72]:14688) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q2W98-0001Ey-Dg for emacs-orgmode@gnu.org; Wed, 23 Mar 2011 18:03:18 -0400 In-Reply-To: (Chao LU's message of "Wed, 23 Mar 2011 12:24:17 -0400") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Chao LU Cc: emacs-orgmode@gnu.org Chao LU writes: > Dear All, > > I found a little problem when configuring Org-Capture. > > The target file is iPrv.org, whose structure is like this: > ======= > * INBOX > *** A > *** B > *** C > ======= > So I defined a template like : > ("i" "INBOX" entry (file+olp (concat org-private-dir "/iPrv.org") "INBOX") > "*** %?" :prepend t) > > But the Results turned out to be: > ======= > * INBOX > ** D ----> What I want is *** D (Level 3, not 2) > *** A > *** B > *** C > ======= > > So I changed my configuration a little like: > ("i" "INBOX" entry (file+olp (concat org-private-dir "/iPrv.org") "INBOX" * > "INBOX"*) "*** %?" :prepend t) > > And accordingly the iPrv.org file. > ======= > * INBOX > *** INBOX* > *** A > *** B > *** C > ======= > > But still error: Heading not found on level 2: INBOX. > > I'm using org 7.5 on Emacs OSX 23.3 > > Thanks, > > Chao Do you have org-odd-levels-only set? If not then skipping level 2 is invalid. Regards, -- Bernt