From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#74339: 30.0.92; CC Mode stomps C TS Mode Date: Thu, 14 Nov 2024 21:10:03 +0200 Message-ID: <864j49k4xg.fsf@gnu.org> References: <868qtnfd2d.fsf@gnu.org> <86r07elwoh.fsf@gnu.org> <86h68al2qz.fsf@gnu.org> <697529d6-0591-4a80-b640-7ddce7dc246b@gutov.dev> <86a5e1kbg5.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="2882"; mail-complaints-to="usenet@ciao.gmane.io" Cc: dmitry@gutov.dev, 74339@debbugs.gnu.org, acm@muc.de To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Nov 14 20:11:26 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1tBfFW-0000Z7-JU for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 14 Nov 2024 20:11:26 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tBfFD-0000ya-3M; Thu, 14 Nov 2024 14:11:07 -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 1tBfF9-0000tj-Fh for bug-gnu-emacs@gnu.org; Thu, 14 Nov 2024 14:11:05 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tBfF8-000644-Mv for bug-gnu-emacs@gnu.org; Thu, 14 Nov 2024 14:11:03 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=References:In-Reply-To:From:Date:To:Subject; bh=kXxBOBA/u5KM+NxM7qvxgXU6ToZv5E0ZsFWUpwUKk28=; b=PASakt1VfnzqLEQnXtD9Mffl6ajR4ycc+nQ5XKrn2+peKhkz8/yrNH23t82wfqXHwgRcrQUoa/6ahyVKqWi2bVArWeQzr9fJKGE0nSGurC+4Mg+A9DuT/uHh7pgkbYuL9x+wCsNKsbpT59qVotIBVaXgx/HrICp5plh6Rhh8/KRq+4SctgvrnPUCLupqwCkZbu1S/m8qQpeVf92dIZA02EzSEY3qe9tjxOSKF6AsjzyozxykUxpsTbx9wIDQaqQegDSP++R1RokP4GCyaqtyAkdvbPQjGpGSiK3eluZb0WRaY7y1UdE1GlUCxwH9bjlDxGgk9ITr/izrl90Ur95sxQ==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tBfF8-0006uZ-8M for bug-gnu-emacs@gnu.org; Thu, 14 Nov 2024 14:11:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 14 Nov 2024 19:11:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 74339 X-GNU-PR-Package: emacs Original-Received: via spool by 74339-submit@debbugs.gnu.org id=B74339.173161141626367 (code B ref 74339); Thu, 14 Nov 2024 19:11:02 +0000 Original-Received: (at 74339) by debbugs.gnu.org; 14 Nov 2024 19:10:16 +0000 Original-Received: from localhost ([127.0.0.1]:47198 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tBfEO-0006qs-C2 for submit@debbugs.gnu.org; Thu, 14 Nov 2024 14:10:16 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:56588) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tBfEL-0006nJ-R1 for 74339@debbugs.gnu.org; Thu, 14 Nov 2024 14:10:15 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tBfEE-0005uz-Cb; Thu, 14 Nov 2024 14:10:06 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=kXxBOBA/u5KM+NxM7qvxgXU6ToZv5E0ZsFWUpwUKk28=; b=VytcnJunNBtC 7EzyQfiovodpYRBCNbTnR90uOmmnAd/UIj4n0q+nLBlYdJkTHdMt8jhHmgCs6QkS3qswHXKgJzf3D vQ4sMykFLLpS4IWvLXQ3AwKANfh3D7wMHsiGRozRxRiHYD9nFk25e2FpJg5IgyR9ktGJdjE/7cRYR VWDPN6CCRLyC6hD10yoPQlslMQEOKuHJnkBq0d7DD9hfa6O/hk80ZMYJZUoH6iMlaW3fpiGs8TKX4 vl50gYpZA1QI29GOfQzH/PkFTZkbO2tKFcm6Gke9ZLao9Xut5M/7MpNwU6v3HMbjXiu4CLh5zbe6S 2/Ce3qB8sESpDUR92QEMXQ==; In-Reply-To: (message from Stefan Monnier on Thu, 14 Nov 2024 12:16:38 -0500) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:295358 Archived-At: > From: Stefan Monnier > Cc: dmitry@gutov.dev, acm@muc.de, 74339@debbugs.gnu.org > Date: Thu, 14 Nov 2024 12:16:38 -0500 > > AFAIC, "the way for users to express their preference" is by customizing > `major-mode-remap-alist` This is not a user-friendly method, IMNSHO. Customizing major-mode-remap-alist requires too much knowledge of Lisp. How hard is it to imagine someone who puts wrongly-formatted elements into the alist, like sub-lists instead of cons cells? If the user just wants to tell Emacs: I want to use foo-ts-mode instead of foo-mode for language foo, there must be an easier way, like flipping some simple switch. So customizing major-mode-remap-alist is _a_ way to express this kind of preferences, but IMO we should be able to do better. In another discussion, I proposed to have simpler user option(s) that would allow users to express this preference, such that, say, auto-mode-alist would activate this or that mode given such a variable. I hope something like that will be possible in some future release.