From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ruijie Yu via "Emacs development discussions." Newsgroups: gmane.emacs.devel Subject: Re: Would (Eval-when-compile (require 'treesit)) eliminate the need for (declare-function)s? Date: Mon, 17 Apr 2023 11:31:25 +0800 Message-ID: References: <6E9242F5-EC30-4BA5-A290-0AA6CCB7ECE7@gmail.com> Reply-To: Ruijie Yu Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="18843"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.9.22; emacs 30.0.50 Cc: emacs-devel@gnu.org To: Yuan Fu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Apr 17 05:37:49 2023 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1poFgb-0004iz-6r for ged-emacs-devel@m.gmane-mx.org; Mon, 17 Apr 2023 05:37:49 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1poFfx-0001rU-Jn; Sun, 16 Apr 2023 23:37:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1poFfw-0001rM-Aj for emacs-devel@gnu.org; Sun, 16 Apr 2023 23:37:08 -0400 Original-Received: from netyu.xyz ([152.44.41.246] helo=mail.netyu.xyz) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1poFfh-0004vI-6s for emacs-devel@gnu.org; Sun, 16 Apr 2023 23:37:08 -0400 Original-Received: from fw.net.yu.netyu.xyz ( [222.248.4.98]) by netyu.xyz (OpenSMTPD) with ESMTPSA id f2139f2a (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Mon, 17 Apr 2023 03:36:50 +0000 (UTC) In-reply-to: <6E9242F5-EC30-4BA5-A290-0AA6CCB7ECE7@gmail.com> Received-SPF: pass client-ip=152.44.41.246; envelope-from=ruijie@netyu.xyz; helo=mail.netyu.xyz X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, T_SPF_HELO_TEMPERROR=0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:305357 Archived-At: Yuan Fu writes: > I=E2=80=99ve made the mistake of forgetting to add (declare-function tree= sit-xxx) when > using functions from treesit.c far too many times (sorry!). Since treesit= .el > contains declare-function=E2=80=99s for every function in treesit.c, if w= e use > (eval-when-compile (require =E2=80=99treesit)), would it eliminate the ne= ed for adding > declare-function=E2=80=99s? 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? ] --=20 Best, RY