From mboxrd@z Thu Jan 1 00:00:00 1970 From: Suvayu Ali Subject: Re: empty lines in datetree capture templates Date: Sun, 9 Jan 2011 10:05:49 -0800 Message-ID: <20110109100549.20bb3b3f@bhishma.homelinux.net> References: <20101228005000.1ce74e0f@bhishma.homelinux.net> <87r5cmkv2p.wl%dmaus@ictsoc.de> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Return-path: Received: from [140.186.70.92] (port=37917 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PbzeQ-0007CU-O9 for emacs-orgmode@gnu.org; Sun, 09 Jan 2011 13:05:59 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PbzeP-0006TB-EM for emacs-orgmode@gnu.org; Sun, 09 Jan 2011 13:05:58 -0500 Received: from mail-yw0-f41.google.com ([209.85.213.41]:63856) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PbzeP-0006T6-BG for emacs-orgmode@gnu.org; Sun, 09 Jan 2011 13:05:57 -0500 Received: by ywj3 with SMTP id 3so8325593ywj.0 for ; Sun, 09 Jan 2011 10:05:56 -0800 (PST) In-Reply-To: <87r5cmkv2p.wl%dmaus@ictsoc.de> 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: David Maus Cc: emacs-org Hi David, On Sun, 09 Jan 2011 15:31:10 +0100 David Maus wrote: > At Tue, 28 Dec 2010 00:50:00 -0800, > Suvayu Ali wrote: > > > > Hi everyone, > > > > I am having some problems with a capture template for datetrees. > > > > (setq org-capture-templates > > '(("m" "Select meeting templates") > > ("ms" "Schedule a meeting" entry (file+headline > > "~/org/meetings.org" "Meetings") "** %? %^t%^{CATEGORY}p\n" > > :empty-lines 1) > > ("mm" "Meeting minutes w/ clock" entry (file+datetree > > "~/org/meetings.org") "**** %^{prompt} %U%^{CATEGORY}p\n\n %?" > > :prepend t :clock-in :empty-lines 1 :immediate-finish) > > )) > > > > When I use the above "Meeting minutes w/ clock" template, the > > new entry to the date tree is inserted as below despite the > > ":empty-lines 1" argument. ... > I can confirm that :emtpy-lines 1 seems to have no effect in a > datetree capture template. I filed two with the template > > ,---- > | (setq org-capture-templates > | '(("X" "FOO" entry (file+datetree "/tmp/org/datetree.org" > "Place table here" "" :empty-lines 1)))) `---- > > And ended up with: ... > Using > > Org-mode version 7.4 (release_7.4.135.g84087) > > GNU Emacs 23.2.1 (i486-pc-linux-gnu, GTK+ Version 2.20.0) > of 2010-12-11 on raven, modified by Debian > Thanks a lot for confirming this, its reassuring to know it wasn't a fault on my part. :) Emacs and org-mode version: Org-mode version 7.4 (release_7.4.135.g84087.dirty) GNU Emacs 24.0.50.1 (x86_64-unknown-linux-gnu, GTK+ Version 2.20.1) of 2011-01-06 > Best, > -- David -- Suvayu Open source is the future. It sets us free.