all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#63487: 30.0.50; C-M-u does not work correctly in c-ts-mode
       [not found] <m1jzxci13w.fsf.ref@yahoo.es>
@ 2023-05-13 17:37 ` Daniel Martín via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2023-05-18 11:12   ` Eli Zaretskii
  0 siblings, 1 reply; 3+ messages in thread
From: Daniel Martín via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2023-05-13 17:37 UTC (permalink / raw)
  To: 63487


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.





^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#63487: 30.0.50; C-M-u does not work correctly in c-ts-mode
  2023-05-13 17:37 ` bug#63487: 30.0.50; C-M-u does not work correctly in c-ts-mode Daniel Martín via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2023-05-18 11:12   ` Eli Zaretskii
  2023-05-19  7:23     ` Yuan Fu
  0 siblings, 1 reply; 3+ messages in thread
From: Eli Zaretskii @ 2023-05-18 11:12 UTC (permalink / raw)
  To: Daniel Martín, Yuan Fu; +Cc: 63487

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





^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#63487: 30.0.50; C-M-u does not work correctly in c-ts-mode
  2023-05-18 11:12   ` Eli Zaretskii
@ 2023-05-19  7:23     ` Yuan Fu
  0 siblings, 0 replies; 3+ messages in thread
From: Yuan Fu @ 2023-05-19  7:23 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 63487-done, Daniel Martín



> On May 18, 2023, at 4:12 AM, Eli Zaretskii <eliz@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@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






^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-05-19  7:23 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <m1jzxci13w.fsf.ref@yahoo.es>
2023-05-13 17:37 ` bug#63487: 30.0.50; C-M-u does not work correctly in c-ts-mode Daniel Martín via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-05-18 11:12   ` Eli Zaretskii
2023-05-19  7:23     ` Yuan Fu

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.