Subject: [PATCH] .emacs.d/tree-sitter/ not used in tree-sitter tests
From: Mattias Engdegård <[email-masked]>
To: Emacs Bug Report <[email-masked]>
Cc: Yuan Fu <[email-masked]>
Date: Mon, 26 Feb 2024 14:36:39 +0100
List-Id: <debbugs-submit.debbugs.gnu.org>

The .emacs.d/tree-sitter/ directory isn't searched when running tests non-interactively. The Makefile sets HOME to /nonexistent, which is correct but has the unfortunate side-effect of not running all the tests properly even with the compiled grammars installed.

The attached patch adds an environment variable, EMACS_TREE_SITTER_DIR, and sets it in the Makefile. I didn't bother documenting it because it's only intended for use in our own tests.