Subject: Re: bug#76679: 31.0.50; forward-sentence not working in the narrowed buffer under c-ts-mode

From: Eli Zaretskii <[email-masked]>
Date: Tue, 11 Mar 2025 15:18:27 +0200

> From: Juri Linkov <[email-masked]>
> Cc: Eli Zaretskii <[email-masked]>,  [email-masked],  lorniu
>  <[email-masked]>,  Yuan Fu <[email-masked]>
> Date: Tue, 11 Mar 2025 09:24:05 +0200
> 
> >> We agreed that a "sentence" in C-like languages is a thing that
> >> ends with a semicolon (or a comma that separates arguments).
> >>
> >> However, this report raises a different question: whether forward-sentence
> >> should navigate to the end of the narrowed region when the semicolon is hidden?
> >
> > Isn't that what forward-sentence does in e.g. text-mode?  So wouldn't
> > doing that in C-like languages be consistent with that?
> 
> When you set the end of the narrowed region at the middle
> of the sentence either in text-mode or in C-like languages,
> then use forward-sentence to move the end of the narrowed region,
> then widen with 'C-x n w', point will be not at the end
> of the sentence.  This behavior makes no sense.

Why does it not make sense?  What else would you expect a movement
command to do?