Subject: bug#69405: closed (Re: bug#69405: [PATCH] .emacs.d/tree-sitter/ not used in tree-sitter tests)

From: [email-masked] (GNU bug Tracking System)
Date: Mon, 26 Feb 2024 18:16:01 +0000

Your bug report

#69405: [PATCH] .emacs.d/tree-sitter/ not used in tree-sitter tests

which was filed against the emacs package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
69405: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=69405
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: bug#69405: [PATCH] .emacs.d/tree-sitter/ not used in tree-sitter tests
From: Mattias Engdegård <[email-masked]>
To: Eli Zaretskii <[email-masked]>
Cc: [email-masked], Yuan Fu <[email-masked]>
Date: Mon, 26 Feb 2024 19:07:30 +0100
List-Id: <debbugs-submit.debbugs.gnu.org>

26 feb. 2024 kl. 17.52 skrev Eli Zaretskii <[email-masked]>:

> The question is how important is it to support cases where the
> directory is not under ~/.emacs.d/tree-sitter/, but somewhere else,
> perhaps created specifically for running the tests without affecting
> the production sessions?  If that's not very important, then
> supporting just the HOME case should be enough.

Yes, let's start with the HOME case, since that's what is being actively inhibited by the Makefile.
Pushed to master. Maybe this will lead to more people running tree-sitter tests (I certainly will).
Thank you!

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.