From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Strange behavior of M-RET with new list improvements Date: Tue, 07 Sep 2010 19:11:33 +0200 Message-ID: <878w3dlbqy.wl%n.goaziou@gmail.com> References: <87ocdzw7gq.wl%n.goaziou@gmail.com> <43BA920D-4EA2-4C51-B941-33A60D097EB3@gmail.com> <87hbi6uprt.fsf@fastmail.fm> <87y6bhajrm.wl%n.goaziou@gmail.com> <87wrr1aexq.wl%n.goaziou@gmail.com> <448D9DB2-71DE-4B9B-BF5B-B575735D794D@yahoo.com> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Return-path: Received: from [140.186.70.92] (port=60013 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ot1rx-0000it-3g for emacs-orgmode@gnu.org; Tue, 07 Sep 2010 13:22:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Ot1rr-0004D3-EK for emacs-orgmode@gnu.org; Tue, 07 Sep 2010 13:22:00 -0400 Received: from mail-ey0-f169.google.com ([209.85.215.169]:49740) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Ot1rr-0004Cp-7m for emacs-orgmode@gnu.org; Tue, 07 Sep 2010 13:21:59 -0400 Received: by eyh5 with SMTP id 5so2954348eyh.0 for ; Tue, 07 Sep 2010 10:21:58 -0700 (PDT) In-Reply-To: <448D9DB2-71DE-4B9B-BF5B-B575735D794D@yahoo.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Anthony Lander Cc: Org Mode List Hello, >>>>> Anthony Lander writes: > Firstly, if I have a construct like this: > <------------- > *** Some heading > - Bullet > - Bullet > - Bullet | > <------------- > With the cursor at |, M-RET correctly adds another list item > (indented, and started with -). But now there is no way to make a > new heading with M-RET, except to terminate the list with a blank > line, and then press M-RET (even though list followed immediately by > headline is a valid terminated list). Previously, if the cursor was > at the beginning of the line after the last bullet, M-RET would > produce a new heading As you said, the point is logically still in the list, so M-RET will produce a new item. If you want to enforce a new heading there, you can use C-u M-RET. > The second problem is with folded headlines. Org mode behaves > correctly, but the result is surprising for the user. If you have > the headline above, but folded, with the cursor at the end of the > line, like this: > <------------- *** Some heading...| <------------- > pressing RET to open a new line, followed by M-RET (presumably to > make a new heading) results in the following: > <------------- *** Some heading... - Bullet - | <------------- I just sent a patch to maintainer about this. Thank you for reporting this bug. Regards, -- Nicolas