From mboxrd@z Thu Jan 1 00:00:00 1970 From: Toby Subject: Re: Using capture to add plain text under a headline Date: Thu, 28 Oct 2010 11:45:19 +0000 (UTC) Message-ID: References: <4CC80262.2030904@gmx.ch> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: Received: from [140.186.70.92] (port=54473 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PBRHV-0006wz-GQ for emacs-orgmode@gnu.org; Thu, 28 Oct 2010 08:08:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PBQzf-0002Zd-7B for emacs-orgmode@gnu.org; Thu, 28 Oct 2010 07:50:08 -0400 Received: from lo.gmane.org ([80.91.229.12]:58137) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PBQze-0002Yw-Q0 for emacs-orgmode@gnu.org; Thu, 28 Oct 2010 07:50:07 -0400 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1PBQzb-00059s-S5 for emacs-orgmode@gnu.org; Thu, 28 Oct 2010 13:50:03 +0200 Received: from adsl-89-217-185-196.adslplus.ch ([89.217.185.196]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 28 Oct 2010 13:50:03 +0200 Received: from axis by adsl-89-217-185-196.adslplus.ch with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 28 Oct 2010 13:50:03 +0200 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@gnu.org Noorul Islam noorul.com> writes: > > On Wed, Oct 27, 2010 at 4:13 PM, Axis gmx.ch> wrote: > > Hello, > > > > I'm having a struggle capturing a plain text item under a headline; it > > always gets added to the bottom of the file. List items or org entries can > > be stowed away properly without a problem, i.e. > > > > ("e" "Event" entry (file+headline "~/org/agenda.org" "Events") "* %? %^T") > > > > works but > > > > ("b" "Birthdays" plain (file+headline "~/org/agenda.org" "Birthdays") > > "%\\%(diary-anniversary %? mm dd yy) turns %d") > > > > doesn't. > > > > Any clues as to what might go wrong here or how else I could add a line of > > plain text to a headline? > > > > I am not able to understand what you are trying to convey. Can you > provide some examples? > > Thanks and Regards > Noorul > > _______________________________________________ > Emacs-orgmode mailing list > Please use `Reply All' to send replies to the list. > Emacs-orgmode gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode > > Hi Noorul, thanks for your quick reply. The lines of init.el code were actually meant to be examples. I have been trying to set up templates for the new org-capture function. I keep an agenda file with different headlines for events, birthdays etc. What I now would like to do is add birthdays using the capture mechanism as sexp-lines under the birthdays-headline of this agenda file. For events I don't use sexp entries but regular org-entries with a timestamp, which are filed away under the correct heading without a hitch. If I try to do the same with my sexp lines, - e.g. %\\%(diary-anniversary 10 2 1869) Mahatma Gandhi would be %d years old - (which apparently cannot be added as org entries in order to be still recognized as sexp expressions but have to be added as plain text), they always end up at the end of the file, rather than at the end of the headline. Hope this made things a little more clear. I'm currently using org-mode 7.01h on a windows machine by the way. Thanks, Toby