From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Po Lu via "Emacs development discussions." Newsgroups: gmane.emacs.devel Subject: Re: emacs-30 3fcec09f754 2/4: Add debugging function for treesit.c Date: Mon, 09 Sep 2024 11:58:55 +0800 Message-ID: References: <172585397252.25544.14799687468267584593@vcs2.savannah.gnu.org> <20240909035253.23A45C41F2E@vcs2.savannah.gnu.org> Reply-To: Po Lu Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="40586"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Yuan Fu To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Sep 09 05:59:51 2024 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 1snVZ8-000AUI-I9 for ged-emacs-devel@m.gmane-mx.org; Mon, 09 Sep 2024 05:59:50 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1snVYW-0003s1-QU; Sun, 08 Sep 2024 23:59:12 -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 1snVYU-0003rp-S9 for emacs-devel@gnu.org; Sun, 08 Sep 2024 23:59:10 -0400 Original-Received: from sonic315-22.consmr.mail.ne1.yahoo.com ([66.163.190.148]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1snVYS-0003mU-QS for emacs-devel@gnu.org; Sun, 08 Sep 2024 23:59:10 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1725854344; bh=Wn8e2faR7oJQitE5GZmKTfcgEkJJRn04SobIjtSk1a0=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From:Subject:Reply-To; b=BaCFFdo2OGQpoCMkbxhSIrBDYelevmDUuz4QkdZwjWe10kIICQ735oQTI40c7jaJwuMvltz3x5VBj7AiS+OTiOpaaAx3GtGCVC/7qa1q89rzOFWy07eEid14uQSxFX1KcGKkzoqtlZ/Wo7mKxUcvpmT58+Mfb6z92WsyQKZujWTs5lZkGa2DW9FtKFPstMc0IV3KORxJ3LZPAZTUWXzjU4qIngAztCn9yZwPDfZf+12Xd4grOROYIExLNJpwz3ChVdrUoUkN82ZJBuTT7UJdarbSCHpgalIcdiN3stEgUTNLqzU41MTDPNziF22WtRl+fA2mDivetkoKb3uqZXGgXg== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1725854344; bh=LSKl+++8PcnxSRyFFyGh2mpMx3D/1HHQWgmUFk8ZD2A=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=RNElBLODhay0+jEOQB/1Ciy3XdmpGu7YNtvvlePCtcqiZ1YKRfqOFcstH723ccZo1NYs6NTp1zDtl6VywO5uAvX9fAIiaS6h2vZJuK3h1ggLyfSKJgJ2nLeRjvvG9VG8I8QyHsZ/SKgLI9QE4b9ukw7K1DiT2IDQ6J0HV9Cmwe67ONYvJGwoiuTm9IMhWUtEo4Es7Ba+eQ92HBzPkSFOkG/+1YeWH4HguiWqTzUN6UmSXNBa4IT+GNgZJesSfvw9L2x9lUt6s9XTfZp2jz5jB9580RGMgte3z/OfyxQFHBlV+iPfhfHSbkfEIQoVRGZsKyuEwBMrQqV35Pyfmcdd8Q== X-YMail-OSG: BiMbYj4VM1nEqHpk1ac1MHWlxu9LSrV5vcXN2yBMIzKoO4Xc5HoIHgSPgBPzewM .dfb6XtCKsK3NGIiIC26v5sDz1RXgxtr3B_KrL394WJoesCHnkP50QaxJkLp6dOXwMl.1E1sJOZV OBgSaV0gV8BYbskpsNcG.fz6KDdvZG7YeUHbjr9405ZIeutRfkqt9PxwkA.c.4koLVpMuz1RPQZS CgGFIvTVGE9dTa5fe1vuIqcARFvC1.NSq2Q_7fTRIceZJ7WqvHL18HCTu8X35eHVoZdPf4RSyIyn r4EE_fXuirZu5Xz5A.VwaJbTiJBMnlf0.Ho8QITbyiquS01_S1kPxjpDtLWRnMGO_hXQ4FcDYSQr gVNrfBm.GLemQ2fcc9M2Y4CPRl0LT_EfOsWgVPUOzRUwqEAqIdw1OGXnKYgbABnWiG5.tWWCmFlw yoPbudAwjAKHK3ZG2jvKHQj86sqr_RGJ1a1pl.2cpEtmylV7WgzS8nltVzk6YuKs26WzMUn0IUKN 1VCiqvknFxAZUMeIOB4gq5EUvaRXH4Ek7cIxugoUeOjmM0ehWE1wCnvM03aJ3LXdiiqRi2uGcXfR .fH.2bUSWDKfr6LGrVdyQzB8YhjWMO0u2XcQoMRovqPCkcNGUEilXPkRNk4_0Ntw6bEXRPATMhwY TYGbkXaW6eeyyBDwEyM1MmB7tOOPCn7O7.ZMMYQkTV_u.JDYbYVcoP0kdl2QZq7Mx7qnpMgeLBjM 2Psh1MllNloNpKFdsredw_3.Eo4xZSvMSAu3xvRltP2tOFgdkGAI_V0XiIbZENRKcFmxW347Xzv0 g0_W8dhIOBvs4jJuSBCIZ05WrpCIc9YGWOClnZeVSL X-Sonic-MF: X-Sonic-ID: 3635a30e-35ed-4152-af17-07af00334dca Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic315.consmr.mail.ne1.yahoo.com with HTTP; Mon, 9 Sep 2024 03:59:04 +0000 Original-Received: by hermes--production-sg3-fc85cddf6-5gxlp (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID d4e3a033603fad263853889b677a8d22; Mon, 09 Sep 2024 03:58:58 +0000 (UTC) In-Reply-To: <20240909035253.23A45C41F2E@vcs2.savannah.gnu.org> (Yuan Fu's message of "Sun, 8 Sep 2024 23:52:53 -0400 (EDT)") X-Mailer: WebService/1.1.22645 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo Received-SPF: pass client-ip=66.163.190.148; envelope-from=luangruo@yahoo.com; helo=sonic315-22.consmr.mail.ne1.yahoo.com X-Spam_score_int: -7 X-Spam_score: -0.8 X-Spam_bar: / X-Spam_report: (-0.8 / 5.0 requ) BAYES_00=-1.9, DKIM_ADSP_CUSTOM_MED=0.001, DKIM_INVALID=0.1, DKIM_SIGNED=0.1, FREEMAIL_FROM=0.001, NML_ADSP_CUSTOM_MED=0.9, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no 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:323508 Archived-At: Yuan Fu writes: > branch: emacs-30 > commit 3fcec09f754af9822339eff3ea15d43eb7d19014 > Author: Yuan Fu > Commit: Yuan Fu > > Add debugging function for treesit.c > > * src/treesit.c (treesit_debug_print_parser_list): New function. > --- > src/treesit.c | 47 +++++++++++++++++++++++++++++++++++++++++++++++ > 1 file changed, 47 insertions(+) > > diff --git a/src/treesit.c b/src/treesit.c > index 6e806039df0..351bd65819a 100644 > --- a/src/treesit.c > +++ b/src/treesit.c > @@ -485,6 +485,53 @@ treesit_initialize (void) > } > > > +/*** Debugging */ > + > +void treesit_debug_print_parser_list (char *msg, Lisp_Object parser) Please insert a newline between the return type and identifier name. Is this appropriate for Emacs 30?