From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ryan Thompson Subject: Bug: Meta-return on an empty headline breaks the headline instead of leaving it empty Date: Mon, 22 Mar 2010 22:13:08 -0700 Message-ID: <2a4ba2fd1003222213r1f358a25sef48c572560c6e49@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NtwdM-0000OA-EM for emacs-orgmode@gnu.org; Tue, 23 Mar 2010 01:26:32 -0400 Received: from [140.186.70.92] (port=39209 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NtwdL-0000H3-3T for emacs-orgmode@gnu.org; Tue, 23 Mar 2010 01:26:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NtwQj-0001eG-MO for emacs-orgmode@gnu.org; Tue, 23 Mar 2010 01:13:30 -0400 Received: from mail-iw0-f188.google.com ([209.85.223.188]:42698) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NtwQj-0001e1-J0 for emacs-orgmode@gnu.org; Tue, 23 Mar 2010 01:13:29 -0400 Received: by iwn26 with SMTP id 26so881651iwn.24 for ; Mon, 22 Mar 2010 22:13:28 -0700 (PDT) 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: Org-Mode List I have found a bug. When the point is at the end of an empty headline and you press M-RET (or C-RET) to make a new headline, it deletes all the whitespace at the end of the empty headline first, which causes the headline to break. I'm not sure if the correct behavior is to leave an empty headline, or maybe just do nothing and leave the point at the end of the empty headline without creating a new one, but the correct thing is definitely *not* to break the headline.