all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Achim Gratz <Stromeko@nexgo.de>
To: emacs-orgmode@gnu.org
Subject: [feature request] org-insert-heading
Date: Fri, 10 Feb 2012 21:40:14 +0100	[thread overview]
Message-ID: <87hayy8lsh.fsf@Rainer.invalid> (raw)

The command M-RET actually does what it's docstring says (insert before
when point is at BOL, split line when it is inside), but there is
inconsistent behaviour when point is at EOL, IMHO. Consider the
following list (or equivalent headline structure), with point after
"aaaa":

- aaaa
  + abbb
  + accc

Using org-insert-heading and entering "bbbb" will produce this:

- aaaa
- bbbb
  + abbb
  + accc

In doing so, the subtree of "aaaa" has been transferred to the new
heading, which is almost never what I want (and could easily be done by
appending the new list or headline text and then splitting the line).  I
would expect that the subtree of "aaaa" is considered as a unit when
inserting a new headline with point at EOL (just like all moving
commands would do and the result should be this:

- aaaa
  + abbb
  + accc
- bbbb

Could org-insert-heading be extended to handle this situation as I
outlined?



Regards,
Achim.
-- 
+<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+

SD adaptations for KORG EX-800 and Poly-800MkII V0.9:
http://Synth.Stromeko.net/Downloads.html#KorgSDada

             reply	other threads:[~2012-02-10 20:40 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-02-10 20:40 Achim Gratz [this message]
2012-02-11  9:23 ` [feature request] org-insert-heading Nicolas Goaziou
2012-02-11 17:43   ` Achim Gratz
2012-02-11 18:00     ` Bernt Hansen
2012-02-11 18:17       ` Achim Gratz
2012-02-12  8:19     ` Nicolas Goaziou

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

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

  git send-email \
    --in-reply-to=87hayy8lsh.fsf@Rainer.invalid \
    --to=stromeko@nexgo.de \
    --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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.