From mboxrd@z Thu Jan 1 00:00:00 1970 From: Gregor Zattler Subject: [BUG] adding new plain lists item changes previous one it it ends in a number on a single lijne followed by a dot Date: Wed, 2 Feb 2011 20:20:20 +0100 Message-ID: <20110202192020.GF5402@shi.workgroup> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from [140.186.70.92] (port=35219 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PkiG6-0005MH-OO for emacs-orgmode@gnu.org; Wed, 02 Feb 2011 14:20:59 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PkiG1-000105-Ld for emacs-orgmode@gnu.org; Wed, 02 Feb 2011 14:20:54 -0500 Received: from mailout-de.gmx.net ([213.165.64.22]:59420) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1PkiG1-0000zO-8w for emacs-orgmode@gnu.org; Wed, 02 Feb 2011 14:20:49 -0500 Content-Disposition: inline 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: emacs-orgmode Dear org-mode developers, adding a new list item via M-RET (org-insert-heading) may change text in a previous list item, if this ends in a number on a single line followed by a dot: ------------------------------- - Several astonishing things happened in 2007. - And then there was another item.X ------------------------------- When typing M-RET with cursor at X I would expect the following outcome (again with X marking the cursor position): ------------------------------- - Several astonishing things happened in 2007. - And then there was another item. - X ------------------------------- This is the correct result when using Emacs 23.2 with its org-mode 6.33. But with today's org-mode "Org-mode version 7.5 (release_7.4.300.g0b7c)" I instead get: ------------------------------- - Several astonishing things happened in 1. - And then there was another item. - X ------------------------------- Note that " 2007." has changed to " 1." in line 2. The same bug is present in the maintenance version "Org-mode version 7.5 (release_7.4.3.g76a2)". This only happens when the number is followed by a dot. Without the dot both new versions of org-mode do not change the number on the last line of the first item. I did all tests with "emacs -nw -Q" and with Emacs 23.2 and 24.0.50 as of 2011-01-16. Fixing bugs in org-mode is beyond me. Ciao; Gregor -- -... --- .-. . -.. ..--.. ...-.-