From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Po Lu Newsgroups: gmane.emacs.devel Subject: Re: Make all tree-sitter modes optional Date: Thu, 16 Feb 2023 20:38:00 +0800 Message-ID: <87h6vlpyzb.fsf@yahoo.com> References: <838rgzaqmj.fsf@gnu.org> <7bad77ae-a176-d49b-5115-dbadf7e6d1bc@yandex.ru> <83cz6aaeys.fsf@gnu.org> <837cwiae2c.fsf@gnu.org> <83cz6a819j.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="5911"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Eli Zaretskii , tomas@tuxteam.de, emacs-devel@gnu.org To: Alan Mackenzie Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Feb 16 13:40:52 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 1pSdZD-0001I1-JS for ged-emacs-devel@m.gmane-mx.org; Thu, 16 Feb 2023 13:40:51 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pSdYt-000288-7H; Thu, 16 Feb 2023 07:40:31 -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 1pSdYq-0001tK-DF for emacs-devel@gnu.org; Thu, 16 Feb 2023 07:40:28 -0500 Original-Received: from sonic310-50.consmr.mail.ne1.yahoo.com ([66.163.186.231]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pSdYo-0006hO-Hn for emacs-devel@gnu.org; Thu, 16 Feb 2023 07:40:28 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1676551223; bh=3X3Clax14v1Z42AuKIgL62DPTVW0tz05EXr4Vq+5QNc=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From:Subject:Reply-To; b=lmB1VvO5llaKnrThob2dUWdhThJFoXsRBzBQyxauH7PJpPP4bPZ3aG8YKFhOUTbfqsJxczV+7TugevD9Kzts1h8o8X74flQsxkn/q1fCdiTVYe5ZGeEjCZXk4486IuB1EXPzYuuNmNbX3XOTSqp4lwpla6TkXuCfDVDtWb7aoZHB7oK2xARLQc3kBVxj5FIL+EPmn8aWZIwgwHyiaLatieEDKKu/+BmMpaqb3WRhwUsnkvOBOhxQj578b46SreTCSQ/CC3NsCt+k4uNosbCel8AyfVmmShYALGIniclTTC2TGjkzXvf78tlzb5Z6I1W/PWeGTwdvVxRqavpCk4d44w== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1676551223; bh=e8D5gGogGGYP1VK2vqLhKnK75NZJPtvo6DLabrdFbeF=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=qKBDFHt2LLKmJeFMgA8XjnW4ShieGRWD1ttkRMwcrBrnZia9VRpu9ZyNJuDH16am2sqRx42WAoUaNL7hWkfj8DJleWXmNDpzL24jYiLQiE8OrNex0fXyQN+lsCQsa2SKZixn9L49KD40FIrK64+29NuK/nPRfo3rFQlE63I0l8+cC+QEsiw66TRXTOis/xc1b3NPjLeGc8585IJg3fLsHHFd9MOxc/eOluBcvMo2vmqdjqt89/vjm3EH0uHm75b98YUosXWCOELY2OZNPo4BK2fUsDV8fXvklWXM8Mgx67MsTn3bmE6PA3a2v6kGKcdVX23Cmhs8DwNqy3V/zfKFBQ== X-YMail-OSG: DwsKL5oVM1n5cQxPTdFFTcOhqLHQuiMSmp7jjGz9Nlj.wxSYFGLBgAK5a_VsMEV s4kZhfNCv5CDxyASoPeIQZ_k87JKCrWd9jQNdlx58qwEQlXC41bqxl.eoSW7lnxnvy8q0dv147Od 54SipoBWQPqeOXDDMJT62upIdQBVDJkWnJqMRSUdsoOVxFbNRSg6cZQt6CyCZ5ntlOiO8hjwULHs Qx6oIUvGnDFCC53Uo0zAILWhm_ZqqX8TjbI.25GraS.qVO8UMgu6z2eDYG00HIXo9ugR9o._EBvy uygWtY4nU5QEHDAuj84d3.WFtCMbk1ReoVRg8EnvS9jaeSS8zkXNBL3A4zgbHPPIaWcxFY4qRiuA .qRKJECCTbnyd7EYuq0Z9pKNGnHFCd1aJi_Vf8nqGV_6gsSL.jLSdj37DMfaW.GRJGdoLVGTqwzu IsOgYxXTlgyxjPnh9Ph5eYagQRE8bW5DMA3Qowijxzk_0fqc2nUhckD30dRfOdj2_kNDtj513jDb p6iEZpk9ROW3NrxcXVDnY3KI9_pvm_HM1KQWeq_j7anJ.qH5876NBf0OqCdZMRDvrw_jxkkryKqk YeDmGuGDopoF5BWcf_lkgn4Y7HEDyWzzu2xJAmy862qya9Eb21itFBiHH9.rMu.c4hxBTWgedrtl bTbXHI_MqhAEUkBc6XPvFuqHGD3058gAo8MLiBfEIvonfRxcyyyg8dn6Xyrl61EzDNIgKZjqpLXX vVAvQGv8bMUGeQhWmjLrPX71zjI2Y6y7k56WEJp3tfUhlDI8BYs4uZjZC9LpVpeywmKiQq6kTClR qqs.GX1382VZsMTUItpA4J3DSdSM3MtZ8T.pNtjJMj X-Sonic-MF: Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic310.consmr.mail.ne1.yahoo.com with HTTP; Thu, 16 Feb 2023 12:40:23 +0000 Original-Received: by hermes--production-sg3-9fc5746c8-r2vxw (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 08f386856c74bdd46b0153d72fba414d; Thu, 16 Feb 2023 12:38:20 +0000 (UTC) In-Reply-To: (Alan Mackenzie's message of "Thu, 16 Feb 2023 10:30:25 +0000") X-Mailer: WebService/1.1.21183 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo Received-SPF: pass client-ip=66.163.186.231; envelope-from=luangruo@yahoo.com; helo=sonic310-50.consmr.mail.ne1.yahoo.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, 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:303410 Archived-At: Alan Mackenzie writes: > Hello, Eli. > > On Thu, Feb 16, 2023 at 10:26:00 +0200, Eli Zaretskii wrote: >> > Date: Thu, 16 Feb 2023 06:45:13 +0100 >> > From: > >> > On Wed, Feb 15, 2023 at 10:06:35PM +0200, Eli Zaretskii wrote: > >> > > Well, I do. And I explained this several times already in the past, > >> > I don't understand that. To me it feels like pushing people to bump >> > into ts-modes whether they want or not. > >> These modes are completely optional, turned off by default. Users >> need to turn them on, in one of the described ways, for them to take >> any effect. None of the described ways of turning on the modes >> happens automatically. I'm bewildered how this can be regarded as >> "pushing people to bump into" these modes. Are you sure we are >> talking about the same editor? > > I'm a little surprised that you don't appreciate how other people (such > as me) work, and that you seem to regard restarting Emacs as a perfectly > acceptable way of reversing M-x c-ts-mode. > > (Some) users will not be satisfied with a single switch to c-ts-mode, > they will want to move backwards and forwards to and from CC Mode IN THE > SAME EMACS SESSION, and will resent continually having to restart Emacs > to do so. > > This "moving backwards and forward" is asymmetric. It is far, far > easier to switch into c-ts-mode than switch out of it, and I feel this > is not right. It is why I proposed c-make-ts-undefault-mode. > > Also, restarting Emacs will NOT restore auto-mode-alist, unless the user > doesn't use desktop, or somehow knows (how?) he must clear his desktop > of c-ts-mode buffers before restarting. I foresee much wasted time and > frustration resulting from this. Is c-ts-mode made default immediately after the file is loaded, or after c-ts-mode is first enabled? The first is at least considered a Bad Thing, and that wisdom is written down somewhere in the Lisp reference manual. (elisp)Major Mode Conventions perhaps?