From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Dmitry Gutov 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, 9 Jul 2024 02:55:48 +0300 Message-ID: <5a3e953b-1e24-4ac1-b63d-bd4621331abf@gutov.dev> References: <87cynno98x.fsf@jeremybryant.net> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="7052"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla Thunderbird Cc: 71992@debbugs.gnu.org To: Jeremy Bryant , Roman Rudakov , Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Jul 09 01:57:12 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 1sQyEI-0001e6-Ms for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 09 Jul 2024 01:57:11 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sQyE6-0003va-AW; Mon, 08 Jul 2024 19:56:58 -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 1sQyE5-0003vQ-BE for bug-gnu-emacs@gnu.org; Mon, 08 Jul 2024 19:56:57 -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 1sQyE5-0000Nc-2d for bug-gnu-emacs@gnu.org; Mon, 08 Jul 2024 19:56:57 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sQyE9-0007AQ-VK for bug-gnu-emacs@gnu.org; Mon, 08 Jul 2024 19:57:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 08 Jul 2024 23:57:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 71992 X-GNU-PR-Package: emacs Original-Received: via spool by 71992-submit@debbugs.gnu.org id=B71992.172048296627485 (code B ref 71992); Mon, 08 Jul 2024 23:57:01 +0000 Original-Received: (at 71992) by debbugs.gnu.org; 8 Jul 2024 23:56:06 +0000 Original-Received: from localhost ([127.0.0.1]:51710 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sQyDF-00079F-PP for submit@debbugs.gnu.org; Mon, 08 Jul 2024 19:56:06 -0400 Original-Received: from fhigh4-smtp.messagingengine.com ([103.168.172.155]:45243) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sQyDD-00078h-Dq for 71992@debbugs.gnu.org; Mon, 08 Jul 2024 19:56:04 -0400 Original-Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailfhigh.nyi.internal (Postfix) with ESMTP id B466B11411C5; Mon, 8 Jul 2024 19:55:52 -0400 (EDT) Original-Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Mon, 08 Jul 2024 19:55:52 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gutov.dev; h=cc :cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm1; t=1720482952; x=1720569352; bh=l0mzCOvdl+9TmP6YzNuaMMmnnarP5q7akH6D/d2gJzQ=; b= mALwKYo8yFad991qHVnZxC7jZIFeLLsQM0LQcS9j+iG4GchaBD3pFjiZrRzFqndC GwtH+kqqiAC8DHIWs5TmDgNnWjrEWN570r5K8a2uV3YhaNXm4I9kNSDr66TcF9ZE s9QDKPOGLZulSpEfAq23tLqVUncRie227KD6h3ePr7KXDz6FPet9FQ+q8s5wBiS/ 5/YnTQ7wlqHC16irgkpUPArt7IsAcxUdzV32y4uubWiyYJzzIbJczEXNPan4Fan9 h0kXNdkzCj7eQEW9Xj6QvHQDuEo80AApuW1xMXjBBHaqvq1yecIHn13t89D3s80c rHFCcRPvH9k/zKyafaBGIA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t=1720482952; x= 1720569352; bh=l0mzCOvdl+9TmP6YzNuaMMmnnarP5q7akH6D/d2gJzQ=; b=C 3U2wVHQ8oADE4YyB0Ji8fo3DfYEHohm9+CepAuq5Fu6ZPtpb99E70+4ylgzFsFsK C5AbyHa6YcteK5/OiDUnT8AWCJF3vyG9cMtmNefaRA54euLVH52fZ2Wng1z3Zrn5 AQ7KZ70slhIRt7dauN7sOGh2cN/Mp/e75Y5j2SWjyu4jKVGj2zKACSM2w/jfEaos tlTeDHYMANrMW0LfDcfYbT1m2j1ZRL6MJ/cHEDJQRAs+eM0j7RLmat4XRuV+Jnzx jM/66jIiOBeGKGie3tqb+pDnWJ/rEqPn4BoQgBfwngNxrvR0uwT3LfILPX4Fpoms fG74w6lGN+ndyx5d4gFNA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeftddrvdekgddvkecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefkffggfgfuvfevfhfhjggtgfesthejredttddvjeenucfhrhhomhepffhmihht rhihucfiuhhtohhvuceoughmihhtrhihsehguhhtohhvrdguvghvqeenucggtffrrghtth gvrhhnpeetudeljeegheetgfehgeejkeeuhedvveeikeeufedtvddtveefhfdvveegudej heenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegumh hithhrhiesghhuthhovhdruggvvh X-ME-Proxy: Feedback-ID: i0e71465a:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 8 Jul 2024 19:55:50 -0400 (EDT) Content-Language: en-US In-Reply-To: <87cynno98x.fsf@jeremybryant.net> 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:288609 Archived-At: 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).