]> git.eshelyaron.com Git - emacs.git/commit
Add the treesit-search functions that supplant the removed ones
authorYuan Fu <casouri@gmail.com>
Sun, 25 Sep 2022 02:35:11 +0000 (19:35 -0700)
committerYuan Fu <casouri@gmail.com>
Sun, 25 Sep 2022 04:11:30 +0000 (21:11 -0700)
commiteba65824364474bde89bdce5f57a772d74a2c409
treedb18cd4296be31f085e586923a7666c7100af3c9
parentc957832cbf3e87e5a25f7c2bdb70abd959391d98
Add the treesit-search functions that supplant the removed ones

The signatures also changed.

treesit-traverse-depth-first   -> treesit-search-subtree
treesit-traverse-breadth-first ->
treesit-traverse-forward       -> treesit-search-forward
treesit-search-forward         -> treesit-search-forward-goto
treesit-search-beginning/end   -> treesit-search-forward-goto
                               -> treesit-induce-sparse-tree

* doc/lispref/parsing.texi (Retrieving Node): Add relevant manual
sections.
* lisp/treesit.el (treesit-search-forward-goto): New function.
* src/treesit.c (ts_traverse_sibling_helper)
(ts_traverse_match_predicate)
(ts_search_dfs)
(ts_search_forward)
(treesit-search-subtree)
(treesit-search-forward)
(ts_build_sparse_tree)
(Ftreesit_induce_sparse_tree): Add functions.
* test/src/treesit-tests.el (treesit-node-supplemental): Add comments.
doc/lispref/parsing.texi
lisp/treesit.el
src/treesit.c
test/src/treesit-tests.el