From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Yuan Fu Newsgroups: gmane.emacs.bugs Subject: bug#64442: 29.0.92; treesit-beginning-of-defun fails in DEFUN functions in C Date: Thu, 10 Aug 2023 14:33:09 -0700 Message-ID: <2134730B-05A4-4032-84B6-42FD3CDC48AE@gmail.com> References: <83a5wcncj8.fsf@gnu.org> <83pm57lxbo.fsf@gnu.org> <835y6wgr77.fsf@gnu.org> <93E5B9EA-D349-4316-B314-D6994329C261@gmail.com> <83r0oplvro.fsf@gnu.org> <83y1iji7b7.fsf@gnu.org> Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.600.7\)) Content-Type: multipart/mixed; boundary="Apple-Mail=_FB14F0E2-802C-48A7-9687-BFF139A999CF" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="38705"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 64442@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Aug 10 23:34:26 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1qUDIX-0009tK-9o for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 10 Aug 2023 23:34:25 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qUDID-0005mN-2H; Thu, 10 Aug 2023 17:34:05 -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 1qUDIB-0005kS-48 for bug-gnu-emacs@gnu.org; Thu, 10 Aug 2023 17:34:03 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qUDIA-0000gp-K1 for bug-gnu-emacs@gnu.org; Thu, 10 Aug 2023 17:34:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qUDIA-0001rZ-9I for bug-gnu-emacs@gnu.org; Thu, 10 Aug 2023 17:34:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Yuan Fu Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 10 Aug 2023 21:34:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 64442 X-GNU-PR-Package: emacs Original-Received: via spool by 64442-submit@debbugs.gnu.org id=B64442.16917032137125 (code B ref 64442); Thu, 10 Aug 2023 21:34:02 +0000 Original-Received: (at 64442) by debbugs.gnu.org; 10 Aug 2023 21:33:33 +0000 Original-Received: from localhost ([127.0.0.1]:44191 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qUDHg-0001qq-AK for submit@debbugs.gnu.org; Thu, 10 Aug 2023 17:33:32 -0400 Original-Received: from mail-pl1-x62d.google.com ([2607:f8b0:4864:20::62d]:61728) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qUDHb-0001qZ-SW for 64442@debbugs.gnu.org; Thu, 10 Aug 2023 17:33:30 -0400 Original-Received: by mail-pl1-x62d.google.com with SMTP id d9443c01a7336-1bbbbb77b38so10388015ad.3 for <64442@debbugs.gnu.org>; Thu, 10 Aug 2023 14:33:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1691703202; x=1692308002; h=references:to:cc:in-reply-to:date:subject:mime-version:message-id :from:from:to:cc:subject:date:message-id:reply-to; bh=ZxH5n7okGPrd3p6wp4PdLsRG5A6Z0wss5nmXmOkYCWU=; b=nQ90x01BgE/dDldFD5qyZMKZnJaXKRcfb/2JiUqelw22liAKuhhAH1F1xRX71V2q+l s+DlKbZb1riamFHj2AjCtBBKIcCkpskKgeiv43kk5UfY81Hmd/+CbXxyvpYg5nB80iOp GaOO7R+svLtVaZjGcKwPWq8l/j9KNpQoZ23/9b21mDfoKkbzW1JmFWGi28u2I4OLRg3o xLS0FbX6ESGR9GBQ9laDVpZvHy56TxnSF1ayKm6TVNnc4He6cNTUJqgP34z3aHY5Yqx4 aoHYpqdOkGtR40w2d9I8SZEsowNFD7JLycMi6BJw+NlgDEZ9dWjbl/ZNPrTkkoGV9jB0 un4w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691703202; x=1692308002; h=references:to:cc:in-reply-to:date:subject:mime-version:message-id :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=ZxH5n7okGPrd3p6wp4PdLsRG5A6Z0wss5nmXmOkYCWU=; b=FXy2FJOH2GaxPowQtHwybcIP+TLKcedfbeXthxWc5KAuZOyx2hBndqTWZZwhsncE3V VtPhqpaGAKXEuZ3jfgmX0I8ZTI6SzFL5FCvjTbdTy4eb9mwKFBVoKMbC5ixJxvfnT6u9 4KbG6+LooR+pAMMl9Tm4Qn3YTWZftFoLjuIEvAHZukwUFi8ZXPTRGYCxx9q6YkstCqIu oZVC+JNY4kDKriKwgeWsrgj9oBUjFSHbt1zaNWyrhIRiZbECatWFDZJbyOQc4UCD7OHf mNBXBarkC5/Kinv5VuOraiHa6pMGtB/jC5Vja+P+Wi4RuywSEAl8j2p8aVzpnc2hm0ee uf5w== X-Gm-Message-State: AOJu0YxHK4TXpyJ26r2Q9R6rRjSkk6zov456HGb8KgATWbXNmST+AnMa 8aVTM9Iwh1nQc5Ci1Q3xTzI= X-Google-Smtp-Source: AGHT+IGAOKTrL13/k1/KCPDmgegV3A9P6fQWnEN/1vlAgaqCCyypQ8hdHhgkj7L/5JKxRYgkCPF4qA== X-Received: by 2002:a17:903:41c5:b0:1b5:64a4:bea0 with SMTP id u5-20020a17090341c500b001b564a4bea0mr29340ple.10.1691703202020; Thu, 10 Aug 2023 14:33:22 -0700 (PDT) Original-Received: from smtpclient.apple (cpe-172-117-161-177.socal.res.rr.com. [172.117.161.177]) by smtp.gmail.com with ESMTPSA id q3-20020a170902788300b001bbd8cf6b57sm2243673pll.230.2023.08.10.14.33.21 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 10 Aug 2023 14:33:21 -0700 (PDT) In-Reply-To: <83y1iji7b7.fsf@gnu.org> X-Mailer: Apple Mail (2.3731.600.7) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:267161 Archived-At: --Apple-Mail=_FB14F0E2-802C-48A7-9687-BFF139A999CF Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > On Aug 10, 2023, at 2:18 AM, Eli Zaretskii wrote: >=20 >> Cc: 64442@debbugs.gnu.org >> Date: Sun, 30 Jul 2023 10:10:35 +0300 >> From: Eli Zaretskii >>=20 >>> From: Yuan Fu >>> Date: Tue, 11 Jul 2023 19:10:01 -0700 >>> Cc: 64442@debbugs.gnu.org >>>=20 >>>=20 >>>=20 >>>> On Jul 6, 2023, at 11:40 PM, Eli Zaretskii wrote: >>>>=20 >>>>> From: Yuan Fu >>>>> Date: Thu, 6 Jul 2023 23:15:00 -0700 >>>>> Cc: 64442@debbugs.gnu.org >>>>>=20 >>>>>> On Jul 4, 2023, at 4:39 AM, Eli Zaretskii wrote: >>>>>>=20 >>>>>> Why cannot we look for a top-level expression_statement node = which is >>>>>> a call_expression whose function identifier is "DEFUN" and whose >>>>>> position is between the place where C-M-a was invoked and the = place >>>>>> where it does find a defun? >>>>>=20 >>>>> It=E2=80=99s gonna be ugly, but I can take a jab at it this = weekend. I=E2=80=99m thinking of a wrapper function that tries to detect = DEFUN before falling back to the ordinary tree-sitter defun movement = function. >>>>=20 >>>> Thanks. let's see how ugly it is before deciding whether it's = worth it. >>>>=20 >>>>>> DEFUN's cannot be nested, so we don't need to consider that. >>>>>=20 >>>>> Yeah, in general C sources don=E2=80=99t have nested defuns, only = C++ ones do. >>>>=20 >>>> No, I meant the use of DEFUN macros in Emacs cannot be nested. >>>=20 >>> Just an update. I didn=E2=80=99t forget about this, but it=E2=80=99s = more harder than I thought and I=E2=80=99m still working on it :-( >>=20 >> Any progress with this? It would be good to have a solution in Emacs >> 29.2, if possible. >=20 > Ping! I still don=E2=80=99t have a good solution. But I just realized that we = might be able to make a little compromise: what if Emacs recognizes = DEFUN, but as two separate parts (the declaration and the body), rather = than one? It=E2=80=99s hard to make it recognize DEFUN as a single = defun, but making it recognize DEFUN as two parts is easy. Try this patch and see if you like the behavior. Personally I find it = quite alright. Yuan --Apple-Mail=_FB14F0E2-802C-48A7-9687-BFF139A999CF Content-Disposition: attachment; filename=defun-nav.patch Content-Type: application/octet-stream; x-unix-mode=0644; name="defun-nav.patch" Content-Transfer-Encoding: quoted-printable =46rom=20b0e361b430650e95449c59b8643be58d598cde58=20Mon=20Sep=2017=20= 00:00:00=202001=0AFrom:=20Yuan=20Fu=20=0ADate:=20Thu,=20= 10=20Aug=202023=2014:27:29=20-0700=0ASubject:=20[PATCH]=20Support=20= defun=20navigation=20for=20DEFUN=20in=20c-ts-mode=20(bug#64442)=0A=0A= Before=20this=20change,=20beginning/end-of-defun=20just=20ignores=20= DEFUN=20in=0Ac-ts-mode.=20After=20this=20change,=20= beginning/end-of-defun=20can=20recognize=0ADEFUN,=20but=20a=20DEFUN=20= definition=20is=20considered=20two=20defuns.=20Eg,=0A= beginning/end-of-defun=20will=20stop=20at=20(1)=20(2)=20and=20(3)=20in=20= the=20following=0Asnippet:=0A=0A(1)DEFUN=20("treesit-node-parser",=0A=20=20= =20=20=20=20=20Ftreesit_node_parser,=20Streesit_node_parser,=0A=20=20=20=20= =20=20=201,=201,=200,=0A=20=20=20=20=20=20=20doc:=20/*=20Return=20the=20= parser=20to=20which=20NODE=20belongs.=20=20*/)=0A=20=20(Lisp_Object=20= node)=0A(2){=0A=20=20CHECK_TS_NODE=20(node);=0A=20=20return=20XTS_NODE=20= (node)->parser;=0A}=0A(3)=0A=0AIdeally=20we=20want=20point=20to=20only=20= stop=20at=20(1)=20and=20(3),=20but=20that'll=20be=20a=0Alot=20harder=20= to=20do.=0A=0A*=20lisp/progmodes/c-ts-mode.el:=0A= (c-ts-mode--defun-valid-p):=20Refactor=20to=20take=20in=20account=20of=20= DEFUN=20body.=0A(c-ts-mode--emacs-defun-body-p):=20New=20function.=0A= (c-ts-base-mode):=20Add=20DEFUN=20and=20DEFUN=20body=20to=20recognized=20= types.=0A---=0A=20lisp/progmodes/c-ts-mode.el=20|=2064=20= +++++++++++++++++++++++--------------=0A=201=20file=20changed,=2040=20= insertions(+),=2024=20deletions(-)=0A=0Adiff=20--git=20= a/lisp/progmodes/c-ts-mode.el=20b/lisp/progmodes/c-ts-mode.el=0Aindex=20= 7f4f6f11387..0eb1f2a17a7=20100644=0A---=20a/lisp/progmodes/c-ts-mode.el=0A= +++=20b/lisp/progmodes/c-ts-mode.el=0A@@=20-882,29=20+882,36=20@@=20= c-ts-mode--defun-name=0A=20(defun=20c-ts-mode--defun-valid-p=20(node)=0A=20= =20=20"Return=20non-nil=20if=20NODE=20is=20a=20valid=20defun=20node.=0A=20= Ie,=20NODE=20is=20not=20nested."=0A-=20=20(or=20= (c-ts-mode--emacs-defun-p=20node)=0A-=20=20=20=20=20=20(not=20(or=20(and=20= (member=20(treesit-node-type=20node)=0A-=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20'("struct_specifier"=0A= -=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20"enum_specifier"=0A-=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20"union_specifier"=0A= -=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20"declaration"))=0A-=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20;;=20If=20NODE's=20type=20is=20one=20of=20the=20= above,=20make=20sure=20it=20is=0A-=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20;;=20top-level.=0A-=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20(treesit-node-top-level=0A-=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20node=20(rx=20(or=20= "function_definition"=0A-=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20"type_definition"=0A= -=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20"struct_specifier"=0A-=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20"enum_specifier"=0A-=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20"union_specifier"=0A= -=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20"declaration"))))=0A-=0A-=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20(and=20(equal=20(treesit-node-type=20node)=20= "declaration")=0A-=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20;;=20If=20NODE=20is=20a=20declaration,=20make=20sure=20it=20is=20not=20= a=0A-=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20;;=20= function=20declaration.=0A-=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20(equal=20(treesit-node-type=0A-=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= (treesit-node-child-by-field-name=0A-=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20node=20"declarator"))=0A= -=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20"function_declarator"))))))=0A+=20=20(let=20((top-level-p=20= (lambda=20(node)=0A+=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20(not=20(treesit-node-top-level=0A+=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20node=20= (rx=20(or=20"function_definition"=0A+=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20"type_definition"=0A+=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20"struct_specifier"=0A+=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20"enum_specifier"=0A+=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20"union_specifier"=0A+=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20"declaration")))))))=0A+=20=20=20=20(pcase=20(treesit-node-type=20= node)=0A+=20=20=20=20=20=20;;=20The=20declaration=20part=20of=20a=20= DEFUN.=0A+=20=20=20=20=20=20("expression_statement"=20= (c-ts-mode--emacs-defun-p=20node))=0A+=20=20=20=20=20=20;;=20The=20body=20= of=20a=20DEFUN.=0A+=20=20=20=20=20=20("compound_statement"=20= (c-ts-mode--emacs-defun-body-p=20node))=0A+=20=20=20=20=20=20;;=20If=20= NODE's=20type=20is=20one=20of=20these=20three,=20make=20sure=20it=20is=0A= +=20=20=20=20=20=20;;=20top-level.=0A+=20=20=20=20=20=20((or=20= "struct_specifier"=0A+=20=20=20=20=20=20=20=20=20=20=20"enum_specifier"=0A= +=20=20=20=20=20=20=20=20=20=20=20"union_specifier")=0A+=20=20=20=20=20=20= =20(funcall=20top-level-p=20node))=0A+=20=20=20=20=20=20;;=20If=20NODE=20= is=20a=20declaration,=20make=20sure=20it's=20not=20a=20function=0A+=20=20= =20=20=20=20;;=20declaration=20(we=20only=20want=20function_definition)=20= and=20is=20a=0A+=20=20=20=20=20=20;;=20top-level=20declaration.=0A+=20=20= =20=20=20=20("declaration"=0A+=20=20=20=20=20=20=20(and=20(not=20(equal=20= (treesit-node-type=0A+=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20(treesit-node-child-by-field-name=0A+=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20node=20= "declarator"))=0A+=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20"function_declarator"))=0A+=20=20=20=20=20=20=20=20=20=20=20= =20(funcall=20top-level-p=20node)))=0A+=20=20=20=20=20=20;;=20Other=20= types=20don't=20need=20further=20verification.=0A+=20=20=20=20=20=20(_=20= t))))=0A=20=0A=20(defun=20c-ts-mode--defun-for-class-in-imenu-p=20(node)=0A= =20=20=20"Check=20if=20NODE=20is=20a=20valid=20entry=20for=20the=20Class=20= subindex.=0A@@=20-957,6=20+964,11=20@@=20c-ts-mode--emacs-defun-p=0A=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20t)=0A=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20"DEFUN")))=0A=20=0A+(defun=20= c-ts-mode--emacs-defun-body-p=20(node)=0A+=20=20"Return=20non-nil=20if=20= NODE=20is=20the=20function=20body=20of=20a=20DEFUN."=0A+=20=20(and=20= (equal=20(treesit-node-type=20node)=20"compound_statement")=0A+=20=20=20=20= =20=20=20(c-ts-mode--emacs-defun-p=20(treesit-node-prev-sibling=20= node))))=0A+=0A=20(defun=20c-ts-mode--emacs-defun-at-point=20(&optional=20= range)=0A=20=20=20"Return=20the=20defun=20node=20at=20point.=0A=20=0A@@=20= -1119,7=20+1131,11=20@@=20c-ts-base-mode=0A=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= "enum_specifier"=0A=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20"union_specifier"=0A=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20"class_specifier"=0A-=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= "namespace_definition"))=0A+=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= "namespace_definition"=0A+=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20;;=20DEFUN.=0A+=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20"expression_statement"=0A+=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= ;;=20DEFUN=20body.=0A+=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= "compound_statement"))=0A=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20#'c-ts-mode--defun-valid-p))=0A=20=20=20(setq-local=20= treesit-defun-skipper=20#'c-ts-mode--defun-skipper)=0A=20=20=20= (setq-local=20treesit-defun-name-function=20#'c-ts-mode--defun-name)=0A= --=20=0A2.41.0=0A=0A= --Apple-Mail=_FB14F0E2-802C-48A7-9687-BFF139A999CF--