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:10:45 +0200 Message-ID: <2c61c7c9-da8d-1073-5079-8391f77fefa7@yandex.ru> 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> 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="33088"; 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:11:33 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 1pHpUj-0008RT-36 for ged-emacs-devel@m.gmane-mx.org; Tue, 17 Jan 2023 18:11:33 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pHpU6-0000oF-Ou; Tue, 17 Jan 2023 12:10:54 -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 1pHpU5-0000iI-Ae for emacs-devel@gnu.org; Tue, 17 Jan 2023 12:10:53 -0500 Original-Received: from mail-wm1-x32d.google.com ([2a00:1450:4864:20::32d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pHpU3-0004sx-5y; Tue, 17 Jan 2023 12:10:53 -0500 Original-Received: by mail-wm1-x32d.google.com with SMTP id f12-20020a7bc8cc000000b003daf6b2f9b9so5358744wml.3; Tue, 17 Jan 2023 09:10:49 -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=YsRK/CH8oqw/+3Co37J6foInsgdouCBF06BBP03CSf4=; b=HX5mU1iOwky4u+jg83Csg9D9KnSNT50ajhUK/l3q4LPUsVpszLuhn3yeDb7fjH9xb3 h9ZEXE66o65KnraTYiRTSFqYUXBG6gCuEHfcogFN/tnZcp8H2rBNU4dRrnmbsCcHtAaR UCAe/dGCxGXzKO8kj1IH1n/CfyyvIPL5P018m5/6ScbqV/jxgREinm3HB48ATkkrWo4F JVg0EZRMblLWv1Oh11YtfAvcUJcusDao0YUilK5wvmBQJipalkMXmw2J7kDZwjQXBWnz DuTJ8EKrH7PHPfl5cvPkUtzO5YDPpPq2yeq2HYm51YKriMMdtUwjAw3YlMhiAV5kwDaw HBzg== 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=YsRK/CH8oqw/+3Co37J6foInsgdouCBF06BBP03CSf4=; b=t3+bApdhWyY4a5NUXgYnutW+QAKdkTdyLKO2aVxdd1W74ygm1drJi5jnv/phNzdklG Fop46u17Y9Q7KD/93rltZsgz+VzvIajjb9Dg1lP+4gouioUs0FXbYapyTbFl1gAURD6l Kzz7q/IQA9cOkUWEy12+2LyN7XLl2ZRQZxEblZY3BTgneQ+KLw4oAioLawEN8gX773tP cSsom9sNKEfgFCq8lh9Se4ePpLF2kbSEVkWF9xJ3ekCsWxDdwczsH3OUiD2mPuSYklFA kEpi4FtuAgId8YzyJ1k3MbfP3kiQHWdnh+tbpq85D0xQ082bl9rd8L+8moWeqDcVdzI9 C8jQ== X-Gm-Message-State: AFqh2ko1NMMSEgkv01oO3GfqJWH4BhBEgwoPU0DATdefkwloRs6hsQmG SNaeu7dUBnT4dgeLGbhzVOqMKre0bRo= X-Google-Smtp-Source: AMrXdXtqvdBrwgrfk8Mzr5CCMDIBnlgjokbr7U13DVff6OMrp0pOf6suuKFxztAg32sKE9ckL6ZmrQ== X-Received: by 2002:a05:600c:4928:b0:3da:909f:1f6b with SMTP id f40-20020a05600c492800b003da909f1f6bmr4019137wmp.1.1673975448356; Tue, 17 Jan 2023 09:10:48 -0800 (PST) Original-Received: from [192.168.0.2] ([46.251.119.176]) by smtp.googlemail.com with ESMTPSA id p10-20020a1c544a000000b003db0647645fsm2860584wmi.48.2023.01.17.09.10.46 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 17 Jan 2023 09:10:47 -0800 (PST) Content-Language: en-US In-Reply-To: <83mt6h2ix7.fsf@gnu.org> Received-SPF: pass client-ip=2a00:1450:4864:20::32d; envelope-from=raaahh@gmail.com; helo=mail-wm1-x32d.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:302482 Archived-At: On 17/01/2023 19:02, Eli Zaretskii wrote: >> Date: Tue, 17 Jan 2023 17:22:05 +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'm frankly surprised that this is not what you do in your testing. I >>> was quite sure that everyone who does any serious development or >>> maintenance work in Emacs does something like that. How else is it >>> possible to, e.g., load some obscure package someone says is necessary >>> for reproducing a problem? >>> >>> So in your case, when I'm done with testing whatever I need to test in >>> ruby-ts-mode, I ether shut down that session, or start another one in >>> parallel if I need to compare it with, say, ruby-mode. >> >> That's untenable. >> >> Running a benchmark is evaluating a form like >> >> (benchmark-run 1000 (progn (font-lock-mode -1) (font-lock-mode 1) >> (font-lock-ensure))) >> >> 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. (*) > Like I said: I'm using this myself all the > time. I'm reasonably certain that, for the tasks that I do, my workflows are better optimized. >> Doing the benchmarks in a different order (e.g. go through the files >> with one mode and then restart and go with another) is also only an >> option if I were to note the numbers on e.g. a piece of paper. I rarely >> do that; that would also slow me down compared to the current practice. > > No need for paper: just M-w the data and yank into your production > session (which stays up and running all the time). Again, I'm doing > this all the time in my work on Emacs. Likewise (*), but with a smaller multiplier. >> And also speaking of using 'emacs -Q', that's well-suited to testing >> some classes of bugs, and not so much for others. > > 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.