From mboxrd@z Thu Jan 1 00:00:00 1970 From: Giovanni Ridolfi Subject: Re: using (id "Name") target in org-capture-templates Date: Thu, 23 Dec 2010 12:41:54 +0100 Message-ID: <83d3osbtrx.fsf@yahoo.it> References: <83D2ABE0B13B7F409D1DE93916009DAD06A7209EB8@GLDMS60322.goldlnk.rootlnka.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from [140.186.70.92] (port=55960 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PVjXW-0006wc-9T for Emacs-orgmode@gnu.org; Thu, 23 Dec 2010 06:40:59 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PVjXV-00027u-6M for Emacs-orgmode@gnu.org; Thu, 23 Dec 2010 06:40:58 -0500 Received: from nm2.bullet.mail.ukl.yahoo.com ([217.146.183.219]:37109) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1PVjXU-00027k-Pc for Emacs-orgmode@gnu.org; Thu, 23 Dec 2010 06:40:57 -0500 In-Reply-To: <83D2ABE0B13B7F409D1DE93916009DAD06A7209EB8@GLDMS60322.goldlnk.rootlnka.net> (Gregory Sullivan's message of "Wed, 22 Dec 2010 14:33:01 -0500") 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: "Sullivan, Gregory (US SSA)" Cc: "Emacs-orgmode@gnu.org" "Sullivan, Gregory (US SSA)" writes: > I would like to have a template that will add a TODO below the "Tasks" > heading in the current .org file. From the documentation, I would > think that > > (setq org-capture-templates > `(("t" "Todo (local)" entry (id "Tasks") > "* TODO %? %i\n%T\n" :prepend t) > )) > > would work, Be careful: "heading" is not "id". from the documentation of the variable in the file org-mode/lisp/org-capture.el target: (id \"id of existing org entry\") File as child of this entry, or in the body of the entry Do you have a tree like the following? * Tasks :PROPERTIES: :ID: Tasks :END: If yes, then it works, if the :ID: value is unique. cheers, Giovanni