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 "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#59435: 29.0.50; tree-sitter fails to fontify or indent simple function Date: Wed, 07 Dec 2022 19:01:55 +0800 Message-ID: <87359rmq8s.fsf@yahoo.com> References: <871qpw7s9k.fsf.ref@yahoo.com> <871qpw7s9k.fsf@yahoo.com> <3A4C0323-634D-437D-9510-50E59A254619@gmail.com> <87mt8k5xm3.fsf@yahoo.com> <83wn7o2z2v.fsf@gnu.org> <87bkog5jgh.fsf@oldenburg.str.redhat.com> <877cz4m3fk.fsf@yahoo.com> <87v8mnh4hn.fsf@oldenburg.str.redhat.com> 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="35128"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 59435@debbugs.gnu.org, Eli Zaretskii , casouri@gmail.com To: Florian Weimer Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Dec 07 12:03:16 2022 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 1p2sCq-0008yP-Aw for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 07 Dec 2022 12:03:16 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p2sCg-0002PO-Km; Wed, 07 Dec 2022 06:03:06 -0500 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 1p2sCd-0002Ot-6A for bug-gnu-emacs@gnu.org; Wed, 07 Dec 2022 06:03:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1p2sCc-0003Ol-7C for bug-gnu-emacs@gnu.org; Wed, 07 Dec 2022 06:03:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1p2sCc-0002de-29 for bug-gnu-emacs@gnu.org; Wed, 07 Dec 2022 06:03:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Po Lu Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 07 Dec 2022 11:03:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 59435 X-GNU-PR-Package: emacs Original-Received: via spool by 59435-submit@debbugs.gnu.org id=B59435.167041093610094 (code B ref 59435); Wed, 07 Dec 2022 11:03:02 +0000 Original-Received: (at 59435) by debbugs.gnu.org; 7 Dec 2022 11:02:16 +0000 Original-Received: from localhost ([127.0.0.1]:49599 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p2sBr-0002ck-Uv for submit@debbugs.gnu.org; Wed, 07 Dec 2022 06:02:16 -0500 Original-Received: from sonic312-23.consmr.mail.ne1.yahoo.com ([66.163.191.204]:33231) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p2sBq-0002cc-3t for 59435@debbugs.gnu.org; Wed, 07 Dec 2022 06:02:15 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1670410927; bh=153UMR4USsw8EmQPVX6RWPI8Nv4e+Qf+oPZ8NVVQN4s=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From:Subject:Reply-To;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Z3B278hpgI8vfMfylR4lL0rThR_NRn9gxFamO21GAskjEt_qNq00NAQ5XMsN9ezXSa DDapLLEHFyrUt1lNAi4N43KIR.4qvu_BOWoqBWHpYp9a9ds76hySv4nNyD_XXtKleFRr9t17Ag25 dGn3QzkhcL85k6iVveUY6oJJlBkhTBKpM0d6PZLjC74JyicBQL4MbIddRDvZdsVpZTdY7BQU29iE moPZLiVkvwgPha3aXqSGtCU7sM4alCI7LBNstFnJBHPM0bIEapdv4oZxheJVp_MCp4vRZ8ITq2BP BcAyMFigvDYvQNOxP2BwAnZtZvO8JNkFkvUj.3ztcsx3e8aNCfNsv7jAbGdQdTTCXVGbJh43kRLr EM60liP05jcf7qtFzLQzX5uDmWGoE5cub9XAXd4tFsSZVjOx3XYkoBeDMRDCT7X5i0kZVggDew_I ZOSSl0XtsHxYL9Z6_eA2gnjpBCgOf7CTmNkQbAXr5a5Lbm5WoHl7Cwe0Y4_WQvX0V6hy_mKXSxyv 6dm3onFqrbrFkCSySFwH1jQGhASTWJX7IDFkYvZdWYMw8TxzTC4.duSuo79yRarpCCXl1dFLySu4 eYeMV17egEV91kBtHQPF2W19qviDkSMx.5Og9INBXB X-Sonic-MF: Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic312.consmr.mail.ne1.yahoo.com with HTTP; Wed, 7 Dec 2022 11:02:07 +0000 Original-Received: by hermes--production-sg3-b666c6484-nr67k (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 722ac8cbe175d51f3a0a83fbc14892ed; Wed, 07 Dec 2022 11:02:04 +0000 (UTC) In-Reply-To: <87v8mnh4hn.fsf@oldenburg.str.redhat.com> (Florian Weimer's message of "Wed, 07 Dec 2022 11:50:44 +0100") X-Mailer: WebService/1.1.20926 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo 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:250179 Archived-At: Florian Weimer writes: > It's odd to ask for a C99 mode explicitly and depend on a feature that > was removed from C99. If you write C89 code, you should probably use > -std=gnu89. Well, it may not have been in C99, but it was in "GNU99". The code I have in mind (not the one that started this bug report) is written that way, and with -Wno-implicit-int... > On the other hand, the largest benefit will come from change the > default. From that perspective, it won't be necessary to change the > -std=gnu99 behavior. Thanks for clarifying. > Right, it's an argument list mismatch. Thanks. > I'm not the C frontend maintainer. It seems unlikely that this is going > to be supported because it's one of the major C23 changes. > > Before -std=gnu23 becomes the default, GCC will probably start warning > about calling ()-declared functions with extra arguments, to help with > porting to a future -std=gnu32-by-default change. -Wstrict-prototypes > is not a good proxy for this because it will warn about ()-style > declarations even in contexts where C23 will align with what the > programmer intended (no arguments accepted). Thanks for explaining.