1

Say we have this file:

* A
  - L1
  - L2
* B

If we execute org-list-make-subtree on any position within the list (the two lines with L1/L2), we get

* A
** L1
** L2* B

So the conversion "eats" the newline after the last list item.

When having an additional newline before, it still eats the newline:

* A
  - L1
  - L2

* B

After conversion:

* A
** L1
** L2
* B

It happens at any level in a tree, and no matter whether the list is indented or has further levels.

Whether you always use a newline before a new heading or not - I don't see a reason for this behaviour to be useful because you manually have to add the newline to restore your previous layout.

Why is that so and how can it be prevented? Should it be filed as a bug?

Emacs version: 26.1 (with Spacemacs 0.200.13.x)

  • This is certainly a bug, probably in org-list-to-lisp. – Juancho Feb 4 at 13:42
  • 1
    M-x report-emacs-bug, to report a possible bug. – Drew Feb 4 at 15:10

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.