bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#74339: 30.0.92; CC Mode stomps C TS Mode


From: Christopher Dimech
Subject: bug#74339: 30.0.92; CC Mode stomps C TS Mode
Date: Sun, 24 Nov 2024 17:01:25 +0100



> Sent: Monday, November 25, 2024 at 3:37 AM
> From: "Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of 
> text editors" <bug-gnu-emacs@gnu.org>
> To: "Eli Zaretskii" <eliz@gnu.org>
> Cc: dmitry@gutov.dev, 74339@debbugs.gnu.org
> Subject: bug#74339: 30.0.92; CC Mode stomps C TS Mode
>
> > 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.
>
> 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.
> - Stefan

Temporary solutions, such as hacks, must be explicitly marked as such
and accompanied by plans for their eventual removal. Failure to do so
perpetuates confusion among Elisp developers regarding the appropriate
structures to use.






reply via email to

[Prev in Thread] Current Thread [Next in Thread]