GNU bug report logs -
#73404
30.0.50; [forward/kill/etc]-sexp commands do not behave as expected in tree-sitter modes
Previous Next
Reported by: Mickey Petersen <mickey <at> masteringemacs.org>
Date: Sat, 21 Sep 2024 05:13:01 UTC
Severity: normal
Merged with 74366
Found in version 30.0.50
Fixed in version 31.0.50
Done: Juri Linkov <juri <at> linkov.net>
Bug is archived. No further changes may be made.
Full log
Message #29 received at 73404 <at> debbugs.gnu.org (full text, mbox):
> On Sep 26, 2024, at 8:45 AM, Eli Zaretskii <eliz <at> gnu.org> wrote:
>
>> From: Mickey Petersen <mickey <at> masteringemacs.org>
>> Cc: casouri <at> gmail.com, 73404 <at> debbugs.gnu.org
>> Date: Thu, 26 Sep 2024 16:21:33 +0100
>>
>>> I think the ability to move by parse sub-trees is also very useful.
>>>
>>
>> Agreed. What matters is whether the crop of new sexp commands, such as they
>> are, perform satisfactorily.
Note that you can affect the behavior of tree-sitter sexp movement by defining the sexp “thing” in treesit-thing-settings. Js-ts-mode defines one (js--treesit-sexp-nodes) and it only consider some nodes as sexp. You might be able to tweak the sexp movement to your liking by changing it, or directly modifying the definition for `sexp’ in treesit-thing-settings.
>>
>> Do you think the examples I listed in the original bug report match
>> your expectations? If so, then it is probably OK to close the bug report.
>
> Yes, I do, but let's wait for others to chime in if they have opinions
> on this.
This bug report was last modified 131 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.