1

I'm trying out the feature branch feature/tree-sitter available on remote https://github.com/emacs-mirror/emacs.git.

Build and startup all works fine. However, the functions defined in the Emacs source module treesit.c are not available. For instance the function treesit-language-available-p described in the documentation is not available.

Currently

(require 'treesit nil t)

evaluates to t but

(when (require 'treesit nil t)
  (fboundp 'treesit-language-available-p))

to nil.

1 Answer 1

1

I solved it. I had forgotten to pass --with-tree-sitter to ./configure.

On Ubuntu 22.04 this has the prerequisite

apt install libtree-sitter-dev

.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.