fix(tree-sitter): autodef treesit-available-p

This way, whether the module is enabled or not, `treesit-available-p`
will exist, even in Emacs build without treesit.

Amend: a51690f033
This commit is contained in:
Henrik Lissner
2025-09-03 16:29:16 +02:00
parent 78068a8f31
commit 5ca9b7a37a

View File

@@ -9,7 +9,7 @@
;; In case of Emacs builds where treesit isn't built in (to avoid void-function
;; errors and verbose, redundant checks everywhere).
;;;###autoload
;;;###autodef
(unless (fboundp 'treesit-available-p)
(defun treesit-available-p ()
"Return non-nil if tree-sitter support is built-in and available."