diff options
author | Yuan Fu <casouri@gmail.com> | 2022-09-24 19:35:11 -0700 |
---|---|---|
committer | Yuan Fu <casouri@gmail.com> | 2022-09-24 21:11:30 -0700 |
commit | eba65824364474bde89bdce5f57a772d74a2c409 (patch) | |
tree | db18cd4296be31f085e586923a7666c7100af3c9 /lisp/emacs-lisp/lisp.el | |
parent | c957832cbf3e87e5a25f7c2bdb70abd959391d98 (diff) | |
download | emacs-eba65824364474bde89bdce5f57a772d74a2c409.tar.gz emacs-eba65824364474bde89bdce5f57a772d74a2c409.tar.bz2 emacs-eba65824364474bde89bdce5f57a772d74a2c409.zip |
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.
Diffstat (limited to 'lisp/emacs-lisp/lisp.el')
0 files changed, 0 insertions, 0 deletions