From mboxrd@z Thu Jan 1 00:00:00 1970 From: Achim Gratz Subject: [feature request] org-insert-heading Date: Fri, 10 Feb 2012 21:40:14 +0100 Message-ID: <87hayy8lsh.fsf@Rainer.invalid> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:41998) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RvxGe-0005oP-EM for emacs-orgmode@gnu.org; Fri, 10 Feb 2012 15:40:29 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RvxGc-0001vh-Rn for emacs-orgmode@gnu.org; Fri, 10 Feb 2012 15:40:28 -0500 Received: from plane.gmane.org ([80.91.229.3]:42973) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RvxGc-0001vb-LN for emacs-orgmode@gnu.org; Fri, 10 Feb 2012 15:40:26 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1RvxGa-00022H-6x for emacs-orgmode@gnu.org; Fri, 10 Feb 2012 21:40:24 +0100 Received: from pd9eb3588.dip.t-dialin.net ([217.235.53.136]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 10 Feb 2012 21:40:24 +0100 Received: from Stromeko by pd9eb3588.dip.t-dialin.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 10 Feb 2012 21:40:24 +0100 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org 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