all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Dmitry Gutov <dmitry@gutov.dev>
To: Jeremy Bryant <jb@jeremybryant.net>,
	Roman Rudakov <rrudakov@fastmail.com>,
	Stefan Monnier <monnier@IRO.UMontreal.CA>
Cc: 71992@debbugs.gnu.org
Subject: bug#71992: 30.0.60; major-mode-remap-alist doesn't work for combination js-mode + js-ts-mode
Date: Tue, 9 Jul 2024 02:55:48 +0300	[thread overview]
Message-ID: <5a3e953b-1e24-4ac1-b63d-bd4621331abf@gutov.dev> (raw)
In-Reply-To: <87cynno98x.fsf@jeremybryant.net>

On 09/07/2024 00:37, Jeremy Bryant via Bug reports for GNU Emacs, the 
Swiss army knife of text editors wrote:
> Roman Rudakov<rrudakov@fastmail.com>  writes:
> 
>> 1. Evaluate: (setopt major-mode-remap-alist '((js-mode . js-ts-mode)))
>> 2. C-x C-f ~/tmp.js
>>
>> Expected result:
>>
>> major-mode is js-ts-mode
>>
>> Actual result:
>>
>> major-mode is js-mode
>>
>>
>> In GNU Emacs 30.0.60 (build 1, aarch64-apple-darwin23.5.0, NS
>> appkit-2487.60 Version 14.5 (Build 23F79)) of 2024-07-06 built on
>> Romans-MBP.home
>> Windowing system distributor 'Apple', version 10.3.2487
>> System Description:  macOS 14.5
>>
> FWIW, I've been able to reproduce this bug report in 30.0.60 and 29.4

The reason might be that its auto-mode-alist entry references 
javascript-mode (and js-mode is made an alias in autoloads).





  reply	other threads:[~2024-07-08 23:55 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-07-08  8:13 bug#71992: 30.0.60; major-mode-remap-alist doesn't work for combination js-mode + js-ts-mode Roman Rudakov
2024-07-08 21:37 ` Jeremy Bryant via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-07-08 23:55   ` Dmitry Gutov [this message]
2024-07-09  8:51     ` Roman Rudakov
2024-07-09 20:35       ` Jeremy Bryant via Bug reports for GNU Emacs, the Swiss army knife of text editors

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5a3e953b-1e24-4ac1-b63d-bd4621331abf@gutov.dev \
    --to=dmitry@gutov.dev \
    --cc=71992@debbugs.gnu.org \
    --cc=jb@jeremybryant.net \
    --cc=monnier@IRO.UMontreal.CA \
    --cc=rrudakov@fastmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.