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, 21 Nov 2024 09:57:00 +0200 Message-ID: <86r075qasz.fsf@gnu.org> References: <868qtnfd2d.fsf@gnu.org> <86r07elwoh.fsf@gnu.org> <86h68al2qz.fsf@gnu.org> <867c95kaye.fsf@gnu.org> <861pzdk4aq.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="35950"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 74339-done@debbugs.gnu.org To: acm@muc.de, monnier@iro.umontreal.ca, Dmitry Gutov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Nov 21 08:58:30 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 1tE257-0009CH-RI for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 21 Nov 2024 08:58:29 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tE24j-0001of-F5; Thu, 21 Nov 2024 02:58: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 1tE24g-0001nx-K3 for bug-gnu-emacs@gnu.org; Thu, 21 Nov 2024 02:58: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 1tE24g-00041C-B7 for bug-gnu-emacs@gnu.org; Thu, 21 Nov 2024 02:58: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=6jzPYQ3+ak7LH0F5l/aq9VdEF/pIYR7HuKYTdNgbNzA=; b=SO2bvrMKSMS3IOL5O/Og8EjJ2rwo+Zpv/exUWAnTD34nJUf+gm+LFLY3QbYuypBpFY7YckJqo4X5mxLmNfmUiMwQIKX4S187q43RRxX2qsfVeHHllrm3/KD8fqif/tsoWmoQx3Gc9vuIW5G5obhQiVOrkiAZGZPwOQSsLE95MyLf1wfoWOozjBC6hGcLdH4kJUF4HsVkOn6QcaRPCiiOJi04n/P7qnMwKZZNn9mYxa/j3k9vlNsZHAwn7PgOv4S7xqPR8aVZ71m+P48yDuxnkcXC/AiwDSV2MSq/YU+s4U4gPB75mGKn0QYPaeMMXzEKX2IUIXYBF5UWDKTlV9pMXQ==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tE24g-0004GM-71 for bug-gnu-emacs@gnu.org; Thu, 21 Nov 2024 02:58:02 -0500 Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Thu, 21 Nov 2024 07:58:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 74339 X-GNU-PR-Package: emacs Mail-Followup-To: 74339@debbugs.gnu.org, eliz@gnu.org, eliz@gnu.org Original-Received: via spool by 74339-done@debbugs.gnu.org id=D74339.173217583216310 (code D ref 74339); Thu, 21 Nov 2024 07:58:01 +0000 Original-Received: (at 74339-done) by debbugs.gnu.org; 21 Nov 2024 07:57:12 +0000 Original-Received: from localhost ([127.0.0.1]:48982 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tE23s-0004Ez-DT for submit@debbugs.gnu.org; Thu, 21 Nov 2024 02:57:12 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:39680) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tE23q-0004El-PN for 74339-done@debbugs.gnu.org; Thu, 21 Nov 2024 02:57:11 -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 1tE23k-0003vt-Ce; Thu, 21 Nov 2024 02:57:04 -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=6jzPYQ3+ak7LH0F5l/aq9VdEF/pIYR7HuKYTdNgbNzA=; b=U7eLDov9XjIc XD9g9GBb/lP1kSEqIre0k2ZSyg2AlVmgI/8DUsiCcdNN7qmtlZOh3nESTosL35hFEI5n8FVD8rsM6 ZGJMlix/DBiKrm6YPKdc/oIGDJRPCcFY9UiPCwH3LIoxIjpBrDqu1+ZGSBWP4+TEUhvFyI2IAomax ul81nuSRlFs372SUwZfZy3SXPtIZrAlE+CWyezVBX4FaouUslWfdMjWVlwgTMB/FnF6CmnKxHwpeH xzKsHvhwxz0JIr2rKNXzp7oIfcemnKPSPTllV1OEDhRMrtgrmpLjAYezGtyFl3MYMNywB9rGu/KRj iNBRiijPauysxav3su7FbA==; In-Reply-To: <861pzdk4aq.fsf@gnu.org> (message from Eli Zaretskii on Thu, 14 Nov 2024 21:23:41 +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:295715 Archived-At: > Cc: monnier@iro.umontreal.ca, 74339@debbugs.gnu.org > Date: Thu, 14 Nov 2024 21:23:41 +0200 > From: Eli Zaretskii > > I prefer to make a simpler and more localized change, which only > manipulates major-mode-remap-defaults. I would not like to risk > changes like modifying auto-mode-alist, which might have other > unintended consequences, at least on the release branch. Let's stay > with major-mode-remap-defaults, since we already understand well > enough what the code does, and need just to tweak it in minor ways. I've now made changes in c-ts-mode.el on the emacs-30 branch that allow to remap CC Mode's C/C++ modes to the corresponding tree-sitter based modes as result of loading c-ts-mode, which resolves this bug. (cc-mode.el remains unchanged, so loading cc-mode will revert to using CC Mode, as it did before this change. IOW, the changes I installed make it possible for users to prefer c-ts-mode if they want, and leave intact the ability of users to prefer cc-mode if that is what they want.) With that, I'm closing this bug. Dmitry, please consider a similar change in ruby-mode.el and ruby-ts-mode.el, since what we have there now is that once ruby-ts-mode is loaded, there's no way for users to go back to using ruby-mode unless they customize major-mode-remap-alist.