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: An anonymous IRC user's opinion Date: Fri, 11 Oct 2024 23:30:12 +0300 Message-ID: <63edeeea-1f24-4d3b-abc8-b96b164942e4@gutov.dev> References: <87plodsjsd.fsf@web.de> <865xq14dwp.fsf@gnu.org> <343c4d04-af53-4da2-9d1c-c616c74821e1@gutov.dev> <86plo8369c.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="29587"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla Thunderbird Cc: johan.myreen@gmail.com, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Oct 11 22:31:05 2024 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 1szMHw-0007QU-3h for ged-emacs-devel@m.gmane-mx.org; Fri, 11 Oct 2024 22:31:04 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1szMHF-00085e-6e; Fri, 11 Oct 2024 16:30:21 -0400 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 1szMHC-00083n-4I for emacs-devel@gnu.org; Fri, 11 Oct 2024 16:30:19 -0400 Original-Received: from fhigh-a1-smtp.messagingengine.com ([103.168.172.152]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1szMHA-0000lm-LV; Fri, 11 Oct 2024 16:30:17 -0400 Original-Received: from phl-compute-12.internal (phl-compute-12.phl.internal [10.202.2.52]) by mailfhigh.phl.internal (Postfix) with ESMTP id CAC141140215; Fri, 11 Oct 2024 16:30:15 -0400 (EDT) Original-Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-12.internal (MEProxy); Fri, 11 Oct 2024 16:30:15 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gutov.dev; h=cc :cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm1; t=1728678615; x=1728765015; bh=HW0v8wWLgZBthM5vVo565KbApf6QR8yLlD9YW8Edti8=; b= e2b7Z0e2lbpxymRSBkioP6i7zpaiOE/7GB+YTppXhkNd9//Fi2vEq/T983uOzY7y HGO8xFHyi0u4YFkfXXkp6F3fG1oe7A2KbcAMngqnukHKHXCx4Mr0C3aE1B4oHeRt RiIWcomcO5A6KCfgdm7mEfSX7CwccPgXIG0oG/VhYxGZDQC0ZRh6AR9RhS/tuGmA lEcQ0xMQuVgOaw7HfHB9GxvdXBQuTtYfL7gxXZAAjBhNlEKuCARhG6Y5svfqw4ti fviw0OgGl/4Q2bum1dVHIFHFmINSk/XpmLvSbPXiLYXs4jkSVYFiwtHrLktJ2spO 6R/EnYZVWo74dMW6DxsOBg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t=1728678615; x= 1728765015; bh=HW0v8wWLgZBthM5vVo565KbApf6QR8yLlD9YW8Edti8=; b=g TYct1JVFZc/ggpDQfHoiNXD8QnQnEv76xgK2kEwjYb7wZff2fem5od4PlhcblvcN mFAAmwkvGbIFogwsRmLtdNFMARRSWSQ5k6pIpIQwNiCMfSi6GoUL5LL9mb6WpbQS dS+2HeXUEe8obd/k6XWO0aVXS+ytu8pTUWc6Bjn0tH6+ABigNdx7pLgT5+lmLYXz pPto9zjl3rt+kpqmLYx2jnLnHusiSRd5LvvuzYtSTMH4Lmjh3UMBauQMpzgB+Dnz MCq5gjCRpJ5vYXJf1GGBRXrD+1rQYsvDOAL0PedikyZwXrcdv6LxoJdPan0yWr2/ 4SXqsdxk8mrHDtJyymV3Q== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeftddrvdefkedgudegkecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpggftfghnshhusghstghrihgsvgdp uffrtefokffrpgfnqfghnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivg hnthhsucdlqddutddtmdenucfjughrpefkffggfgfhuffvvehfjggtgfesthejredttddv jeenucfhrhhomhepffhmihhtrhihucfiuhhtohhvuceoughmihhtrhihsehguhhtohhvrd guvghvqeenucggtffrrghtthgvrhhnpedtgfegtdehvedvjeejffetgfdtgfefheevjeek ieejtefgffdtheefvdfgtdevueenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmh epmhgrihhlfhhrohhmpegumhhithhrhiesghhuthhovhdruggvvhdpnhgspghrtghpthht ohepfedpmhhouggvpehsmhhtphhouhhtpdhrtghpthhtohepvghlihiisehgnhhurdhorh hgpdhrtghpthhtohepjhhohhgrnhdrmhihrhgvvghnsehgmhgrihhlrdgtohhmpdhrtghp thhtohepvghmrggtshdquggvvhgvlhesghhnuhdrohhrgh X-ME-Proxy: Feedback-ID: i07de48aa:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 11 Oct 2024 16:30:15 -0400 (EDT) Content-Language: en-US In-Reply-To: <86plo8369c.fsf@gnu.org> Received-SPF: pass client-ip=103.168.172.152; envelope-from=dmitry@gutov.dev; helo=fhigh-a1-smtp.messagingengine.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham 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:324500 Archived-At: On 10/10/2024 07:56, Eli Zaretskii wrote: >> That seems unlikely: as long as the auto-mode-alist configuration for >> rust-ts-mode is done early on in Emacs's startup, any installed 3rd >> party package such as rust-mode would add its config later, and thus >> have priority. > I don't have objections to making Rust recognized automatically and > activating rust-ts-mode, if people think this danger is low or > non-existent, and if *.rs files are not commonly used for something > completely unrelated (e.g., I see on my Windows system quite a few > *.rs files that seem to be some kind of Windows data files). Actually, thinking back the last time we made such a move, we got a report from a user who preferred to have files in question (*.toml) in fundamental-mode, because they didn't want the hassle of installing the toml tree-sitter grammar (bug#60559). The said user didn't have Emacs compiled with tree-sitter, so if we wanted to revisit that issue, we could enable ts mode globally when Emacs is compiled with that support, and when it isn't, keep them out of auto-mode-alist. That could still lead to inconveniences sometimes, but at the very least it would follow the reporter's request from down the thread: > If emacs was configured with tree-sitter, it seems productive to warn the user when tree-sitter grammars are missing. It seems likely that user intended to have tree-sitter. > When emacs is NOT configured with tree-sitter, it seems counter-productive to warn about missing tree-sitter. > I even pass --without-tree-sitter to configure now. It seems particularly surprising to me that I explicitly tell emacs "don't use tree-sitter" and then it immediately starts complaining to me that it doesn't have tree-sitter.