|
From: | Dmitry Gutov |
Subject: | Re: Use (eval-when-compile 'treesit) to save us from writing declare-function forms |
Date: | Sun, 8 Dec 2024 18:01:39 +0200 |
User-agent: | Mozilla Thunderbird |
On 04/12/2024 20:19, Yuan Fu wrote:
When Emacs is built without tree-sitter, none of the treesit.c functions are available (except for treesit-ready-p)
Have we considered having all of those functions defined but doing nothing in that case? Alias them to 'ignore' or something that raises an error.
I think then we won't have to maintain these 'declare-function' lists in every package that depends on treesit.c.
[Prev in Thread] | Current Thread | [Next in Thread] |