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

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

bug#60526: 29.0.60; javascript-mode → js-mode


From: Juri Linkov
Subject: bug#60526: 29.0.60; javascript-mode → js-mode
Date: Wed, 04 Jan 2023 09:45:44 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/30.0.50 (x86_64-pc-linux-gnu)

>>> -     ("\\.js[mx]?\\'" . javascript-mode)
>>> +     ("\\.js[mx]?\\'" . js-mode)
>>>      ;; https://en.wikipedia.org/wiki/.har
>>> -     ("\\.har\\'" . javascript-mode)
>>> +     ("\\.har\\'" . js-mode)
>>>      ("\\.json\\'" . js-json-mode)
>>>      ("\\.[ds]?va?h?\\'" . verilog-mode)
>>>      ("\\.by\\'" . bovine-grammar-mode)
>>
>> This is basically a no-brainer, but we had javascript-mode there for
>> quite some time, and it's too late to change that for Emacs 29.
>> Please install on master.
>
> I thought auto-mode-alist should use the canonical name and
> major-mode-remap-alist maps the canonical name to the actual mode.

But the canonical name is js-mode, because javascript-mode is
an alias to js-mode.

> Why do we need
>
>>> (add-to-list 'major-mode-remap-alist '(js-mode . js-ts-mode))
>
> if auto-mode-alist uses javascript-mode?

This is needed for the case when users or packages customized
auto-mode-alist to use the name js-mode.





reply via email to

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