From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rasmus Subject: Re: [bug] orgstruct++-mode breaks backward-sentence Date: Fri, 22 May 2015 17:52:38 +0200 Message-ID: <874mn4boe1.fsf@gmx.us> References: <87mw325is7.fsf@gmx.us> <87fv8u5ii2.fsf@gmx.us> <87d23yru77.fsf@nicolasgoaziou.fr> <87384uyrze.fsf@gmx.us> <878uegdmok.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:51313) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YvpFf-000076-Kc for emacs-orgmode@gnu.org; Fri, 22 May 2015 11:52:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YvpFc-0002iZ-CU for emacs-orgmode@gnu.org; Fri, 22 May 2015 11:52:47 -0400 Received: from mout.gmx.net ([212.227.17.20]:64216) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YvpFc-0002iU-3Z for emacs-orgmode@gnu.org; Fri, 22 May 2015 11:52:44 -0400 Received: from x200s ([46.166.186.218]) by mail.gmx.com (mrgmx103) with ESMTPSA (Nemesis) id 0M3i8r-1ZDDbs2bwn-00rGpc for ; Fri, 22 May 2015 17:52:41 +0200 In-Reply-To: <878uegdmok.fsf@nicolasgoaziou.fr> (Nicolas Goaziou's message of "Sun, 29 Mar 2015 14:15:39 +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 Hi, Sorry for bringing this thread up again. Nicolas Goaziou writes: > Rasmus writes: > >> 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. > > This should be fixed in 98ec17e204689f415200a2930fc148bf6a4dfe49. Thank > you. Actually when calling just backward-sentence this still seems broken. (mapcar (lambda (mode) (with-temp-buffer (text-mode) (funcall mode) (insert"- foo bar") (backward-sentence) (point))) '(text-mode org-mode turn-on-orgstruct++)) =3D> (1 9 9) It only works if I explicitly call org-backward-sentence, not backward-sentence. In orgstruct-mode this seems unfortunate. =E2=80=94Rasmus --=20 Spil noget med Slayer!