GNU bug report logs -
#77906
31.0.50; php-js-mode and js-ts-mode: treesit-show-paren-data--categorize: peculiar error: ("Cannot find the definition of the predicate in `treesit-thing-settings'" list)
Previous Next
Reported by: Vincenzo Pupillo <v.pupillo <at> gmail.com>
Date: Fri, 18 Apr 2025 18:58:05 UTC
Severity: normal
Fixed in version 31.0.50
Done: Juri Linkov <juri <at> linkov.net>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
>>>> With this patch the following case works correctly in test.heex:
>>>>
>>>> <%= if true do %>
>>>> <p>hello, tree-sitter!</p>
>>>> <% end| %>
>>>>
>>>> With point at "|" the command 'backward-sexp' (C-M-b)
>>>> correctly jumps to the beginning of "if".
>>>
>>> Right. I think it can be done in backward-sexp since there we know
>>> we’re moving back. I assume that’s what you mean.
>>
>> The problem is that the last time when the arg is still -1
>> is in 'treesit-forward-sexp', and then it calls
>> 'treesit-beginning-of-thing' with '(abs arg)'.
>>
>> The complete call chain:
>>
>> - treesit-forward-sexp
>> - treesit-beginning-of-thing
>> - treesit-navigate-thing
>> - treesit-thing-at
>> - treesit-node-at
>> - treesit-parsers-at
>> - overlays-at
>>
>> So not clear how to propagate the flag for decrementing the offset.
>> Maybe by let-binding a new dynamically bound variable?
>
> Ok, here is the patch:
Now pushed to master.
This bug report was last modified 6 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.