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: Tue, 17 Jan 2023 19:59:04 +0200 Message-ID: References: <84973.1672843723@hassadar.pretzelnet.org> <83wn62xi3k.fsf@gnu.org> <83o7rexe2n.fsf@gnu.org> <83h6x5xym7.fsf@gnu.org> <83h6wr6gmz.fsf@gnu.org> <831qnu64la.fsf@gnu.org> <83o7qy4l2v.fsf@gnu.org> <55d39dcb-de2f-fe02-e069-f1dd1e50e59b@yandex.ru> <83edru4jaj.fsf@gnu.org> <83sfg92ryn.fsf@gnu.org> <83pmbd2oy6.fsf@gnu.org> <0380a032-bca0-4225-6f9d-853de49f100f@yandex.ru> <83mt6h2ix7.fsf@gnu.org> <2c61c7c9-da8d-1073-5079-8391f77fefa7@yandex.ru> <83ilh52ha3.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="4014"; 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: casouri@gmail.com, monnier@iro.umontreal.ca, larsi@gnus.org, theo@thornhill.no, jostein@secure.kjonigsen.net, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Jan 17 18:59:27 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 1pHqF5-0000qx-MY for ged-emacs-devel@m.gmane-mx.org; Tue, 17 Jan 2023 18:59:27 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pHqEs-0001w9-C0; Tue, 17 Jan 2023 12:59:14 -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 1pHqEq-0001qt-KY for emacs-devel@gnu.org; Tue, 17 Jan 2023 12:59:12 -0500 Original-Received: from mail-wm1-x335.google.com ([2a00:1450:4864:20::335]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pHqEo-00075A-NM; Tue, 17 Jan 2023 12:59:12 -0500 Original-Received: by mail-wm1-x335.google.com with SMTP id f25-20020a1c6a19000000b003da221fbf48so8816575wmc.1; Tue, 17 Jan 2023 09:59:09 -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=We2f5QKwl3V6/9hEhkrITLam7JvJgawA0RISd0oSebQ=; b=NNP74drNeFEdcpvXTFi498KZh79sDBn7NaOizX8LvCmHAEBDdBkiYT2i5wS8GLsirZ s+JRSVV0zwG9ZNFz9W+vH3Is19vIFKmosv0vl0EQC07cOUgjZeGNE2ED9aQ3Wgn8uMiC M+gkibcWOTKPNwJH2PyATFbvcwxX/mfSXm7udbT+e8SFW1QXhDKdTfUESw/Cm7KxVSV2 wv2khrsNeqzF3Z0y8R8G86QG0wWaQ6WM+ACm/Ax/pwJUVx53w0BYffj4gsBTJbLIYs12 AC/X/PxkLuV5mrJrQYnOQ5cxznXIQgQ+hKF6zb4HT4oeoDk5FLmN/CK8T28IALklgkMd K9fg== 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=We2f5QKwl3V6/9hEhkrITLam7JvJgawA0RISd0oSebQ=; b=ktr+5vHeopISNK1vN3t4TWr/pLHrxN8KnWoBuRQYATV/IJKpTztn7iBbB/s3HpN1FT Fu0w3TIOmWEfHCsv80A6VQcEXtTizYfmTxzGiBVoRsdmLeuOEmqhhSheEp91ogKhm1P6 r9zoTV/jFYkK8bymtxuYmOGryktG7lTnvJCgi0YEQ4hqb/OrV+y9Ph5HKn6kjDf7XWQ0 QUHdkMqYIQfzsOiZze4gSb3Z8ixwvs03T8pqe4mvmTH+lJLjZQJv2+Wjet7ta5VXEq/X wwl1OAPz2Wp7AiuvMf8QULh1gowdcwwihkGSJC7DcLeJG4KIZbZ6HUjarM1VOfkUEYoi f2ZA== X-Gm-Message-State: AFqh2krRFudTtyiH/YTFF3HyuHAB9LZgLpMtM32Vl5gTkeCSaJ8yeFMP 4grcjojNJ46xQ74ju1W8PVcrnxiNYoA= X-Google-Smtp-Source: AMrXdXsDIAbiW4u6tJgU3vwIrglKLtZM1eUnFWcQDUjc/jqjLBWanbM9+uxCZf16HR2oKcDw3fifSQ== X-Received: by 2002:a05:600c:3b0a:b0:3db:30f:bd72 with SMTP id m10-20020a05600c3b0a00b003db030fbd72mr4873828wms.8.1673978348961; Tue, 17 Jan 2023 09:59:08 -0800 (PST) Original-Received: from [192.168.0.2] ([46.251.119.176]) by smtp.googlemail.com with ESMTPSA id u21-20020a7bc055000000b003d9aa76dc6asm49521463wmc.0.2023.01.17.09.59.07 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 17 Jan 2023 09:59:08 -0800 (PST) Content-Language: en-US In-Reply-To: <83ilh52ha3.fsf@gnu.org> Received-SPF: pass client-ip=2a00:1450:4864:20::335; envelope-from=raaahh@gmail.com; helo=mail-wm1-x335.google.com X-Spam_score_int: -15 X-Spam_score: -1.6 X-Spam_bar: - X-Spam_report: (-1.6 / 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.097, 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:302490 Archived-At: On 17/01/2023 19:38, Eli Zaretskii wrote: >> Date: Tue, 17 Jan 2023 19:10:45 +0200 >> Cc: casouri@gmail.com, monnier@iro.umontreal.ca, larsi@gnus.org, >> theo@thornhill.no, jostein@secure.kjonigsen.net, emacs-devel@gnu.org >> From: Dmitry Gutov >> >>>> I can start a new session for an investigation, but I'm not going to >>>> restart Emacs every time I evaluate a form. >>> >>> Why not? It's easy and quick and solves all the problems you >>> mentioned (and then some). >> >> That would increase the time and effort required for such an >> investigation ~5x. (*) > > But testing in a session that is not clean is not recommended. For > reasons more important than the issue at hand... With some experience, one can usually sort issues into those that require clean environment, those than might use it, and those that most likely don't. In the end, that saves time. > However, I'm the last person to tell others how to organize their > workflows, so I'll leave it at that. Sure. >>> You can start from "emacs -Q" and load whatever is needed. You can >>> make an ad-hoc init file that loads everything you need automatically, >>> to save manual typing. I'm doing this all the time when the setup is >>> complicated. >> >> And now more people will have to, in less complicated situations, which >> previously required no such preparation. > > Maybe. Like I said, the solution I proposed is not ideal, I just > don't see a clearly better one. Every approach we can take will annoy somebody, like like in SPC xkcd. But dropping the auto-mode-alist modifications looks perfectly in line with the conservative approach we have used in the past, where features are rolled out gradually. I also don't fully understand the benefits of your proposal. Suppose we apply it. You talked about how easier it will be to document the new behaviors if all ts modes are consistent. Okay. What are we going to say in that documentation? Let's say there are two users, Bob and Alice. Bob has tried out yaml-ts-mode and wants to use it regularly. Alice has tried out js-ts-mode and also wants to use it from now on. What will be our recommendations for them to make that happen?