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: Fri, 11 Nov 2022 16:09:12 +0100 Message-ID: References: <87tu36em9t.fsf@thornhill.no> <7EDA89E3-2077-4C89-AB9B-002A2BB71E86@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="39540"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Randy Taylor , emacs-devel@gnu.org, casouri@gmail.com To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Nov 11 16:10:51 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 1otVgB-000A63-Ia for ged-emacs-devel@m.gmane-mx.org; Fri, 11 Nov 2022 16:10:51 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1otVfQ-00025n-6t; Fri, 11 Nov 2022 10:10:04 -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 1otVfO-00025P-UG for emacs-devel@gnu.org; Fri, 11 Nov 2022 10:10:03 -0500 Original-Received: from out0.migadu.com ([94.23.1.103]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1otVfL-00046K-HE for emacs-devel@gnu.org; Fri, 11 Nov 2022 10:10:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=thornhill.no; s=key1; t=1668179396; 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=3UyrqhMs+Po3C4pLGUJI5kAGqOZyDv9mCX9LvyXPcVU=; b=m4owEmiop98Q05lTbO0TxC/45wzz/7NvEXSCx9fo+IUMc3o6csyrUCIoe5dyMfz5A+hNJB 2hPspPWmWTaDQ39mAz2j8Wq2/7Cs1dcnrcy1e9lPDzI7YLQPdOKTGxfpYeRv8b+gy0uFQC wCxsXCc+LRxo/5fnwWKPSQQ1nXCNm9g3Em2Gp5bz5LikQnhJ+rgZlqHbQeYOT97TgbNm9d RG0QYdUVOz8XzXhJ7k6qtQLlh7bbe/dLhu45jCL6vr66y0Cml5QpvZfGLKQA5PKVKGmDBo daWt4EM6QBxnm/on56IGlom9sWqMerqFU3BUXaU9VaV+sscjsbVANLoEGRdVXg== 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=94.23.1.103; envelope-from=theo@thornhill.no; helo=out0.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:299572 Archived-At: On 11 November 2022 14:37:02 CET, Stefan Monnier wrote: >> Yeah, I'm interested in reducing duplication, but not for that reason >> only=2E But I'm thinking of ways to make one inherit the other=2E > >I like inheritance between modes, but I recommend that you never inherit >from a "normal mode": modes should be either designed for inheritance >(`prog-mode`, `text-mode`, `special-mode`, `tex-mode`, =2E=2E=2E) or be >actually used in buffers, but preferably not both=2E > >So better create a "c-like" parent mode from which both `c-ts-mode` and >`c++-ts-mode` inherit than have one inherit from the other=2E > > > Stefan > Sounds like a plan! Theo