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: Sun, 24 Nov 2024 18:27:47 +0200 Message-ID: <86zfloiol8.fsf@gnu.org> 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> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13907"; mail-complaints-to="usenet@ciao.gmane.io" Cc: dmitry@gutov.dev, 74339@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Nov 24 17:29:29 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 1tFFUG-0003Sl-Tk for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 24 Nov 2024 17:29:29 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tFFTr-0004G7-U4; Sun, 24 Nov 2024 11:29:04 -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 1tFFTq-0004Fx-NF for bug-gnu-emacs@gnu.org; Sun, 24 Nov 2024 11:29:02 -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 1tFFTq-0001CI-Ev for bug-gnu-emacs@gnu.org; Sun, 24 Nov 2024 11:29: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:From:Date:To:Subject; bh=LMCSDBD7go3mbL1Ol+sfqoWkVy3hW6LvxjgQ5ppd/iY=; b=UmIkHJIfhPlZaxwQjegK1Wwu1S03zHECW2zLcCebgDw+01RwT1XibkSLwX//WEZLvYcI/efdIQe025dAMBu0pu+y7vzAijXjiXY3uNSkGUXS79+tUvenCnNSFIUEOT1Z0JFze4A0MgnJmlNuDHryiAJ5/ArAonHnVSdIdvJK+XTmAR8ze5K7Cj30Eqfj8mCPQRvnTfhBTV9b53GPV0Ew9z1Z6FvZ81p5ab3Rof+vsg8pN2aCAlKp3O1o/QADTXZZGhIeqXn5FOyolJj1iwxOydTk2psYc7WajBH6gW7EGVv6LHs4ebFqsIHUz6giD9n9qZ4hGHLHjU3SGhDn/pAVLQ==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tFFTq-0006w6-3f for bug-gnu-emacs@gnu.org; Sun, 24 Nov 2024 11:29: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: Sun, 24 Nov 2024 16:29: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.173246568626573 (code B ref 74339); Sun, 24 Nov 2024 16:29:02 +0000 Original-Received: (at 74339) by debbugs.gnu.org; 24 Nov 2024 16:28:06 +0000 Original-Received: from localhost ([127.0.0.1]:35842 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tFFSv-0006uW-T1 for submit@debbugs.gnu.org; Sun, 24 Nov 2024 11:28:06 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:60118) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tFFSr-0006tw-Pk for 74339@debbugs.gnu.org; Sun, 24 Nov 2024 11:28:04 -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 1tFFSm-00019F-Fa; Sun, 24 Nov 2024 11:27:56 -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=LMCSDBD7go3mbL1Ol+sfqoWkVy3hW6LvxjgQ5ppd/iY=; b=Quo2VkPqBk2F A4/R4Wftfm5Z3OiKIOIiWs/lAiLM9wVbu/ARITjtOnpMlQaQG1DDFwucNmRoWT3BWNKja9mDpajEo iDpiU03cd4B5XXcxE43Z4PtZmLDATPFjQganjquGiUZ6WFx2FyfuOYZmXQjmwf2h/zkPcMgnna4LN j0hhLk3D4GLEik1FIEpvPB3OfDuTDNU6U+kPHDD1L7Bf3Etd+XLFJmP7SLpC+15Q7ixSoDUwzDtjV xlC5RsTU8YJT6YgMho51wt89Tcw/H+G8X2OdZhkq4lm8uQGfQXiF851rzFW8sqzyWE+2Hua2O7vox qwNCnneYBBTiKfp6HYOLLA==; In-Reply-To: (message from Stefan Monnier on Sun, 24 Nov 2024 10:37:23 -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:295912 Archived-At: > From: Stefan Monnier > Cc: dmitry@gutov.dev, 74339@debbugs.gnu.org > Date: Sun, 24 Nov 2024 10:37:23 -0500 > > > 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. No, it doesn't: ruby-ts-mode already did that, due to this change: commit 2b5d43081a30f816dd38a16c7b5bfbad712a779b Author: Stefan Monnier AuthorDate: Sun Mar 3 23:08:16 2024 -0500 Commit: Stefan Monnier CommitDate: Sun Mar 3 23:58:18 2024 -0500 > 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. We will do that in Emacs 31, but the change I posted was for Emacs 30, where we decided to live with that.