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: Thu, 14 Nov 2024 15:58:49 -0500 Message-ID: References: <868qtnfd2d.fsf@gnu.org> <86r07elwoh.fsf@gnu.org> <86h68al2qz.fsf@gnu.org> <8634jtk4gj.fsf@gnu.org> <86y11limbr.fsf@gnu.org> Reply-To: Stefan Monnier Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="36819"; 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 Thu Nov 14 21:59:39 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 1tBgwE-0009RK-8T for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 14 Nov 2024 21:59:38 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tBgw1-0007R9-NY; Thu, 14 Nov 2024 15:59:26 -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 1tBgvf-0007NO-4g for bug-gnu-emacs@gnu.org; Thu, 14 Nov 2024 15:59: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 1tBgve-0007Uw-OF for bug-gnu-emacs@gnu.org; Thu, 14 Nov 2024 15:59:02 -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=4bo+FXntMtP60Q8FA/caYpV4KZATUMyOysbmF9Agod4=; b=gegmZ3uCl1CfgZw45nMFtp44AaVGNit7Izbhx0kchd8/dpKnqGQ37fH5klDRjmbs+jAeZEmZXCqlLRuhHDanpiO2xXuH+ypfe2aFVQUKHpVBdoYdViB3I/mW5srpx06PozoMues3AhvEGtBvyj70pGGHu4uPUnmLa8BLzLLWS8BsFPjqex5MKA+a1ihHGQNwLPRL+LgLBPqvrI5yNsm3lNl5NI9MQNm1mzqxUSIn5lv5MUijPW6sq9jfy+G2j2+1CDf6C4yhB6qJEaG3eBXGdk8Laa0lAwPnqsx0U0NR9tt8SHFPTliV7fXclr5qdvDbmMZaou32WPdrttG0zWn6JQ==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tBgve-0003W9-5U for bug-gnu-emacs@gnu.org; Thu, 14 Nov 2024 15:59: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: Thu, 14 Nov 2024 20:59: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.173161794013512 (code B ref 74339); Thu, 14 Nov 2024 20:59:02 +0000 Original-Received: (at 74339) by debbugs.gnu.org; 14 Nov 2024 20:59:00 +0000 Original-Received: from localhost ([127.0.0.1]:47458 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tBgvb-0003Vs-Ix for submit@debbugs.gnu.org; Thu, 14 Nov 2024 15:58:59 -0500 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:61492) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tBgvZ-0003Vf-Tm for 74339@debbugs.gnu.org; Thu, 14 Nov 2024 15:58:58 -0500 Original-Received: from pmg3.iro.umontreal.ca (localhost [127.0.0.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 7239F444BC3; Thu, 14 Nov 2024 15:58:51 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1731617930; bh=ykpFybLbIe3qfx6W0na8Rj8nO8vax8EsejjB1XSKBeQ=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=UNRhmrQFevK6k4BH1zC4hh/QpkAGnSMOqh7YFQPic8bPMh4b77b5GnRqBcHtm5MjZ /+/nhR733F/33P1Aoyqyud6Sn0ecIBx641rPNsBIO76n73OTmvStTTpjRBUQ84IfRz mEGCQSsfAwyvScNttJOGdGA3RA6O5KDXQtaVkoechOZKXx7c9/l514tQbOGOnWwKYP iolbyWO3JrzBEgJq1uCcRaWZyWXwV7nJE+R0kc/S/rmDL6Gyi0VDnEwcmv1xfDcQWU RZ7Ch/Y5rqTJVMAoIkwzqi1B+d52TjSCj3NI+Jr3Buv3DgHp3HCeanSp44l2bHCxYG VBBV1b24QbxPQ== Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 7065D444BBE; Thu, 14 Nov 2024 15:58:50 -0500 (EST) Original-Received: from alfajor (unknown [23.233.149.155]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 4D5DA120494; Thu, 14 Nov 2024 15:58:50 -0500 (EST) In-Reply-To: <86y11limbr.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 14 Nov 2024 22:37:12 +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:295368 Archived-At: >> >> Not quite: `auto-mode-alist` should always map `.c` files to `c-mode`. >> > Why "always"? >> >> Because the preference between `c-mode` and `c-ts-mode` should apply not >> only to those files whose mode is decided by `auto-mode-alist` but also >> to those where this is decided via other means such as via a file-local >> `mode` setting, or via `magic-mode-alist`, or ... > > You assume that people will always want to remap all of those to the > same mode? Not always but in the vast majority of cases, yes. > And that no one will ever want to have, say, files with the -*- c -*- > cookie to use c-mode and nothing else? Some might, even if the > majority won't. Those few who want that can still get it: just config `major-mode-remap-alist` to remap `c-mode` to `c-mode` (or to nil), and then things work as if `major-mode-remap-*` didn't exist: `-*- c -*-` will mean to use CC-mode's `c-mode` and `-*- c-ts -*-` will use `c-ts-mode`. Stefan