1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-11-21 06:55:39 +00:00

Fix the call to treesit-thing-defined-p

* lisp/treesit.el (treesit-defun-at-point): Add the necessary
2nd argument.
This commit is contained in:
Yuan Fu 2024-10-28 19:30:52 -07:00
parent 7a3c10dcb5
commit df5ac0daf0
No known key found for this signature in database
GPG Key ID: 56E19BC57664A442

View File

@ -2823,7 +2823,9 @@ is `nested'.
Return nil if `treesit-defun-type-regexp' isn't set and `defun'
isn't defined in `treesit-thing-settings'."
(when (or treesit-defun-type-regexp (treesit-thing-defined-p 'defun))
(when (or treesit-defun-type-regexp
(treesit-thing-defined-p
'defun (treesit-language-at (point))))
(treesit-thing-at-point
(or treesit-defun-type-regexp 'defun) treesit-defun-tactic)))