GNU bug report logs - #63487
30.0.50; C-M-u does not work correctly in c-ts-mode

Previous Next

Package: emacs;

Reported by: Daniel Martín <mardani29 <at> yahoo.es>

Date: Sat, 13 May 2023 17:38:02 UTC

Severity: normal

Found in version 30.0.50

Done: Yuan Fu <casouri <at> gmail.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 63487 in the body.
You can then email your comments to 63487 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#63487; Package emacs. (Sat, 13 May 2023 17:38:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Daniel Martín <mardani29 <at> yahoo.es>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Sat, 13 May 2023 17:38:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Daniel Martín <mardani29 <at> yahoo.es>
To: bug-gnu-emacs <at> gnu.org
Subject: 30.0.50; C-M-u does not work correctly in c-ts-mode
Date: Sat, 13 May 2023 19:37:39 +0200
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.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#63487; Package emacs. (Thu, 18 May 2023 11:14:01 GMT) Full text and rfc822 format available.

Message #8 received at 63487 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Daniel Martín <mardani29 <at> yahoo.es>, Yuan Fu
 <casouri <at> gmail.com>
Cc: 63487 <at> debbugs.gnu.org
Subject: Re: bug#63487: 30.0.50; C-M-u does not work correctly in c-ts-mode
Date: Thu, 18 May 2023 14:12:53 +0300
> 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" <bug-gnu-emacs <at> gnu.org>
> 
> 
> 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.




Reply sent to Yuan Fu <casouri <at> gmail.com>:
You have taken responsibility. (Fri, 19 May 2023 07:24:01 GMT) Full text and rfc822 format available.

Notification sent to Daniel Martín <mardani29 <at> yahoo.es>:
bug acknowledged by developer. (Fri, 19 May 2023 07:24:01 GMT) Full text and rfc822 format available.

Message #13 received at 63487-done <at> debbugs.gnu.org (full text, mbox):

From: Yuan Fu <casouri <at> gmail.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 63487-done <at> debbugs.gnu.org,
 Daniel Martín <mardani29 <at> yahoo.es>
Subject: Re: bug#63487: 30.0.50; C-M-u does not work correctly in c-ts-mode
Date: Fri, 19 May 2023 00:23:11 -0700

> On May 18, 2023, at 4:12 AM, Eli Zaretskii <eliz <at> gnu.org> 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" <bug-gnu-emacs <at> gnu.org>
>> 
>> 
>> 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





bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Fri, 16 Jun 2023 11:24:14 GMT) Full text and rfc822 format available.

This bug report was last modified 308 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.