]> git.eshelyaron.com Git - emacs.git/commit
Fix treesit-language-at
authorYuan Fu <casouri@gmail.com>
Tue, 25 Oct 2022 21:26:41 +0000 (14:26 -0700)
committerYuan Fu <casouri@gmail.com>
Tue, 25 Oct 2022 21:26:41 +0000 (14:26 -0700)
commite5043db2f1f3d0ce6618eb45419e85f0d58fbf19
tree80e03437971e3ef09217a6047e0f250deeb04015
parent7c5d4348330b206aff1f8e5bc4fd241d6a6dc0b5
Fix treesit-language-at

* lisp/treesit.el (treesit-language-at-point-function): New local
variable.
(treesit-language-at): Change to use
treesit-language-at-point-function rather than trying each parser
one-by-one.
* doc/lispref/parsing.texi (Multiple Languages): Update manual.
doc/lispref/parsing.texi
lisp/treesit.el