From: Ruijie Yu via "Emacs development discussions." <emacs-devel@gnu.org>
To: Yuan Fu <casouri@gmail.com>
Cc: emacs-devel@gnu.org
Subject: Re: Would (Eval-when-compile (require 'treesit)) eliminate the need for (declare-function)s?
Date: Mon, 17 Apr 2023 11:31:25 +0800 [thread overview]
Message-ID: <sdv354zw56i.fsf@netyu.xyz> (raw)
In-Reply-To: <6E9242F5-EC30-4BA5-A290-0AA6CCB7ECE7@gmail.com>
Yuan Fu <casouri@gmail.com> writes:
> 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
According to Eli
(https://lists.gnu.org/archive/html/emacs-devel/2023-03/msg00673.html),
no, it wouldn't work.
[ Also, for some reason I cannot find the message using the msgid,
83ilezegs1.fsf@gnu.org? ]
--
Best,
RY
next prev parent reply other threads:[~2023-04-17 3:31 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-04-17 3:12 Would (Eval-when-compile (require 'treesit)) eliminate the need for (declare-function)s? Yuan Fu
2023-04-17 3:31 ` Ruijie Yu via Emacs development discussions. [this message]
2023-04-17 13:29 ` Philip Kaludercic
2023-04-17 17:05 ` Eli Zaretskii
2023-04-17 17:25 ` Stefan Monnier
2023-04-17 17:39 ` Eli Zaretskii
2023-04-18 17:46 ` Yuan Fu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=sdv354zw56i.fsf@netyu.xyz \
--to=emacs-devel@gnu.org \
--cc=casouri@gmail.com \
--cc=ruijie@netyu.xyz \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).