From 5ca9b7a37a38a9b0c6a80068c1e61cfec3f2f799 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Wed, 3 Sep 2025 16:29:16 +0200 Subject: [PATCH] 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: a51690f0334d --- modules/tools/tree-sitter/autoload/compat-30.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/tools/tree-sitter/autoload/compat-30.el b/modules/tools/tree-sitter/autoload/compat-30.el index ca901f984..c85c03583 100644 --- a/modules/tools/tree-sitter/autoload/compat-30.el +++ b/modules/tools/tree-sitter/autoload/compat-30.el @@ -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."