]> git.eshelyaron.com Git - emacs.git/commit
Improve treesit-node-at
authorYuan Fu <casouri@gmail.com>
Sat, 12 Nov 2022 04:04:38 +0000 (20:04 -0800)
committerYuan Fu <casouri@gmail.com>
Sat, 12 Nov 2022 04:04:38 +0000 (20:04 -0800)
commit5cd3db73bed06e394ea8e7b0e332b1b1e5bd9571
tree959a84f4a86cc39784ab5e0964bb21b80c5a9770
parent4489450f37deafb013b1f0fc00c89f0973fda14a
Improve treesit-node-at

* doc/lispref/parsing.texi (Retrieving Node): Update manual.
* lisp/treesit.el (treesit-node-at): Change semantic.  It tries to
return the node that a user would expect in various circumstances.
* test/src/treesit-tests.el (treesit-node-at): New test.
doc/lispref/parsing.texi
lisp/treesit.el
test/src/treesit-tests.el