emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Volker Grabsch <vog@notjusthosting.com>
To: Org Mode <emacs-orgmode@gnu.org>
Subject: Annoying empty line after M-RET / C-RET
Date: Thu, 6 Dec 2012 16:21:09 +0100	[thread overview]
Message-ID: <20121206152109.GA20297@vlap> (raw)

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

             reply	other threads:[~2012-12-06 15:21 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-12-06 15:21 Volker Grabsch [this message]
2012-12-07  2:15 ` Annoying empty line after M-RET / C-RET Eric Abrahamsen
2012-12-07 10:29   ` Volker Grabsch

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20121206152109.GA20297@vlap \
    --to=vog@notjusthosting.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).