Subject: Re: bug#63487: 30.0.50; C-M-u does not work correctly in c-ts-mode
From: Yuan Fu <[email-masked]>
To: Eli Zaretskii <[email-masked]>
Cc: [email-masked],Daniel Martín <[email-masked]>
Date: Fri, 19 May 2023 00:23:11 -0700
List-Id: <debbugs-submit.debbugs.gnu.org>

> On May 18, 2023, at 4:12 AM, Eli Zaretskii <[email-masked]> wrote:
> 
>> Date: Sat, 13 May 2023 19:37:39 +0200
>> From:  Daniel Martín via "Bug reports for GNU Emacs,
>> the Swiss army knife of text editors" <[email-masked]>
>> 
>> 
>> Steps to reproduce:
>> 
>> emacs -Q
>> C-x b sample.c RET
>> M-x c-ts-mode
>> Write the following code:
>> 
>> int foo(int a, int b) {
>> 
>> }
>> 
>> With point inside the function, press C-M-u.
>> 
>> Actual result:
>> 
>> Emacs beeps and shows "At top level".
>> 
>> Expected result:
>> 
>> Point goes to the open { instead.
> 
> I hope Yuan will look into this soon.

Thanks for the report. This is due to treesit-forward-sexp not signaling scan-error when it should. I pushed a fix for it.

Yuan