From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Christopher Dimech 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: Sun, 24 Nov 2024 17:01:25 +0100 Message-ID: References: <868qtnfd2d.fsf@gnu.org> <86r07elwoh.fsf@gnu.org> <86h68al2qz.fsf@gnu.org> <867c95kaye.fsf@gnu.org> <861pzdk4aq.fsf@gnu.org> <86r075qasz.fsf@gnu.org> <7d4a925a-3960-4412-bdb3-4f752407e00a@gutov.dev> <86zflsnza0.fsf@gnu.org> <861pz1lows.fsf@gnu.org> Reply-To: Christopher Dimech 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="32649"; mail-complaints-to="usenet@ciao.gmane.io" Cc: dmitry@gutov.dev, Eli Zaretskii , 74339@debbugs.gnu.org To: monnier@iro.umontreal.ca Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Nov 24 17:02:18 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 1tFF3y-0008KE-7J for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 24 Nov 2024 17:02:18 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tFF3k-0000Q0-Uv; Sun, 24 Nov 2024 11:02:05 -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 1tFF3i-0000Pn-Qv for bug-gnu-emacs@gnu.org; Sun, 24 Nov 2024 11:02:03 -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 1tFF3i-0006NA-IA for bug-gnu-emacs@gnu.org; Sun, 24 Nov 2024 11:02:02 -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:Date:From:MIME-Version:To:Subject; bh=AMljDza1N+ydR51+zS9PxdAipD7CDhhLsNvq5FTqEkg=; b=KbjvHRMu96p3MCqfHhaYH1hJeOqXazVOASPhC+KJEGJUTGBmy6pvrtgNv2Zi+SP0zzev6S/ReAcQMYOm0sV5l2lGEhnGYyjMDgWCuEviTqnJMv7L1HC7hHnMMpPsMv35UvnlGIV/MPV6CFA5wegxTzwV2VQCdRq4eV2ILJu0COrlzmVCfi9BiPkOO122PlYdpj0pkiN81gMt8HCtxzye1k38/Jo1bdh7nJknnLX4mhTCGym+NnlbFrFBkmJ5WKSTIfOgbaYUGd6wAg1ptym/ROPEXvG550u11PR1Vmh5d5GBTJmuIy5Jn3vo74UbUqEuflC1Gta0ABvwGEFop+bP4Q==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tFF3i-0005fg-60 for bug-gnu-emacs@gnu.org; Sun, 24 Nov 2024 11:02:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Christopher Dimech Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 24 Nov 2024 16:02: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.173246410221766 (code B ref 74339); Sun, 24 Nov 2024 16:02:02 +0000 Original-Received: (at 74339) by debbugs.gnu.org; 24 Nov 2024 16:01:42 +0000 Original-Received: from localhost ([127.0.0.1]:35806 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tFF3N-0005f0-RH for submit@debbugs.gnu.org; Sun, 24 Nov 2024 11:01:42 -0500 Original-Received: from mout.gmx.net ([212.227.15.15]:34255) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tFF3J-0005ek-JK for 74339@debbugs.gnu.org; Sun, 24 Nov 2024 11:01:40 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.com; s=s31663417; t=1732464085; x=1733068885; i=dimech@gmx.com; bh=AMljDza1N+ydR51+zS9PxdAipD7CDhhLsNvq5FTqEkg=; h=X-UI-Sender-Class:MIME-Version:Message-ID:From:To:Cc:Subject: Content-Type:Date:In-Reply-To:References: Content-Transfer-Encoding:cc:content-transfer-encoding: content-type:date:from:message-id:mime-version:reply-to:subject: to; b=Td9g3plu3AZeMt0AMFJGkdymJNnoCfQU6V9vfljFj4Vi3Jy3OnBaP9uLs6tLEDhT ckE8+/qFMX6wVTrE1ECXDyWvyVFFWAnusTb61jxFpO6tpLhFTK7cuTcKd0o7/nPql 1bb5H5h/8GPf2ki8hjJs8y7dtkYlXQfRpfJnJ+q9ye9NddAdqN2kI9E6ySaqMTrHZ 3PoCCqWIXscUJL4ISSmNvty9qAN9rcClm3528W9I6a2jRXBMbVGP6JR3o2p9j1hrO kQVHam7dzft21hvRaLoGRkwdJSPWUCSylOXmS7Nji0Dq1ZChYK/ZSa+6taQhuExl5 DoA5njIJI+p26582CQ== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Original-Received: from [77.71.252.27] ([77.71.252.27]) by web-mail.gmx.net (3c-app-mailcom-bs16.server.lan [172.19.170.184]) (via HTTP); Sun, 24 Nov 2024 17:01:25 +0100 Importance: normal Sensitivity: Normal In-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Ux+RVkXC+gtjhdg39DdW9D76DyqcaVxDuw== 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:295909 Archived-At: > Sent: Monday, November 25, 2024 at 3:37 AM > From: "Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knif= e of text editors" > To: "Eli Zaretskii" > Cc: dmitry@gutov.dev, 74339@debbugs.gnu.org > Subject: bug#74339: 30.0.92; CC Mode stomps C TS Mode > > > Like the patch below. Is it okay? > [...] > > +(setq major-mode-remap-defaults > > + (assq-delete-all 'ruby-mode major-mode-remap-defaults)) > > + > > So, this adds `ruby-mode.el` and `ruby-ts-mode.el` to the list of files > which break our coding convention that loading a file should not affect > Emacs's behavior. > > I understand we decided back in Emacs-29 that it was the least bad > solution to make it easy for users to use the new TS major modes, but > this was back in Emacs-29. We should look for ways to remove this kind > of hack rather than spreading it to more files. > - Stefan Temporary solutions, such as hacks, must be explicitly marked as such and accompanied by plans for their eventual removal. Failure to do so perpetuates confusion among Elisp developers regarding the appropriate structures to use.