]> git.eshelyaron.com Git - emacs.git/commit
Make treesit-node-at/on guess language at point
authorYuan Fu <casouri@gmail.com>
Sat, 24 Dec 2022 23:31:03 +0000 (15:31 -0800)
committerYuan Fu <casouri@gmail.com>
Sun, 25 Dec 2022 02:43:03 +0000 (18:43 -0800)
commit35c2ca2ca64070f6ebc75011e5e6e2d688124bec
treea44c4da06fa49b33ce2369a987318b347f6228c7
parent7f7def2ae62c80fa2fd0c73087b59060b303c230
Make treesit-node-at/on guess language at point

If PARSER-OR-LANG is nil, it makes more sense to guess the language at
point by treesit-language-at than to simply use the first parser in
the parser list.

* doc/lispref/parsing.texi (Retrieving Nodes): Update manual.
* lisp/treesit.el (treesit-node-at)
(treesit-node-on): Guess language at point.  Update docstring.
(treesit-buffer-root-node): Update docstring.
doc/lispref/parsing.texi
lisp/treesit.el