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.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Yuan Fu <casouri <at> gmail.com>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#63487: closed (30.0.50; C-M-u does not work correctly in
 c-ts-mode)
Date: Fri, 19 May 2023 07:24:01 +0000
[Message part 1 (text/plain, inline)]
Your message dated Fri, 19 May 2023 00:23:11 -0700
with message-id <089D7600-BFF2-45DB-8CEB-0583603D6063 <at> gmail.com>
and subject line Re: bug#63487: 30.0.50; C-M-u does not work correctly in c-ts-mode
has caused the debbugs.gnu.org bug report #63487,
regarding 30.0.50; C-M-u does not work correctly in c-ts-mode
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
63487: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=63487
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
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.


[Message part 3 (message/rfc822, inline)]
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



This bug report was last modified 2 years and 5 days ago.

Previous Next


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