[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Would (Eval-when-compile (require 'treesit)) eliminate the need for (dec
From: |
Yuan Fu |
Subject: |
Would (Eval-when-compile (require 'treesit)) eliminate the need for (declare-function)s? |
Date: |
Sun, 16 Apr 2023 20:12:22 -0700 |
I’ve made the mistake of forgetting to add (declare-function treesit-xxx) when
using functions from treesit.c far too many times (sorry!). Since treesit.el
contains declare-function’s for every function in treesit.c, if we use
(eval-when-compile (require ’treesit)), would it eliminate the need for adding
declare-function’s? Should we do that?
Yuan
- Would (Eval-when-compile (require 'treesit)) eliminate the need for (declare-function)s?,
Yuan Fu <=