From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dominic Surano Subject: Org Version 9.2.4 Insert Template at Point Doesn't Respect :empty-lines Property Date: Tue, 2 Jul 2019 10:04:44 -0700 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000eaa87f058cb5bfa2" Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:56284) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hiMDb-0006qK-TJ for emacs-orgmode@gnu.org; Tue, 02 Jul 2019 13:05:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hiMDa-0000Rc-I1 for emacs-orgmode@gnu.org; Tue, 02 Jul 2019 13:05:23 -0400 Received: from mail-io1-xd35.google.com ([2607:f8b0:4864:20::d35]:39440) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hiMDa-0000Pa-7l for emacs-orgmode@gnu.org; Tue, 02 Jul 2019 13:05:22 -0400 Received: by mail-io1-xd35.google.com with SMTP id r185so38712268iod.6 for ; Tue, 02 Jul 2019 10:05:21 -0700 (PDT) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: org mode --000000000000eaa87f058cb5bfa2 Content-Type: text/plain; charset="UTF-8" I recently upgraded to Org-mode version 9.2.4 from 9.1.9 and when I insert a capture template at point in an org-file using C-0 C-c c or C-0 M-x org-capture, it appears that properties :empty-lines, :empty-lines-after, and :empty-lines-before are not respected. In all instances, regardless of these values, the heading is moved to the lowest possible line before the next heading. Has anyone else experienced this? I reviewed the Org-mode 9.2 Changes and nothing obvious popped out. Is there a variable I'm missing? Is there anything in that changed in org-capture that would cause this? Can anyone replicated this? I tried the following capture-template on both versions: (setq org-capture-templates '(("t" "Todo" entry (file+headline "~/org/gtd.org" "Tasks") "* TODO %?\n %i\n %a" :empty-lines 2) ("j" "Journal" entry (file+datetree "~/org/journal.org") "* %?\nEntered on %U\n %i\n %a"))) And received the following: * Version 9.1.9 ** First Heading ** TODO New Capture at Point ** Second Heading * Version 9.2.4 ** First Heading ** TODO New Capture at Point ** Second Heading If it's not clear, the New Capture at Point template removes all spaces between itself and the Second Heading. I also posted this question on Reddit and StackExchange but didn't receive any responses. -- Dominic Surano Email is my fastest and preferred method of contact Phone, address, etc. available upon request Life should be an adventure --000000000000eaa87f058cb5bfa2 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I recently upgra= ded to Org-mode version 9.2.4 from 9.1.9 and when I insert a capture templa= te at point in an org-file using=C2=A0C-0 C-c c=C2=A0or= =C2=A0C-0 M-x org-capture, it appears that properties= =C2=A0:empty-lines,=C2=A0:empty-lines-after, and=C2=A0:empty-lin= es-before=C2=A0are not res= pected. In all instances, regardless of these values, the heading is moved = to the lowest possible line before the next heading. Has anyone else experi= enced this? I reviewed the=C2=A0Org-mode 9.2 Changes=C2=A0and nothing obvious popped out. Is there a variabl= e I'm missing? Is there anything in that changed in org-capture that wo= uld cause this? Can anyone replicated this?

I tried the followin= g capture-template on both versions:

(setq org-capture-templates
    '(("t" "Todo" entry (file+headline "~/org/=
gtd.org" "Tasks")
       "* TODO %?\n  %i\n  %a" :empty-lines 2)
      ("j" "Journal" entry (file+datetree "~/org/<=
a href=3D"http://journal.org">journal.org")
       "* %?\nEntered on %U\n  %i\n  %a")))

And received the following:

* Version 9.1.9

** First Heading
** TODO New Capture at Point


** Second Heading

* Version 9.2.4

** First Heading
** TODO New Capture at Point
** Second Heading

If it's not clear, the=C2=A0= New Capture at Point=C2=A0template removes all spaces between itself= and the Second Heading. I also posted this question on=C2=A0Reddit=C2=A0and StackExchange=C2=A0but didn't receive any respon= ses.

--=C2=A0
Dominic = Surano
Email is my fastest and preferred method of contact
<= div>Phone, address, etc. available upon request

--000000000000eaa87f058cb5bfa2--