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 18:59:53 +0200 Message-ID: <867c95kaye.fsf@gnu.org> References: <868qtnfd2d.fsf@gnu.org> <86r07elwoh.fsf@gnu.org> <86h68al2qz.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="35269"; mail-complaints-to="usenet@ciao.gmane.io" Cc: acm@muc.de, monnier@iro.umontreal.ca, 74339@debbugs.gnu.org To: Alan Mackenzie Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Nov 14 18:02:05 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 1tBdEK-00090A-Qt for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 14 Nov 2024 18:02:05 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tBdDw-00075y-8l; Thu, 14 Nov 2024 12:01:46 -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 1tBdDK-0006k1-Fo for bug-gnu-emacs@gnu.org; Thu, 14 Nov 2024 12:01: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 1tBdDK-00035Q-5g for bug-gnu-emacs@gnu.org; Thu, 14 Nov 2024 12:01: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=9eAqgWfQpiQ0Dbl9dHYH1wFFyUM+963QASEn8oNWhhc=; b=cLcKzeLqzR5hbTlhZdsjuCetgFOf6quXrOAJulBEiJBaythZYiDlOz2sb+xucyHn1N5yVvGS7Tu8o/BK+1vo6xyS6Mlj+McGady69C8ux8RD0p2vAWX3rVIqTW9p8qLOtgh2eUTrATZunu2q6qF7wDGqvd/qkJ67zBgpde2ejMj/6KgANfaQCWcSQk4+xAjbAEVkxS2kGzqzsAUPKJ3L9AhCQ8yBESEr8uEo4vQSZyz3O4XCiAVEL6/ST4cRc7lT1XsmGeJL83XMt32mya2NqsJtQNWWEovixow7eMAGZK/+E67DZ4gypRf/6txJMbubXO0Toeg9lhsWG6QAPBqs1Q==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tBdDJ-0000jk-Ny for bug-gnu-emacs@gnu.org; Thu, 14 Nov 2024 12:01:01 -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 17:01:01 +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.17316036442790 (code B ref 74339); Thu, 14 Nov 2024 17:01:01 +0000 Original-Received: (at 74339) by debbugs.gnu.org; 14 Nov 2024 17:00:44 +0000 Original-Received: from localhost ([127.0.0.1]:46969 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tBdD2-0000iw-8T for submit@debbugs.gnu.org; Thu, 14 Nov 2024 12:00:44 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:34972) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tBdD0-0000ig-5g for 74339@debbugs.gnu.org; Thu, 14 Nov 2024 12:00:43 -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 1tBdCr-00032k-JT; Thu, 14 Nov 2024 12:00:34 -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=9eAqgWfQpiQ0Dbl9dHYH1wFFyUM+963QASEn8oNWhhc=; b=HlXcuGVNBAtR 02r4mBh0hxQyKnnSmEedkNrnna9Csbu5lWXmJF0Yt6nqnwwO7ZE9gaSVZh06ekPbdxwea2CUVF5ZT zZ18mF4PZqqxmUBMPc+YD35mi1eT8SdA8iEajaSoJeoPd1j7CliG5+g/B/s/7pJr8xKSv4U3YRH8B 1AXlB5UW0L1OQgWRpe7LVA3yyeTLOsDBjkQ9Rs2dSkwwdlAEV/z8GY+QIve4Ng1Bdpss1z5COYNbD +DOgg4l34sb5S333zFd0W/TanIhmnVa/1ByHhX87XJmXwvyHha/RHRX4EWUH2O/2lwDOQzuzsH4XD IJFesk4sEYbZaSGxG0V6jw==; In-Reply-To: (message from Alan Mackenzie on Thu, 14 Nov 2024 16:20:37 +0000) 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:295347 Archived-At: > Date: Thu, 14 Nov 2024 16:20:37 +0000 > Cc: 74339@debbugs.gnu.org, monnier@iro.umontreal.ca, acm@muc.de > From: Alan Mackenzie > > > > I think so, provided there was symmetry between the tree-sitter modes and > > > CC Mode. I would suggest the obvious fix; loading either one of the > > > libraries should append its entries to auto-mode-alist, having removed > > > any "lower down" entries. > > > That's what I suggested. If you agree, let's make that change and > > move on. > > OK. It would seem there is then no need to put entries for > c-mode/c-ts-mode into major-mode-remap-defaults. I don't think this > solution is optimal, though. Perhaps we can come up with something > better for Emacs 31. But let's just go with this "last loaded wins" > strategem for Emacs 30. OK, thanks. So I guess you will soon make that change in cc-mode.el on the release branch?