From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Maus Subject: Re: empty lines in datetree capture templates Date: Sun, 09 Jan 2011 15:31:10 +0100 Message-ID: <87r5cmkv2p.wl%dmaus@ictsoc.de> References: <20101228005000.1ce74e0f@bhishma.homelinux.net> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: multipart/mixed; boundary="===============0355333735==" Return-path: Received: from [140.186.70.92] (port=46971 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PbwJD-000218-CD for emacs-orgmode@gnu.org; Sun, 09 Jan 2011 09:31:52 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PbwJB-0001bK-Oo for emacs-orgmode@gnu.org; Sun, 09 Jan 2011 09:31:50 -0500 Received: from mailout110.xlhost.de ([213.202.242.110]:52512 helo=mysql1.xlhost.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PbwJB-0001b5-Jp for emacs-orgmode@gnu.org; Sun, 09 Jan 2011 09:31:49 -0500 In-Reply-To: <20101228005000.1ce74e0f@bhishma.homelinux.net> 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: Suvayu Ali Cc: emacs-org --===============0355333735== Content-Type: multipart/signed; boundary="pgp-sign-Multipart_Sun_Jan__9_15:31:10_2011-1"; micalg=pgp-sha256; protocol="application/pgp-signature" Content-Transfer-Encoding: 7bit --pgp-sign-Multipart_Sun_Jan__9_15:31:10_2011-1 Content-Type: text/plain; charset=US-ASCII 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) > )) > > I prefer to have empty lines between two headlines and headlines and > text. 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. If I try to end the older entry with a blank line, the empty > like is removed and the new entry is placed like this again. > > Any one knows what I am doing wrong? Thank you in advance, 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: ,---- | * 2011 | ** 2011-01 Januar | *** 2011-01-09 Sonntag | **** Fofofof | [[file:~/projects/org-mode/minimal.el::'(("X"%20"FOO"%20entry%20(file%2Bdatetree%20"/tmp/org/datetree.org"%20"Table%20here"%20""%20:empty-lines%201))))][file:~/projects/org-mode/minimal.el::'(("X" "FOO" entry (file+datetree "/tmp/org/datetree.org" "Table here" "" :empty-lines 1))))]] | **** Another one | [[file:~/projects/org-mode/minimal.el::'(("X"%20"FOO"%20entry%20(file%2Bdatetree%20"/tmp/org/datetree.org"%20"Table%20here"%20""%20:empty-lines%201))))d][file:~/projects/org-mode/minimal.el::'(("X" "FOO" entry (file+datetree "/tmp/org/datetree.org" "Table here" "" :empty-lines 1))))d]] `---- While I expected an empty line between "Fofofof" and "Another one". 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 Best, -- David -- OpenPGP... 0x99ADB83B5A4478E6 Jabber.... dmjena@jabber.org Email..... dmaus@ictsoc.de --pgp-sign-Multipart_Sun_Jan__9_15:31:10_2011-1 Content-Type: application/pgp-signature Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iF4EAREIAAYFAk0pxq4ACgkQma24O1pEeOaLmgEAylEFhscMlMqLLFaVy/I+ULJ7 UONsTvQ0Js5dBWi773YA/2lnW45ivsMia+jGAX6/srbLzWmfynfERC0VEcdpd6UI =BjvH -----END PGP SIGNATURE----- --pgp-sign-Multipart_Sun_Jan__9_15:31:10_2011-1-- --===============0355333735== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ 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 --===============0355333735==--