[O] asymmetry between org-backward-sentence and org-forward-sentence around headings

2017-09-11 Thread Mat Vibrys
  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.".

  To workaround the problem I kept on inserting dot at the end of each
heading. Until yesterday where I wanted to add link to heading from another
file. When dot is at the end of heading, then adding dot to the end of link
does not work.

  file:./fil.org::heading.

  correct behavior of `org-forward-sentence' would probably fix the
problem, ie I could remove dots from ends of all the headings

regards,
Mat


Re: [O] asymmetry between org-backward-sentence and org-forward-sentence around headings

2017-09-12 Thread Nicolas Goaziou
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



Re: [O] asymmetry between org-backward-sentence and org-forward-sentence around headings

2017-10-07 Thread Mat Vibrys
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
>


Re: [O] asymmetry between org-backward-sentence and org-forward-sentence around headings

2017-10-07 Thread Mat Vibrys
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
>>
>
>


Re: [O] asymmetry between org-backward-sentence and org-forward-sentence around headings

2017-10-08 Thread Nicolas Goaziou
Hello,

Mat Vibrys  writes:

> 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.

Fixed. Thank you.

Regards,

-- 
Nicolas Goaziou



Re: [O] asymmetry between org-backward-sentence and org-forward-sentence around headings

2017-10-29 Thread Mat Vibrys
Nicolas,
works correct now.

Thank You for the fix,
Mat

On Sun, Oct 8, 2017 at 10:37 AM, Nicolas Goaziou 
wrote:

> Hello,
>
> Mat Vibrys  writes:
>
> > 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.
>
> Fixed. Thank you.
>
> Regards,
>
> --
> Nicolas Goaziou
>