emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* [feature request] org-insert-heading
@ 2012-02-10 20:40 Achim Gratz
  2012-02-11  9:23 ` Nicolas Goaziou
  0 siblings, 1 reply; 6+ messages in thread
From: Achim Gratz @ 2012-02-10 20:40 UTC (permalink / raw)
  To: emacs-orgmode

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

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

end of thread, other threads:[~2012-02-12  8:21 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-02-10 20:40 [feature request] org-insert-heading Achim Gratz
2012-02-11  9:23 ` 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

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