From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: [feature request] org-insert-heading Date: Sun, 12 Feb 2012 09:19:08 +0100 Message-ID: <87d39kxy4j.fsf@gmail.com> References: <87hayy8lsh.fsf@Rainer.invalid> <87vcndsoyl.fsf@gmail.com> <87pqdll0z4.fsf@Rainer.invalid> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:42904) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RwUgZ-00048u-FV for emacs-orgmode@gnu.org; Sun, 12 Feb 2012 03:21:28 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RwUgS-0005kl-NB for emacs-orgmode@gnu.org; Sun, 12 Feb 2012 03:21:27 -0500 Received: from mail-wi0-f169.google.com ([209.85.212.169]:57016) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RwUgS-0005kh-Bh for emacs-orgmode@gnu.org; Sun, 12 Feb 2012 03:21:20 -0500 Received: by wibhj13 with SMTP id hj13so3639857wib.0 for ; Sun, 12 Feb 2012 00:21:19 -0800 (PST) In-Reply-To: <87pqdll0z4.fsf@Rainer.invalid> (Achim Gratz's message of "Sat, 11 Feb 2012 18:43:43 +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: Achim Gratz Cc: emacs-orgmode@gnu.org Hello, Achim Gratz writes: > I actually like the ability to split lines with M-RET, especially since > there doesn't seem to be a sane way to tell org that "yes I want to > split the line this time". What I want is that "point at EOL" is > recognized as a special situation, much like "point at BOL" already > is. Excepted that, unlike to headlines, EOL is _not_ a special position in an item. Remember that an headline has to fit on a single line, whereas an item may span over multiple paragraphs, tables, and even plain lists. Look at the following example: #+begin_src org - first line of the first item another paragraph in the item one last paragraph - second item #+end_src If I use M-RET with point between "first" and "item", I get ("|" being the point): #+begin_src org - first line of the first - |item another paragraph in the item one last paragraph - second item #+end_src If I use M-RET with point a word further, that is after "item", I logically have: #+begin_src org - first line of the first item - | another paragraph in the item one last paragraph - second item #+end_src It will be the same if I use M-RET before "another". I can also go on with point after "another": #+begin_src org - first line of the first item another - |paragraph in the item one last paragraph - second item #+end_src It is very predictable, isn't it? On the other hand, it isn't consistent to allow, at every EOL in the item, to jump below contents and add a new item there. Now, perhaps the variable's name is misleading, as it isn't really about splitting lines, which make no sense in items, but splitting contents. Note that you can easily obtain what you want with M-RET M-DOWN at beginning of item, or even write a function to do with even less keystrokes. Regards, -- Nicolas Goaziou