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: Fri, 15 Nov 2024 11:12:46 -0500 Message-ID: References: <868qtnfd2d.fsf@gnu.org> <86r07elwoh.fsf@gnu.org> <86h68al2qz.fsf@gnu.org> <8634jtk4gj.fsf@gnu.org> <86y11limbr.fsf@gnu.org> <86serthqrn.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="38525"; 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 Fri Nov 15 17:13:35 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 1tByww-0009p8-3N for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 15 Nov 2024 17:13:34 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tBywT-0001IZ-Iq; Fri, 15 Nov 2024 11:13: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 1tBywR-0001IC-Kj for bug-gnu-emacs@gnu.org; Fri, 15 Nov 2024 11:13: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 1tBywQ-00054t-8J for bug-gnu-emacs@gnu.org; Fri, 15 Nov 2024 11:13:03 -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=+hpwTTaFbLXvRGw7emHlH/9aNX/qv0ulT3F7wWTU4yM=; b=UO44g8lr5cRyIswJ3Xttcz55W1n5lbetcaVdQzDSxUBzQTzMsQcmAXdpS/3E4v5OspMTh28/19hPJ4cIlxVouHhlTj1/58pUhcbji7puUVNmHb3b0aC2mShgGsd/593vtkrttJWQtN2icpsmU3SRpiZccE/XFxhkiCFCgmBryUF7Fk3Chn4igwfom9ytDOLqgnm0dQr/BT8owcz4cKoVXphnsOO75cMHdjIIbrJd5tUv0yit+7JVSzV00GzgYzCJDBKQw7MP8GSTVpVsRnqx9anZkh8rdIdBAs4f7pK6zm3lnSh//tRVr0B6Mu9MzrMmMnrjXTJoGT05IJAbSDthJQ==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tBywP-00042n-QY for bug-gnu-emacs@gnu.org; Fri, 15 Nov 2024 11:13:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 15 Nov 2024 16:13: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.173168717615527 (code B ref 74339); Fri, 15 Nov 2024 16:13:01 +0000 Original-Received: (at 74339) by debbugs.gnu.org; 15 Nov 2024 16:12:56 +0000 Original-Received: from localhost ([127.0.0.1]:50622 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tBywJ-00042N-Qt for submit@debbugs.gnu.org; Fri, 15 Nov 2024 11:12:56 -0500 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:30559) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tBywI-000428-Kh for 74339@debbugs.gnu.org; Fri, 15 Nov 2024 11:12:54 -0500 Original-Received: from pmg3.iro.umontreal.ca (localhost [127.0.0.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 42753444CD8; Fri, 15 Nov 2024 11:12:48 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1731687167; bh=VPFswOZIGoJb2CWs9aHQMgOQzLSfMRuxTiqfSpOIN6o=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=R5M/PTRJ5zZUCcwY6Y6gZMf0N9KABDZN7zUWHnhs4cSif5Fa/Z1OXmdU8WhFDt9kL mO1hKkUSZ5B3xGoF/I8oarJanakn3yFN/MDYAauxk2P4M/AOQCT5yO3NZCxaEPgChg xI8Nqut3CBgI10uXeV6MFKWqIw1SgPpYtjMmlODTbW89ZdIR0fhn2AiafTG0zybCdF N3UeSby5rRxDPLWIuPXPBSojK0OEwZcm0jnWnZ7qm2eb4a7pNQ8a5emWNVtf5v7LUP lA6FEm7u3ClSeaSKcdJD6JYkTSIbkcCjGMS7WgRcUu4yurzt8BC5Gt8stL8jWqfOJu R2NQf8X0EeI8A== Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 5FF34444CD4; Fri, 15 Nov 2024 11:12:47 -0500 (EST) Original-Received: from alfajor (unknown [23.233.149.155]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 3ED8A1202EF; Fri, 15 Nov 2024 11:12:47 -0500 (EST) In-Reply-To: <86serthqrn.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 15 Nov 2024 09:58:52 +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:295398 Archived-At: > This will cause Emacs to visit C files without the cookie in c-mode. > What I meant was an (admittedly somewhat strange) preference to visit > C files without a cookie in c-ts-mode, but files that have a cookie in > the mode called out by the cookie. AFAIU, major-mode-remap-* > variables cannot handle this distinction, at least not currently. No, indeed, they don't help with that. They don't prevent it either, tho: Users can still get that kind of behavior with the "old methods" such as by changing `auto-mode-alist` to map `.c` files to `c-ts-mode`. Stefan