From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Abrahamsen Subject: Re: M-RET and C-RET turn current line of text into a heading? Date: Wed, 15 May 2013 16:22:29 +0800 Message-ID: <8738to3b5m.fsf@ericabrahamsen.net> References: <87r4h83kld.fsf@ericabrahamsen.net> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:52428) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UcWz7-0004d4-94 for emacs-orgmode@gnu.org; Wed, 15 May 2013 04:22:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UcWz5-0004vA-OT for emacs-orgmode@gnu.org; Wed, 15 May 2013 04:22:53 -0400 Received: from plane.gmane.org ([80.91.229.3]:40781) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UcWz5-0004v2-Gv for emacs-orgmode@gnu.org; Wed, 15 May 2013 04:22:51 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1UcWz2-00088M-BK for emacs-orgmode@gnu.org; Wed, 15 May 2013 10:22:48 +0200 Received: from 114.250.129.45 ([114.250.129.45]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 15 May 2013 10:22:48 +0200 Received: from eric by 114.250.129.45 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 15 May 2013 10:22:48 +0200 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 Christian Moe writes: > Hi, > > My user input is partially to blame for this, I think. See toward the > end of this thread: > > http://comments.gmane.org/gmane.emacs.orgmode/69749 > > I was under the impression that the behavior of M-RET had changed, but I > may have given a wrong or incomplete description of the "old behavior" I > seemed to remember and wanted back. I agree that the current behavior > does not seem ideal either. > > Here's some more misguided user input: Wouldn't it be intuitive if M-RET > at the beginning of a line turned that line into a heading (as it > currently does), but M-RET at the end of a line inserted a new heading > below (would require a change from the current workings)? Not sure about > M-RET somewhere in the middle of a line. Hey, I'm all about misguided user input :) I read that brief thread, and it looks like there was a call for opinions that I missed! Better late than never... I don't see why `org-ctrl-c-star' --> `org-toggle-heading' isn't enough for creating headlines out of existing text. At the very least, we shouldn't now have three keystrokes (C-c *, M-RET, C-RET) that do the same thing! Also, `org-M-RET-may-split-line', which was once a very interesting variable, now does nothing since M-RET simply doesn't split the line. Or am I missing something about the new arrangement? However it falls out, I would love to have two commands back: one that starts a new heading under point, and one that starts a new heading at the end of the current subtree. Ie, what M-RET and C-RET used to do... Eric > Yours, > Christian > > > Eric Abrahamsen writes: > >> For the past couple of weeks I'm finding that both M-RET and C-RET turn >> the line under point into a heading, instead of inserting a new heading >> elsewhere. This happens with `org-M-RET-may-split-line' set to anything. >> >> So this: >> >> #+begin_src org >> * Chapter One >> :PROPERTIES: >> :some_prop: t >> :END: >> In which not [point is here] very much happens. But this is a further test to see >> what happens on multiline text. >> #+end_src >> >> becomes: >> >> #+begin_src org >> * Chapter One >> :PROPERTIES: >> :some_prop: t >> :END: >> * In which not very much happens. But this is a further test to see >> what happens on multiline text. >> #+end_src >> >> This also happens with emacs -Q. Has no one else seen this? >> >> Thanks, >> Eric