]> git.eshelyaron.com Git - emacs.git/commit
Improve treesit-node-top-level and treesit-parent-until
authorYuan Fu <casouri@gmail.com>
Tue, 27 Dec 2022 23:07:03 +0000 (15:07 -0800)
committerYuan Fu <casouri@gmail.com>
Wed, 28 Dec 2022 01:17:25 +0000 (17:17 -0800)
commit5326b041982287514522f7f7930ff243d8d5cc70
tree7bc49c7f10a9a162137cfcfc1d52edd67b631843
parent637f5b164f2dedad45bff6d881231a8f014c65bc
Improve treesit-node-top-level and treesit-parent-until

* lisp/treesit.el (treesit-node-top-level): Now it can accept a
predicate function.  Add an optional argument INCLUDE-NODE.
(treesit-parent-until): Add an optional argument INCLUDE-NODE.
lisp/treesit.el