]> git.eshelyaron.com Git - emacs.git/commit
Make treesit-node-at return the last leaf node at EOB
authorYuan Fu <casouri@gmail.com>
Mon, 24 Oct 2022 01:23:17 +0000 (18:23 -0700)
committerYuan Fu <casouri@gmail.com>
Mon, 24 Oct 2022 01:23:17 +0000 (18:23 -0700)
commit524d10c86b539ef6fe27f31ed3df2590d1849a83
tree2b151c9d700a38f7d761370a37202cb2e1a63638
parent591759d508024a666a863cf918287744e72b1267
Make treesit-node-at return the last leaf node at EOB

* doc/lispref/parsing.texi (Retrieving Node): Update manual.
* lisp/treesit.el (treesit-node-at): Add a (when node) form just to be
explicit, return the last leaf node if there is no node after POS.
doc/lispref/parsing.texi
lisp/treesit.el