From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.devel Subject: Re: Make all tree-sitter modes optional Date: Fri, 17 Feb 2023 13:30:58 +0000 Message-ID: References: <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> <83pmaaaicy.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="40801"; mail-complaints-to="usenet@ciao.gmane.io" Cc: juri@linkov.net, 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 Fri Feb 17 14:32:14 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 1pT0qU-000AMk-64 for ged-emacs-devel@m.gmane-mx.org; Fri, 17 Feb 2023 14:32:14 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pT0pr-00017W-71; Fri, 17 Feb 2023 08:31: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 1pT0pY-0000wK-SF for emacs-devel@gnu.org; Fri, 17 Feb 2023 08:31:16 -0500 Original-Received: from mx3.muc.de ([193.149.48.5]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pT0pU-0003pw-VX for emacs-devel@gnu.org; Fri, 17 Feb 2023 08:31:15 -0500 Original-Received: (qmail 69078 invoked by uid 3782); 17 Feb 2023 14:31:00 +0100 Original-Received: from acm.muc.de (pd953aad7.dip0.t-ipconnect.de [217.83.170.215]) (using STARTTLS) by colin.muc.de (tmda-ofmipd) with ESMTP; Fri, 17 Feb 2023 14:30:59 +0100 Original-Received: (qmail 29389 invoked by uid 1000); 17 Feb 2023 13:30:58 -0000 Content-Disposition: inline In-Reply-To: <83pmaaaicy.fsf@gnu.org> X-Submission-Agent: TMDA/1.3.x (Ph3nix) X-Primary-Address: acm@muc.de Received-SPF: pass client-ip=193.149.48.5; envelope-from=acm@muc.de; helo=mx3.muc.de X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=unavailable 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:303479 Archived-At: Hello, Eli. On Wed, Feb 15, 2023 at 20:33:49 +0200, Eli Zaretskii wrote: > > Date: Wed, 15 Feb 2023 17:57:15 +0000 > > Cc: juri@linkov.net, casouri@gmail.com, monnier@iro.umontreal.ca, > > larsi@gnus.org, theo@thornhill.no, jostein@secure.kjonigsen.net, > > emacs-devel@gnu.org > > From: Alan Mackenzie [ .... ] > This [severe inconvenience to users who wish to stop using a new > feature] can happen with any new feature. There's nothing we can do about > this, .... There is; we're competent hackers. > .... so please just stop worrying about it. I continue to be unhappy about the state of this change. If we are going to insist on users restarting Emacs simply to remove three entries from auto-mode-alist, we should at least ensure that such restarting will work. In the current NEWS, the directions are incomplete and misleading. I propose the following to correct this; it adds text to what is currently there rather than replacing it, as you requested a couple of days ago: diff --git a/etc/NEWS b/etc/NEWS index 2d15e39036a..dbe6517e78f 100644 --- a/etc/NEWS +++ b/etc/NEWS @@ -3239,10 +3239,13 @@ for which a "built-in" mode would be turned on. For example: (add-to-list 'major-mode-remap-alist '(ruby-mode . ruby-ts-mode)) -If you try these modes and don't like them, you can go back to the -"built-in" modes by restarting Emacs. But please tell us why you -didn't like the tree-sitter based modes, so that we could try -improving them. +Loading one of the new modes amends 'auto-mode-alist' such that +visiting the same type of file in the future will continue to use that +new mode. If you try these modes and don't like them, you can go back +to the "built-in" modes by restarting Emacs, but first, if you use +desktop-save-mode, make sure no buffers using the new mode will get +entered into your .desktop file. But please tell us why you didn't +like the tree-sitter based modes, so that we can try improving them. Each major mode based on tree-sitter needs a language grammar library, usually named "libtree-sitter-LANG.so" ("libtree-sitter-LANG.dll" on -- Alan Mackenzie (Nuremberg, Germany).