From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nathan Neff Subject: Capture into subheading of current headline Date: Sun, 28 Nov 2010 13:10:23 -0600 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Return-path: Received: from [140.186.70.92] (port=46718 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PMmdn-0002sM-7m for emacs-orgmode@gnu.org; Sun, 28 Nov 2010 14:10:28 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PMmdl-000480-Sv for emacs-orgmode@gnu.org; Sun, 28 Nov 2010 14:10:27 -0500 Received: from mail-bw0-f41.google.com ([209.85.214.41]:43968) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PMmdl-00047r-OE for emacs-orgmode@gnu.org; Sun, 28 Nov 2010 14:10:25 -0500 Received: by bwz16 with SMTP id 16so10501433bwz.0 for ; Sun, 28 Nov 2010 11:10:24 -0800 (PST) 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: emacs-orgmode I think I'm missing something obvious here -- I can't define a capture template that puts the results as a sub-heading of the heading that the cursor is currently in. For example: * Some Heading some text in this heading I tried defining a template that used the "org-end-of-subtree" function: (setq org-capture-templates `(("x" "Subheading" entry (function org-end-of-subtree) "* %?\n\n" :clock-in t :clock-resume t) ) ) But, the captured data is inserted as a sibling heading in front of the heading where the cursor is, like this: * * Some Heading ** < I want the result of the capture template here> I've also tried "outline-next-heading", and "outline-end-of-subtree" but they add non-subtree headlines, and insert into #+begin_src / #+end_src blocks, which is undesirable I've also tried the solution proposed in this thread, but haven't quite got it correct: http://www.mail-archive.com/emacs-orgmode@gnu.org/msg28946.html Any help appreciated, Thanks, --Nate