GNU bug report logs - #76676
30.1.50; C-M-b in c-ts-mode moves too far

Previous Next

Package: emacs;

Reported by: Eli Zaretskii <eliz <at> gnu.org>

Date: Sun, 2 Mar 2025 08:55:02 UTC

Severity: normal

Found in version 30.1.50

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Juri Linkov <juri <at> linkov.net>
To: Yuan Fu <casouri <at> gmail.com>
Cc: Eli Zaretskii <eliz <at> gnu.org>, 76676 <at> debbugs.gnu.org
Subject: bug#76676: 30.1.50; C-M-b in c-ts-mode moves too far
Date: Wed, 09 Apr 2025 21:22:49 +0300
>> The only ts-mode where the 'sexp' thing is well defined is c-ts-mode with
>>
>>   (sexp (not ,(rx (or "{" "}" "[" "]" "(" ")" ","))))
>>
>> All other ts-modes contain desperate attempts to emulate the
>> traditional behavior to navigate symbols with the 'sexp' thing.
>> But symbol navigation is now implemented as the default behavior.
>>
>> So these ts-modes should be fixed based on the pattern in c-ts-mode.
>> Then after toggling to the sexp mode they will navigate all ts nodes
>> except nodes that define boundaries.
>
> Ok, here is more complete patch with a small improvement in c-ts-mode,
> and using the same pattern in java/css/ruby-ts-mode:

Now pushed to master.




This bug report was last modified 38 days ago.

Previous Next


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