emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* C-RET and empty lines
@ 2023-08-21 15:25 Max Nikulin
  2023-08-22  9:52 ` Ihor Radchenko
  0 siblings, 1 reply; 6+ messages in thread
From: Max Nikulin @ 2023-08-21 15:25 UTC (permalink / raw)
  To: emacs-orgmode

Hi,

A couple of recent threads reminded me about quite peculiar behavior 
when a new heading is added by C-RET. I prefer to have an empty line 
before headings. Sometimes such empty lines disappear. Is such behavior 
(highly dependent of context) intentional? From my point of view it is 
confusing.

--- 8< ---
Try =C-RET= when cursor in the following heading titles
* No empty line added

Text
* Existing empty line consumed

Text

* Empty line added before new heading

Text
--- >8 ---

Variants of C-RET effect:

--- 8< ---
* No empty line added

Text
* |
* Existing empty line consumed
--- >8 ---

or

--- 8< ---
* Existing empty line consumed

Text
* |
* Empty line added before new heading
--- >8 ---

or

--- 8< ---
* Empty line added before new heading

Text

* |
--- >8 ---



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

end of thread, other threads:[~2023-08-24 12:10 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-08-21 15:25 C-RET and empty lines Max Nikulin
2023-08-22  9:52 ` Ihor Radchenko
2023-08-22 11:21   ` Juergen Fenn
2023-08-22 11:38     ` Ihor Radchenko
2023-08-22 12:45       ` Juergen Fenn
2023-08-24 12:10   ` Max Nikulin

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).