GNU bug report logs - #74339
30.0.92; CC Mode stomps C TS Mode

Previous Next

Package: emacs;

Reported by: Eli Zaretskii <eliz <at> gnu.org>

Date: Wed, 13 Nov 2024 14:02:02 UTC

Severity: normal

Found in version 30.0.92

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Eli Zaretskii <eliz <at> gnu.org>
To: Stefan Monnier <monnier <at> iro.umontreal.ca>
Cc: dmitry <at> gutov.dev, 74339 <at> debbugs.gnu.org
Subject: bug#74339: 30.0.92; CC Mode stomps C TS Mode
Date: Sun, 24 Nov 2024 18:27:47 +0200
> From: Stefan Monnier <monnier <at> iro.umontreal.ca>
> Cc: dmitry <at> gutov.dev,  74339 <at> debbugs.gnu.org
> Date: Sun, 24 Nov 2024 10:37:23 -0500
> 
> > Like the patch below.  Is it okay?
> [...]
> > +(setq major-mode-remap-defaults
> > +      (assq-delete-all 'ruby-mode major-mode-remap-defaults))
> > +
> 
> So, this adds `ruby-mode.el` and `ruby-ts-mode.el` to the list of files
> which break our coding convention that loading a file should not affect
> Emacs's behavior.

No, it doesn't: ruby-ts-mode already did that, due to this change:

  commit 2b5d43081a30f816dd38a16c7b5bfbad712a779b
  Author:     Stefan Monnier <monnier <at> iro.umontreal.ca>
  AuthorDate: Sun Mar 3 23:08:16 2024 -0500
  Commit:     Stefan Monnier <monnier <at> iro.umontreal.ca>
  CommitDate: Sun Mar 3 23:58:18 2024 -0500

> I understand we decided back in Emacs-29 that it was the least bad
> solution to make it easy for users to use the new TS major modes, but
> this was back in Emacs-29.  We should look for ways to remove this kind
> of hack rather than spreading it to more files.

We will do that in Emacs 31, but the change I posted was for Emacs 30,
where we decided to live with that.




This bug report was last modified 252 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.