From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.devel Subject: Re: Make all tree-sitter modes optional Date: Thu, 16 Feb 2023 13:58:25 +0200 Message-ID: References: <83o7rexe2n.fsf@gnu.org> <83h6x5xym7.fsf@gnu.org> <83h6wr6gmz.fsf@gnu.org> <868ri140sr.fsf@mail.linkov.net> <83fsc92gbz.fsf@gnu.org> <83cz6ccagy.fsf@gnu.org> <838rgzaqmj.fsf@gnu.org> <7bad77ae-a176-d49b-5115-dbadf7e6d1bc@yandex.ru> <3112fa15-8d1c-679a-f319-cf659b097be4@yandex.ru> <831qmq9jjr.fsf@gnu.org> <83bklu80vg.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32618"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 Cc: monnier@iro.umontreal.ca, acm@muc.de, juri@linkov.net, casouri@gmail.com, larsi@gnus.org, jostein@secure.kjonigsen.net, emacs-devel@gnu.org To: Eli Zaretskii , Theodor Thornhill Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Feb 16 12:59:07 2023 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 1pScuo-0008MG-Ri for ged-emacs-devel@m.gmane-mx.org; Thu, 16 Feb 2023 12:59:06 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pScuJ-0007pI-4M; Thu, 16 Feb 2023 06:58:35 -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 1pScuF-0007oH-UE for emacs-devel@gnu.org; Thu, 16 Feb 2023 06:58:33 -0500 Original-Received: from mail-ed1-x52f.google.com ([2a00:1450:4864:20::52f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pScuD-0007Zp-Si; Thu, 16 Feb 2023 06:58:31 -0500 Original-Received: by mail-ed1-x52f.google.com with SMTP id w3so2459647edc.2; Thu, 16 Feb 2023 03:58:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :sender:from:to:cc:subject:date:message-id:reply-to; bh=ZTottJrV7w6Ake8IcE16HA652VQwa1lvT1EBDUBYTRw=; b=QhZ2ZvZCbjS+pBywAj6E31w9300r7kF2FacyjJLvEzmZpqrr6R2tV083M56gIzWQXt h7hcpLfKayEApS7Wsuflu4Ob0v6fs7uySIk3xNSRZYcfl8/ODdLuYHij7KeWs2qYiLaD VMxJjxoWeB9bOJP+3G4qdFumHwVpp718cq65kLnhtSpPYveoV2Mvp6H+R+9Zp8fgmUGq 7EB/BM86l6XOqYcAkzuvokMs6Cl+JkJqiKWbDn8g6ek3J1BtNiubqc36zfXgspDXeHC8 eiWu25McOxd77NYJih3aYVl9PoL2ULSb0dr+RMBNIuZ8ABvRdrzGvOx4bw1NJYbX8k2i E+5Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :sender:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=ZTottJrV7w6Ake8IcE16HA652VQwa1lvT1EBDUBYTRw=; b=scKhE71Cj74Pwmjq490NluqclILQYo49cohfSPatw0Qum6Sw+M/xRq4BRn/ruWgXwe iVGZymIR73XibxaWjmzKlAel6CexZkOwheQkQbwNUocDeTXqX78Vvx7ShFg+sutJ/kNr vZB/hyH3J/L0n4Vb6Vkm+CqS/SQytV/J0u93wjsC+Ctn1hR313rwyXqWFvzdB9iHSumG tMeYBcvEV/xA4OJ/b9mJ/B1gzbpjCRVMvl6oBL1+JcfW8qBD7no+ww0xb6fk8wySx8xC AKAQS/dfImzPbAstPn772JqevyFC2MrIIxSjtx4RJUUj4mp2DpCy9OA/qYeHt55e+D8K VNaA== X-Gm-Message-State: AO0yUKWr5kpt3y1P8N9jG2UZUk0lBhTm4eWljObU/q66t/fijefP6c4s PmTpkzT+LjiqUFHEz+YNfNpaFT0Hwms= X-Google-Smtp-Source: AK7set82G4ryKxmbs+3RCjCoB9aeNEL9+y/As7DbEB2O8hl6JuN3c01LE6X/YZlpT3NOTF2PjEkKVQ== X-Received: by 2002:aa7:c04d:0:b0:4ab:d1f4:4b88 with SMTP id k13-20020aa7c04d000000b004abd1f44b88mr4730283edo.41.1676548707849; Thu, 16 Feb 2023 03:58:27 -0800 (PST) Original-Received: from [192.168.0.2] ([46.251.119.176]) by smtp.googlemail.com with ESMTPSA id d27-20020a50cd5b000000b004acb4b3b78bsm754346edj.88.2023.02.16.03.58.26 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 16 Feb 2023 03:58:27 -0800 (PST) Content-Language: en-US In-Reply-To: <83bklu80vg.fsf@gnu.org> Received-SPF: pass client-ip=2a00:1450:4864:20::52f; envelope-from=raaahh@gmail.com; helo=mail-ed1-x52f.google.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.249, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.25, NICE_REPLY_A=-0.257, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no 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:303404 Archived-At: On 16/02/2023 10:34, Eli Zaretskii wrote: > I don't know yet. We should definitely think about this more. Emacs > never had more than a single major mode per programming language, so > for us "language" and "major mode" were always synonyms. (Perl mode > and CPerl mode is the only exception I know of, and it did cause us > grief.) > > So yes, this is a new situation that could call for some new concepts > in Emacs. The relevant helps could make use of major-mode-remap-alist somehow. According to NEWS, it was introduced more or less for this purpose.