all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Would (Eval-when-compile (require 'treesit)) eliminate the need for (declare-function)s?
@ 2023-04-17  3:12 Yuan Fu
  2023-04-17  3:31 ` Ruijie Yu via Emacs development discussions.
  2023-04-17 17:05 ` Eli Zaretskii
  0 siblings, 2 replies; 7+ messages in thread
From: Yuan Fu @ 2023-04-17  3:12 UTC (permalink / raw)
  To: emacs-devel

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


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2023-04-18 17:46 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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.
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

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.