docs(tree-sitter): revise doctor output

This commit is contained in:
Henrik Lissner
2025-05-15 18:55:52 +02:00
parent 2556cb58f2
commit b546522257

View File

@ -1,8 +1,10 @@
;;; tools/tree-sitter/doctor.el -*- lexical-binding: t; -*-
(unless (fboundp 'module-load)
(warn! "Emacs was not built with dynamic modules support, which the treesit.el library requires"))
(error! "Emacs not built with dynamic modules support"))
(unless (and (fboundp 'treesit-available-p)
(treesit-available-p))
(error! "Treesit library not available. Did you build Emacs with tree-sitter support?"))
(if (version< emacs-version "29.1")
(error! "Emacs 29.1 or newer is required for tree-sitter support")
(unless (and (fboundp 'treesit-available-p)
(treesit-available-p))
(error! "Emacs not built with tree-sitter support!")))