]> git.eshelyaron.com Git - emacs.git/commit
Make treesit-node-at faster
authorYuan Fu <casouri@gmail.com>
Mon, 10 Oct 2022 18:56:12 +0000 (11:56 -0700)
committerYuan Fu <casouri@gmail.com>
Mon, 10 Oct 2022 18:57:24 +0000 (11:57 -0700)
commit1bb7b43e1cfb911737bc4807671910238277470f
tree89e45044b83b882e5f8d849662b144e624651903
parentc8909fa3688aca164e4fd38f6293c4a201e148eb
Make treesit-node-at faster

* lisp/treesit.el (treesit-node-at): We only need to use
treesit-node-first-child-for-pos.  This is both faster for large
buffers and simpler.  Also remove the TODO comment.
lisp/treesit.el