From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Tree sitter support for C-like languages Date: Thu, 10 Nov 2022 20:18:01 +0200 Message-ID: <837d02r7vq.fsf@gnu.org> References: <87tu36em9t.fsf@thornhill.no> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="23469"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org, theo@thornhill.no, casouri@gmail.com To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Nov 10 19:19:17 2022 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 1otC8z-0005qD-2S for ged-emacs-devel@m.gmane-mx.org; Thu, 10 Nov 2022 19:19:17 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1otC84-0005Pl-LB; Thu, 10 Nov 2022 13:18:20 -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 1otC7l-0005NU-GE for emacs-devel@gnu.org; Thu, 10 Nov 2022 13:18:01 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1otC7l-0001wd-6V; Thu, 10 Nov 2022 13:18:01 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=WwcyDK5znVq0jJ7L8xHXEboJDZ3YFJ37wjpvWazehes=; b=Y2m5cvvrPEAf QLxQKzXS+ZngVLsG6JzUSL2NlR7XnMHUPJCU8EngNFCXd+faNiXD2VPNoaUCWadqsGQfg+JfYLm+b B8Pp2djA+3UnhefwAhJgiINZKORz9mr0rX9cPZPYOU6kA2PuYEwelb7VOx0y9ziIxU/hMJkqBYykT 6ZCPsIFglOpDJfpiLxvmNDNjcqONMQkdYncHHhuV65DeRKztKsN4Y0pQdhvccTsfMieQGYuCdW3rN cV4asyExR35L2HWX5crJrzpY5Ph8nxTFKK2BKJeyxgSIWuwK28XRHTOGkAE70ueOBajKZlKWe1Z8g qeP9foUosJVDY1NDlkct+Q==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1otC7k-0004pl-Fk; Thu, 10 Nov 2022 13:18:00 -0500 In-Reply-To: (message from Stefan Monnier on Thu, 10 Nov 2022 13:03:52 -0500) 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:299510 Archived-At: > From: Stefan Monnier > Cc: Theodor Thornhill , casouri@gmail.com > Date: Thu, 10 Nov 2022 13:03:52 -0500 > > Have you tried to replace `c-mode` with a simple dispatch function that > either delegates to `c-ts-mode` or to `cc-c-mode`? > (and same for `c++-mode`, of course) I think we shouldn't rush with such changes. I think Emacs 29 should have the tree-sitter based modes as optional features that users should actively opt in. We should defer automation like the one you propose for later, once we have more user experience and feedback.