From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Theodor Thornhill Newsgroups: gmane.emacs.devel Subject: Re: Tree sitter support for C-like languages Date: Thu, 10 Nov 2022 19:19:12 +0100 Message-ID: <87A19BFE-D51F-4AA4-8957-1FE0BC8175F6@thornhill.no> References: <87tu36em9t.fsf@thornhill.no> 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="27626"; mail-complaints-to="usenet@ciao.gmane.io" Cc: casouri@gmail.com To: Stefan Monnier , "Theodor Thornhill via Emacs development discussions." Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Nov 10 19:19:57 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 1otC9c-0006wQ-Nw for ged-emacs-devel@m.gmane-mx.org; Thu, 10 Nov 2022 19:19:57 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1otC9K-0006Gu-Ph; Thu, 10 Nov 2022 13:19:38 -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 1otC9I-0006GT-Ph for emacs-devel@gnu.org; Thu, 10 Nov 2022 13:19:36 -0500 Original-Received: from out2.migadu.com ([2001:41d0:2:aacc::]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1otC9G-0002F0-Lf for emacs-devel@gnu.org; Thu, 10 Nov 2022 13:19:36 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=thornhill.no; s=key1; t=1668104372; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=fxPGztD2v1edDwoZZJzwhHbhUrPo3Uj+i8ubl3DTGzQ=; b=nrhelwd/FV1V2HOI/D242alF4Z64nzneEixSHiS5MGnmKjRP9rJ+n8uPw7066d+KgZCdsK bFy2tk4FAOsnyvJxZkxaRUFoF49/0pV5E8svt1HD/PieqkhYIgCOZKeurpsStsro2G8awb YPMWQXmKuFD+DZvh/Dt4MKtfq5EXHOVTdgqzdu+9dAJ9eNs3gogXfoIRdoYuj+pJwoXpyI NhVk1MTdNimpUdsxzEmR4s7HHPH1wb3UqNd/lOWFlAmk/M4MqP+ccfgf02U3CNLIAifB42 pMSBnnQSo552Y6BMjdCiEHr72ZFmdPr39UY54B/eaF4SfwQacEBJS6+Tj0KxKA== X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. In-Reply-To: X-Migadu-Flow: FLOW_OUT Received-SPF: pass client-ip=2001:41d0:2:aacc::; envelope-from=theo@thornhill.no; helo=out2.migadu.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 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:299512 Archived-At: On 10 November 2022 19:03:52 CET, Stefan Monnier wrote: >> See the attached patch for support for several C-like languages=2E >> >> They all support: >> - Font locking >> - Indentation (with styles for c/c++) >> - Movement >> - Imenu >> - Which-func >> >> These modes are meant as a supplement to tree-sitter=2E > >Thanks=2E > >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) > > > Stefan > No not yet, i believe Eli thinks that's a little premature - If we want th= at I can make such an attempt=2E I'll let the grown-ups decide :)