emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Org Version 9.2.4 Insert Template at Point Doesn't Respect :empty-lines Property
@ 2019-07-02 17:04 Dominic Surano
  2019-07-06 14:03 ` Nicolas Goaziou
  0 siblings, 1 reply; 2+ messages in thread
From: Dominic Surano @ 2019-07-02 17:04 UTC (permalink / raw)
  To: org mode

[-- Attachment #1: Type: text/plain, Size: 1780 bytes --]

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 <https://orgmode.org/Changes.html> 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
<https://www.reddit.com/r/emacs/comments/c5j3x7/org_version_924_insert_template_at_point_doesnt/>
and
StackExchange
<https://emacs.stackexchange.com/questions/51260/org-version-9-2-4-insert-template-at-point-doesnt-respect-empty-lines-property?noredirect=1#comment79048_51260>
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 <http://xkcd.com/167/>

[-- Attachment #2: Type: text/html, Size: 9712 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Org Version 9.2.4 Insert Template at Point Doesn't Respect :empty-lines Property
  2019-07-02 17:04 Org Version 9.2.4 Insert Template at Point Doesn't Respect :empty-lines Property Dominic Surano
@ 2019-07-06 14:03 ` Nicolas Goaziou
  0 siblings, 0 replies; 2+ messages in thread
From: Nicolas Goaziou @ 2019-07-06 14:03 UTC (permalink / raw)
  To: Dominic Surano; +Cc: org mode

Hello,

Dominic Surano <sk8ingdom@gmail.com> writes:

> 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 <https://orgmode.org/Changes.html> 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

This should be fixed in master. Thank you.

Regards,

-- 
Nicolas Goaziou

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-07-06 14:04 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-07-02 17:04 Org Version 9.2.4 Insert Template at Point Doesn't Respect :empty-lines Property Dominic Surano
2019-07-06 14:03 ` Nicolas Goaziou

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).