From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#74339: 30.0.92; CC Mode stomps C TS Mode Date: Wed, 13 Nov 2024 15:46:27 -0500 Message-ID: References: <868qtnfd2d.fsf@gnu.org> <86msi2lvbo.fsf@gnu.org> Reply-To: Stefan Monnier Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="36959"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: acm@muc.de, 74339@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Nov 13 21:47: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 1tBKGr-0009S6-Nt for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 13 Nov 2024 21:47:26 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tBKGZ-00088b-Vp; Wed, 13 Nov 2024 15:47:08 -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 1tBKGV-00087c-PR for bug-gnu-emacs@gnu.org; Wed, 13 Nov 2024 15:47:04 -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 1tBKGU-0001M7-Mn for bug-gnu-emacs@gnu.org; Wed, 13 Nov 2024 15:47:03 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:References:In-Reply-To:From:To:Subject; bh=VWQUAweEqpSpajjhhHUiq4xQtUUIRPPp0AT4wFMkQo0=; b=qrHtSuLIx5u0RXGvLiEZ0GFmJEkpi+WeaVT/JekkhVFAYJEfyNp1E9ZDbSI7knn069pbSeht9IpL8irXGmaIuxBhnmfbju4zx0nfkM8Rjd16LLcuf7pt6qzbrRRJx9IRq/og4e0MrgEWF0QK0lyInht963IdRldERInutTMkiWIaXqQ1mTjS22gk0LvFq8Ty6ZITuleMIQB1es15wVolTVlTjgE22Uf9nHPFwo9fdOFuoH4gY0sAa8f3kw6kVUMogcEbKOV9huW6yyFCu/x/tz97a2dygR7A7hX+N6PtWi67YanDMPNgAv+eHYlhywhzUzqY3cVXKQ1LphorH55ZcA==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tBKGU-0002O3-H3 for bug-gnu-emacs@gnu.org; Wed, 13 Nov 2024 15:47:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 13 Nov 2024 20:47: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.17315307989140 (code B ref 74339); Wed, 13 Nov 2024 20:47:02 +0000 Original-Received: (at 74339) by debbugs.gnu.org; 13 Nov 2024 20:46:38 +0000 Original-Received: from localhost ([127.0.0.1]:43836 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tBKG5-0002NL-Hx for submit@debbugs.gnu.org; Wed, 13 Nov 2024 15:46:37 -0500 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:25821) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tBKG3-0002N8-45 for 74339@debbugs.gnu.org; Wed, 13 Nov 2024 15:46:35 -0500 Original-Received: from pmg3.iro.umontreal.ca (localhost [127.0.0.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 65E24444A75; Wed, 13 Nov 2024 15:46:29 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1731530788; bh=XzySCjwTA5TQ6eUy45G0ouPbPh/PX+f38j9UhXDEm0o=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=W/tgEeVRf5XYUAzp7P5WRYizQsz61Ln2V/S267UM5rtmy5TYsHHD15ZDqiEnwfYxM xhsKIGPTb4TJxl87JQR8NR7rV9VB5Wm2v8P1sd0PpzbIKpMrOArYwBsPRrSoIzbkuW hMGz1H/hzlVvpdFpKE7Ud9vcbbENC1RjLRyyZtAVWWJOeThiqYpkt1wSQ2I68CuP51 d+wKiLdJL4s9/tzy2FkPkwNhuaFMX47/uDSzfMBiWdF3qiCYBp8TXBe6zApPEPymhz pFTcq2yeqlH9gkcEMTh76OG+LhIJLjuIYQefKNb61iEPdF49+fEF/kA/iMJr4ik2eg XjHb7iNwWBLOg== Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 59BDC444A66; Wed, 13 Nov 2024 15:46:28 -0500 (EST) Original-Received: from lechazo (lechon.iro.umontreal.ca [132.204.27.242]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 45DFB1200A3; Wed, 13 Nov 2024 15:46:28 -0500 (EST) In-Reply-To: <86msi2lvbo.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 13 Nov 2024 22:42:19 +0200") 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:295291 Archived-At: >> AFAICT it's the result of the decision to make `c-ts-mode.el` add itself >> to `major-mode-remap-defaults` when the file is loaded (which AFAIK we >> don't want to re-discuss). To defend against the case where that file >> was loaded without the intention to use c-ts-mode everywhere the above >> code "one ups" `c-ts-mode.el`s settings so as to take precedence >> over them. >>=20 >> Looks like an arms race to me. =F0=9F=99=82 > > Not a race, more like a knockout: once cc-mode is loaded, the race is > over. That's because you haven't seen the coming patch to `c-ts-mode.el` which removes the `cc-mode.el` entries, after which `cc-mode.el` will use another, yet sophisticated approach, etc... Stefan