]> git.eshelyaron.com Git - emacs.git/commit
Add guard in treesit-language-at-point-default (bug#77870)
authorYuan Fu <casouri@gmail.com>
Thu, 17 Apr 2025 23:56:07 +0000 (16:56 -0700)
committerEshel Yaron <me@eshelyaron.com>
Fri, 18 Apr 2025 06:47:22 +0000 (08:47 +0200)
commitb01a9db62ade248dcf160dca0162dce9ec2c4587
tree078084433772602f0b3b7c20bb50a8a1a383f511
parent00582df9304f130d4c620257e98ee829299c3b60
Add guard in treesit-language-at-point-default (bug#77870)

* lisp/treesit.el (treesit-language-at-point-default): Return
nil if there's no parser in the buffer.
(treesit-parsers-at): Add docstring for parser order.

(cherry picked from commit f728aa72c047ff8485bce08a6effb1c7790bce9f)
lisp/treesit.el