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:
parent
7a3c10dcb5
commit
df5ac0daf0
@ -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)))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user