emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Annoying empty line after M-RET / C-RET
@ 2012-12-06 15:21 Volker Grabsch
  2012-12-07  2:15 ` Eric Abrahamsen
  0 siblings, 1 reply; 3+ messages in thread
From: Volker Grabsch @ 2012-12-06 15:21 UTC (permalink / raw)
  To: Org Mode

Dear Org-Mode Gurus,

I noticed some strange behaviour in Org Mode. I'm not sure
if this happens for a good reason, or is simply a bug.
Either way, it's pretty annoying.

Normally, C-RET inserts a new empty headline directly after
the previous one, i.e.

--------------------------------
Stuff
* Head 1_
--------------------------------

[C-RET]

--------------------------------
Stuff
* Head 1
* _
--------------------------------

(where underscore "_" denotes the cursor)

However, if the headline is preceded by an empty line,
for whathever reason, the C-RET and M-RET commands
add an extra newline:

--------------------------------
Stuff

* Head 1_
--------------------------------

[C-RET]

--------------------------------
Stuff

* Head 1

* _
--------------------------------

This is especially annoying when quickly typing notes
into a small set of headers.

A similar behaviour occurs at deeper levels as well.
Also, this happens if there's a previous entry that
ends with an empty line (i.e. it doesn't have to happen
at the first headline entry).

Is this a bug? Does it happen for a good reason (if so,
what's the use case)? Can this be turned off?


Thanks,
Volker

-- 
Volker Grabsch
---<<(())>>---

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

end of thread, other threads:[~2012-12-07 10:29 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-12-06 15:21 Annoying empty line after M-RET / C-RET Volker Grabsch
2012-12-07  2:15 ` Eric Abrahamsen
2012-12-07 10:29   ` Volker Grabsch

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