]> git.eshelyaron.com Git - emacs.git/commit
Add treesit-node-top-level
authorYuan Fu <casouri@gmail.com>
Sat, 29 Oct 2022 21:11:52 +0000 (14:11 -0700)
committerYuan Fu <casouri@gmail.com>
Sat, 29 Oct 2022 21:47:05 +0000 (14:47 -0700)
commitda87895df2d6b21468b187f5a4e2ca8710e35ee7
tree7ff85558a6b0d445f15fe3620df45746d9905119
parentbaacad1771e3551ffdb1b88c41224fa1957e766c
Add treesit-node-top-level

Merge treesit-node-top-level-p and treesit--find-top-level-match into
treesit-node-top-level.

* doc/lispref/parsing.texi (Retrieving Node): Add manual entry for it.
* lisp/progmodes/js.el (js--treesit-imenu-1): Replace
treesit-node-top-level-p with treesit-node-top-level.
* lisp/treesit.el (treesit-node-top-level-p)
(treesit--find-top-level-match): Remove functions.
(treesit-node-top-level): New function.
* lisp/treesit.el (treesit-beginning-of-defun)
(treesit-end-of-defun): Replace treesit--find-top-level-match with
treesit-node-top-level.
doc/lispref/parsing.texi
lisp/progmodes/js.el
lisp/treesit.el