]> git.eshelyaron.com Git - emacs.git/commit
Fix treesit-node-at wrt local parsers
authorYuan Fu <casouri@gmail.com>
Sat, 9 Sep 2023 19:35:13 +0000 (12:35 -0700)
committerYuan Fu <casouri@gmail.com>
Sat, 9 Sep 2023 19:36:49 +0000 (12:36 -0700)
commit93a458f25f2a4730b9e24ae39cc25ad163697d53
tree6b8a43b812ea6f991f7a72570ab75149894c285e
parent01ba4d6c5f9622ce861b53760ddd05b788e27c95
Fix treesit-node-at wrt local parsers

* lisp/treesit.el (treesit-node-at): Don't compute language at point
first.  Because treesit-language-at uses treesit-node-at with a
language argument. Only call treesit-language-at when PARSER-OR-LANG
is nil.
lisp/treesit.el