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: Sat, 16 Nov 2024 11:52:53 +0200 Message-ID: <86zflzh5e2.fsf@gnu.org> References: <861pzdk4aq.fsf@gnu.org> <86zfm1in2p.fsf@gnu.org> <86wmh5hrya.fsf@gnu.org> <86cyiwimlr.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="23226"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 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 Sat Nov 16 10:54:25 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 1tCFVZ-0005vA-Hx for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 16 Nov 2024 10:54:25 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tCFVG-0002Z7-76; Sat, 16 Nov 2024 04:54:06 -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 1tCFVD-0002Yy-TB for bug-gnu-emacs@gnu.org; Sat, 16 Nov 2024 04:54: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 1tCFVD-0008N1-KO for bug-gnu-emacs@gnu.org; Sat, 16 Nov 2024 04:54:03 -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=BB4EepOWzvQvuENzBgNaoCdV9itaUlzUYZbPMSNsm24=; b=pGgNllYJV3UhgVN2BiuoGX7UQIt0U4OAW633An/YGsMbAbtd0qdLOC6I4iZTQfc8etB1dnuTI+QfEAush9wfyxSnr9J1bzCC0C8s2EX09JKBcUvi6Pss5ezlDTMs69k0Ibmdm7U0mSbg9ZeI9WHIwkSqCALzATtOhdxqZdJ85giNwsPem/4nuHWDPp5pv80GnqnmmLinkCUZGjHHQrizucKn85hkDkaVlTBsljzx9hdaTWXpHT4VAgTOHiGfJp0gtDYmenWPqr5DOUxvtVplzWE2bbNj7texmqjGakzF6f38Yb2fxQBkxdCRRpIsZQRk8jLJ8Bt/eBmHbmNPeSeaOQ==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tCFVC-0001Ba-FG for bug-gnu-emacs@gnu.org; Sat, 16 Nov 2024 04:54: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: Sat, 16 Nov 2024 09:54: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.17317507864470 (code B ref 74339); Sat, 16 Nov 2024 09:54:02 +0000 Original-Received: (at 74339) by debbugs.gnu.org; 16 Nov 2024 09:53:06 +0000 Original-Received: from localhost ([127.0.0.1]:52146 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tCFUH-0001A1-Sc for submit@debbugs.gnu.org; Sat, 16 Nov 2024 04:53:06 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:37876) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tCFUF-00019U-Jt for 74339@debbugs.gnu.org; Sat, 16 Nov 2024 04:53: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 1tCFU9-0007ty-3o; Sat, 16 Nov 2024 04:52:57 -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=BB4EepOWzvQvuENzBgNaoCdV9itaUlzUYZbPMSNsm24=; b=mPQzNUbZV487 uodtgT79UdHoskD6OSLgiZlYZDRD+UUVQaNO77wPvPfLr/hRBZ4tv+VeijN5tPMQLVIGulAqak9vY LCYt3Ny24azpzW7GBL7ga8v712oHxs0WRVdjuj6estPpq0z9FSgw4lVyHjx+c3qBIPzXxDnlu/Wro zvP4XlYtYPAy6+UT+Yf0keFi2ZDb1Axp7zblBVEx4hb6cVZvGQ5oA9Nd9ufpDIJBGbjHktgapUFGo uev8CJ3xpRRZgm9hjqcu2TT43tO3Oibzt5fKmv1heoSXDVSS/1H4ZqugeOGas/tWl3np/BN/0ZCgc 8J5UsEM/JKY5YBLWiJFVJA==; In-Reply-To: (message from Alan Mackenzie on Fri, 15 Nov 2024 19:46:03 +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:295440 Archived-At: > Date: Fri, 15 Nov 2024 19:46:03 +0000 > Cc: Eli Zaretskii , 74339@debbugs.gnu.org, acm@muc.de > From: Alan Mackenzie > > So, for a user trying out Emacs 30, with a desktop file containing at > least one file with major mode c-ts-mode; visiting a file with the above > Local Variables section will indeed start the buffer with C Mode? No, it will turn on the mode specified in the desktop file. And it is not necessarily wrong: desktop.el restores the session as it was before Emacs was shut down, so using the same major mode might be exactly what the user expect. (It could also be against user expectations, which is why I think we need a user option to let users control what desktop.el does in this case.) > I haven't looked just yet, but can I assume there's a recipe in the > Emacs 30 NEWS file telling users how to switch between old behaviour > (-*- c -*- always means C mode) and new behaviour (-*- c -*- can mean > c-ts-mode depending on other settings)? There is now. > Is the default to keep the old behaviour, as is customary with new > features in Emacs? Yes, as long as c-ts-mode was not loaded. People who don't want to depend on remapping caused by loading features or packages should customize major-mode-remap-alist to express their preferences.