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 and major mode inheritance Date: Sat, 19 Nov 2022 19:52:49 +0200 Message-ID: <831qpy96ha.fsf@gnu.org> References: <0249C656-21C8-49F2-B979-A1894BF80637@gmail.com> <1B76E73A-0DCD-456E-9F28-0E90723DA66D@gmail.com> <83sfif8cl2.fsf@gnu.org> <386C85F3-C183-4C00-B19B-8D4E1B254E89@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="35962"; mail-complaints-to="usenet@ciao.gmane.io" Cc: monnier@iro.umontreal.ca, emacs-devel@gnu.org, theo@thornhill.no To: Yuan Fu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Nov 19 18:53:31 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 1owS1z-0009Bo-4U for ged-emacs-devel@m.gmane-mx.org; Sat, 19 Nov 2022 18:53:31 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1owS1G-00032z-5f; Sat, 19 Nov 2022 12:52:46 -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 1owS1E-000328-9h for emacs-devel@gnu.org; Sat, 19 Nov 2022 12:52:44 -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 1owS1C-0004n3-PT; Sat, 19 Nov 2022 12:52:42 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=MpYOZ5LeECHzNxvKCBAQ/g/OkN99Xx8o5wRTi6HkQ9w=; b=Je4GN+itU7rceY9v5l4n 3jqmvHzRw9lBkWqb4nbk0FcfZ9T0LZZ9NhK7mjydbEjRd6ctD6ln2EV6dLevBT/2LSVJHB8hvQslO 24V9miHJOiOfSYdC5MHNOVeOqwHNWCy+o/O/byAcHkTdwR3A81tE+zKJJx1y2piEImSDK31umpjnu uI3chueFB3auOmj5sULM9EhTeNF/F3MsYhhkPFBeGVHdMKsVSYx0AN9GS8P/ZYZGJl+GXBxxHhGnv xxHKB1oKfOvFs8uyVaWw2uLgT016A45Vd9N17iXM48rvNTH2AgtuuLqf1o2uCvMbt8IrwH+BEfpPd HbF+kT650tl8qg==; 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 1owS1C-0000A5-8k; Sat, 19 Nov 2022 12:52:42 -0500 In-Reply-To: <386C85F3-C183-4C00-B19B-8D4E1B254E89@gmail.com> (message from Yuan Fu on Sat, 19 Nov 2022 09:17:11 -0800) 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:300193 Archived-At: > From: Yuan Fu > Date: Sat, 19 Nov 2022 09:17:11 -0800 > Cc: Eli Zaretskii , > emacs-devel@gnu.org, > theo@thornhill.no > > If we are already renaming existing modes (cc--mode), why don’t we use the generic name -mode for the virtual parent mode? It would be nicer if the generic mode (-mode) is an actual mode, with mode hooks, keycaps, etc, rather than simply a dispatch function. I already said that I prefer not to rename existing modes. Such renaming will break too many init files and other Lisp programs.