From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rasmus Subject: Re: [bug] orgstruct++-mode breaks backward-sentence Date: Tue, 24 Mar 2015 23:01:57 +0100 Message-ID: <87384uyrze.fsf@gmx.us> References: <87mw325is7.fsf@gmx.us> <87fv8u5ii2.fsf@gmx.us> <87d23yru77.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:33195) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YaWth-00072r-CD for emacs-orgmode@gnu.org; Tue, 24 Mar 2015 18:02:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YaWtc-0004bJ-BD for emacs-orgmode@gnu.org; Tue, 24 Mar 2015 18:02:05 -0400 Received: from mout.gmx.net ([212.227.17.20]:50709) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YaWtc-0004aZ-2L for emacs-orgmode@gnu.org; Tue, 24 Mar 2015 18:02:00 -0400 Received: from W530 ([46.166.186.240]) by mail.gmx.com (mrgmx101) with ESMTPSA (Nemesis) id 0LeiJ8-1ZHqCf0XPi-00qViH for ; Tue, 24 Mar 2015 23:01:59 +0100 In-Reply-To: <87d23yru77.fsf@nicolasgoaziou.fr> (Nicolas Goaziou's message of "Tue, 24 Mar 2015 21:55:56 +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: emacs-orgmode@gnu.org Hi, Nicolas Goaziou writes: >>> Consider the following test file in text-mode where "|" is the cursor. >>> >>> 1. Foo bar >>> baz| >>> >>> Before turning on orgstruct++-mode backward-sentence will correctly go to >>> "|Foo". When turning on orgstruct-mode, backward-sentence will also work >>> correctly. So somehow orgstruct++ does something that ruins >>> backward-sentence. Note that (sentence-end) does not seem to be affected >>> by orgstruct++-mode. >> >> This is actually not particular to orgstruct++-mode. It also happens in >> org-mode. With orgstruct-mode fill-paragraph does not work on lists. >> Maybe you can't have both? > > I'm confused. Your first message talks about `backward-sentence' and the > second one about `fill-paragraph'. Could you explain what the bug is? Forget about fill-paragraph. Try this with test-org as nil and non-nil: (let ((test-org nil)) (switch-to-buffer "test.org") (if test-org (org-mode) (text-mode)) (erase-buffer) (insert "1. foo bar\n baz") (backward-sentence)) When the buffer is in org-mode backward sentence behaves differently from when it's in text-mode. I think text-mode behaves correctly. [The aside was that this does not happen in orgstruct-mode, but in orgstruct-mode fill-paragraph does not work.] Thanks, Rasmus -- And I faced endless streams of vendor-approved Ikea furniture. . .