[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Would (Eval-when-compile (require 'treesit)) eliminate the need for
From: |
Eli Zaretskii |
Subject: |
Re: Would (Eval-when-compile (require 'treesit)) eliminate the need for (declare-function)s? |
Date: |
Mon, 17 Apr 2023 20:39:44 +0300 |
> From: Stefan Monnier <monnier@iro.umontreal.ca>
> Cc: Yuan Fu <casouri@gmail.com>, Lars Ingebrigtsen <larsi@gnus.org>,
> emacs-devel@gnu.org
> Date: Mon, 17 Apr 2023 13:25:26 -0400
>
> > Even if it does work reliably, I'm not sure we want that. It is
> > better to have declare-function where the function is used, as that
> > makes maintenance easier and less error-prone.
>
> But it makes sense for packages that do
>
> (require 'treesit)
>
> to be able to use those functions implemented in `treesit.c` without
> bothering with `declare-function`.
That's what I'm not sure about.