From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mat Vibrys Subject: Re: asymmetry between org-backward-sentence and org-forward-sentence around headings Date: Sat, 7 Oct 2017 23:26:45 +0200 Message-ID: References: <87377sz97a.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="f403045e259c4b632c055afb9d8c" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:57473) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e0wcR-0007NC-Nw for emacs-orgmode@gnu.org; Sat, 07 Oct 2017 17:26:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e0wcQ-0005zM-KR for emacs-orgmode@gnu.org; Sat, 07 Oct 2017 17:26:47 -0400 Received: from mail-ua0-x234.google.com ([2607:f8b0:400c:c08::234]:50641) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1e0wcQ-0005z6-EV for emacs-orgmode@gnu.org; Sat, 07 Oct 2017 17:26:46 -0400 Received: by mail-ua0-x234.google.com with SMTP id v27so8934013uav.7 for ; Sat, 07 Oct 2017 14:26:46 -0700 (PDT) In-Reply-To: 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" To: Nicolas Goaziou Cc: emacs-orgmode@gnu.org --f403045e259c4b632c055afb9d8c Content-Type: text/plain; charset="UTF-8" Sorry, my example contents does not seem to be proper. Dots are missing after all the bodyX. correct one looks like following: * head1 body1. * head2 body2. * head3 body3. calling `org-forward-sentence' from goes to , while it should to to somewhere after head2 and before body2. Calling `org-backward-sentence' from goes before body2 and after head2, which is correct. regards, Mat On Sat, Oct 7, 2017 at 11:13 PM, Mat Vibrys wrote: > Nicolas, > thank You for fix, I've just did some testing on it and found some > contents where assymetry still persists. cursor position is marked with > and IT IS NOT PART OF FILE CONTENTS. > > > * head1 > > body1 > > * head2 > > body2 > > * head3. > > body3 > > > calling `org-forward-sentence' from will go to , while IMO it > should not go that far, I mean it should stop somewhere BEFORE body2 line > and AFTER head2 line. This is where cursor is stopped when You travel from > using `org-backward-sentence'. > > regards. > > > On Tue, Sep 12, 2017 at 9:07 AM, Nicolas Goaziou > wrote: > >> Hello, >> >> Mat Vibrys writes: >> >> > Org file looks like following: >> > >> > * heading >> > my line. >> > >> > when cursor is at beginning of file, `org-forward-sentence' goes to >> the >> > end of "my line.", which does not seem to be correct (heading is special >> > outline). Then calling `org-backward-sentence' behaves correctly, ie it >> > goes to the beginning of "my line.". >> >> Fixed. Thank you. >> >> Regards, >> >> -- >> Nicolas Goaziou >> > > --f403045e259c4b632c055afb9d8c Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Sorry,
my example contents do= es not seem to be proper. Dots are missing after all the bodyX. correct one= looks like following:

* head1

=C2=A0 body1.<C-1->
<= br>* head2

=C2=A0 body2.<C-3->

* head3

=C2=A0 bo= dy3.

calling `org-forward-sentence' from <C-1-> goes= to <C-3->, while it should to to somewhere after head2 and before bo= dy2. Calling `org-backward-sentence' from <C-3-> goes before body= 2 and after head2, which is correct.

regards,
Mat
=


<= div class=3D"gmail_quote">On Sat, Oct 7, 2017 at 11:13 PM, Mat Vibrys <vi= brysec@gmail.com> wrote:
Nicolas,
thank You for fix, I've= just did some testing on it and found some contents where assymetry still = persists. cursor position is marked with <C-N-> and IT IS NOT PART OF= FILE CONTENTS.


* head1

=C2=A0 body1<C-1->

*= head2

=C2=A0 body2<C-3->

* head3.

=C2=A0 body3<= br>

calling `org-forward-sentence' from <C-1-> will = go to <C-3->, while IMO it should not go that far, I mean it should s= top somewhere BEFORE body2 line and AFTER head2 line. This is where cursor = is stopped when You travel from <C-3-> using `org-backward-sentence&#= 39;.

regards.


On Tue, Sep = 12, 2017 at 9:07 AM, Nicolas Goaziou <mail@nicolasgoaziou.fr><= /span> wrote:
Hello,

Mat Vibrys <vibr= ysec@gmail.com> writes:

>=C2=A0 =C2=A0Org file looks like following:
>
>=C2=A0 =C2=A0* heading
>=C2=A0 =C2=A0 =C2=A0my line.
>
>=C2=A0 =C2=A0when cursor is at beginning of file, `org-forward-sentence= ' goes to the
> end of "my line.", which does not seem to be correct (headin= g is special
> outline). Then calling `org-backward-sentence' behaves correctly, = ie it
> goes to the beginning of "my line.".

Fixed. Thank you.

Regards,

--
Nicolas Goaziou


--f403045e259c4b632c055afb9d8c--