From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jeremy Bryant via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#71992: 30.0.60; major-mode-remap-alist doesn't work for combination js-mode + js-ts-mode Date: Tue, 09 Jul 2024 21:35:41 +0100 Message-ID: <87y16amhgi.fsf@jeremybryant.net> References: <87cynno98x.fsf@jeremybryant.net> <5a3e953b-1e24-4ac1-b63d-bd4621331abf@gutov.dev> Reply-To: Jeremy Bryant Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13649"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Dmitry Gutov , Stefan Monnier , 71992-close@debbugs.gnu.org, 71992@debbugs.gnu.org To: Roman Rudakov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Jul 09 22:37:34 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 1sRHaf-0003KH-W8 for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 09 Jul 2024 22:37:34 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sRHa8-0005Cb-UO; Tue, 09 Jul 2024 16:37:00 -0400 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 1sRHa5-0005Bz-UN for bug-gnu-emacs@gnu.org; Tue, 09 Jul 2024 16:36:58 -0400 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 1sRHa5-00021x-DA for bug-gnu-emacs@gnu.org; Tue, 09 Jul 2024 16:36:57 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sRHaA-0005qR-JE for bug-gnu-emacs@gnu.org; Tue, 09 Jul 2024 16:37:02 -0400 Resent-From: Jeremy Bryant Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Tue, 09 Jul 2024 20:37:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 71992 X-GNU-PR-Package: emacs Mail-Followup-To: 71992@debbugs.gnu.org, jb@jeremybryant.net, rrudakov@fastmail.com Original-Received: via spool by 71992-done@debbugs.gnu.org id=D71992.172055739222417 (code D ref 71992); Tue, 09 Jul 2024 20:37:02 +0000 Original-Received: (at 71992-close) by debbugs.gnu.org; 9 Jul 2024 20:36:32 +0000 Original-Received: from localhost ([127.0.0.1]:54208 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sRHZf-0005pU-PP for submit@debbugs.gnu.org; Tue, 09 Jul 2024 16:36:32 -0400 Original-Received: from out-174.mta0.migadu.com ([91.218.175.174]:18371) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sRHZa-0005p1-PS for 71992-close@debbugs.gnu.org; Tue, 09 Jul 2024 16:36:29 -0400 X-Envelope-To: 71992-close@debbugs.gnu.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jeremybryant.net; s=key1; t=1720557344; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=lKF2NbKwRGdkT/Mzuxi9854472N/x3//iFBqrwgLA0Y=; b=kbf4YKIFQf/Y7R6UUsqCuPmF+dl6mzhxHXFiQfHKdjPiXe5ThIFbAUkIzGfpzb4A0nG3UK rfzSEN2VGgyypUvZIZ/3IqBAYBKamEx/iYECGB/VLTxyfd0u2URyD0JYw5kfNvlOazue3H SOMvl9ZoV7UQqDO6o0mQjOnx+K/x6D9d4Vs6TB382eDXTFd8gDqgXGaA5rV96G7MFWDZMP q001U34reTU6J6SJCv6xZ9C+ZoOByj6GEuRzhG56jxxLhm/uLiC905sG6kwRbCY899kY0j LttvbQMyAze9mQrLy8nwaKY/02EHNKnj02rB5ZPs7bih6AUSN2ljmy1cv91xLA== X-Envelope-To: 71992@debbugs.gnu.org X-Envelope-To: monnier@iro.umontreal.ca X-Envelope-To: dmitry@gutov.dev X-Envelope-To: rrudakov@fastmail.com X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. In-Reply-To: (Roman Rudakov's message of "Tue, 09 Jul 2024 10:51:43 +0200") X-Migadu-Flow: FLOW_OUT 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:288654 Archived-At: Roman Rudakov writes: > Dmitry Gutov writes: > >> On 09/07/2024 00:37, Jeremy Bryant via Bug reports for GNU Emacs, >> the >> Swiss army knife of text editors wrote: >>> Roman Rudakov 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). > > Indeed, adding (javascript-mode . js-ts-mode) entry to > major-mode-remap-alist solves the problem. Thanks Dmitry On that basis I'm closing the bug.