GNU bug report logs -
#76398
treesit-aggregated-outline-predicate
Previous Next
Reported by: Juri Linkov <juri <at> linkov.net>
Date: Tue, 18 Feb 2025 17:36:01 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
Message #11 received at 76398 <at> debbugs.gnu.org (full text, mbox):
>> So this patch helps 'treesit-outline-search' to get out of the local parser
>> to the primary parser to continue search for the next outline predicate.
>>
>> 'treesit-outline-level' should do the same, but currently I can't find
>> a suitable function to break out of embedded confinement
>> and get the host node that contains the guest ranges.
>> I mean that e.g. (treesit-parser-root-node (treesit-node-parser node))
>> can get the root node of the local parser, but how to get its parent node
>> in the primary parser? It's understandable that treesit-node-parent
>> doesn't go out of its parser. But maybe there is another function?
>> If such function doesn't exist, this is fine, then could find that
>> node manually by calculating from treesit-parser-included-ranges.
>
> Maybe we need two new primitives:
>
> (treesit-next-parser-boundary POS)
> (treesit-prev-parser-boundary POS)
Now pushed as 'treesit-closest-parser-boundary'.
> (treesit-upper-parser-node POS)
Addition of 'treesit-upper-parser-node' is underway that should
be used in 'treesit-up-list' as well.
This bug report was last modified 69 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.