From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Theodor Thornhill via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#59691: 29.0.60; typescript-ts-mode: any HTML-like elements causes fontification to become invalid and remaining parse-tree to become jsx-expression Date: Wed, 30 Nov 2022 19:21:58 +0100 Message-ID: <7BE15945-C463-448A-8593-E3B5D0E374FB@thornhill.no> References: <831qpklejb.fsf@gnu.org> <83mt88jul4.fsf@gnu.org> <0A18F996-F3BB-4A7D-A0BE-76C8374DE517@thornhill.no> <8335a0jofb.fsf@gnu.org> Reply-To: Theodor Thornhill Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="3393"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 59691@debbugs.gnu.org, casouri@gmail.com, jostein@secure.kjonigsen.net, jostein@kjonigsen.net To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Nov 30 19:23:15 2022 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 1p0Rjl-0000e4-Vv for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 30 Nov 2022 19:23:14 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p0Rjc-0006z4-7M; Wed, 30 Nov 2022 13:23:04 -0500 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 1p0Rja-0006yu-Iq for bug-gnu-emacs@gnu.org; Wed, 30 Nov 2022 13:23:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1p0Rja-0002WG-9j for bug-gnu-emacs@gnu.org; Wed, 30 Nov 2022 13:23:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1p0Rja-0001rw-4o for bug-gnu-emacs@gnu.org; Wed, 30 Nov 2022 13:23:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Theodor Thornhill Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 30 Nov 2022 18:23:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 59691 X-GNU-PR-Package: emacs Original-Received: via spool by 59691-submit@debbugs.gnu.org id=B59691.16698325317160 (code B ref 59691); Wed, 30 Nov 2022 18:23:02 +0000 Original-Received: (at 59691) by debbugs.gnu.org; 30 Nov 2022 18:22:11 +0000 Original-Received: from localhost ([127.0.0.1]:34311 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p0Ril-0001rQ-Hr for submit@debbugs.gnu.org; Wed, 30 Nov 2022 13:22:11 -0500 Original-Received: from out2.migadu.com ([188.165.223.204]:18214) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p0Rig-0001rK-0m for 59691@debbugs.gnu.org; Wed, 30 Nov 2022 13:22:09 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=thornhill.no; s=key1; t=1669832525; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=ETvRylCIru+65igjjj5M5dExenVHZ3jCKfaZl85wFYk=; b=k+gmlm4YFMohvmez5jxv8jbR4dTEN/Abp1pWAbOLTbs6SFVKev7tERRNuqaIxCPxP03Bf5 A81XzEXowDrwjhRXytx6tzMVC9fSwFsspRkBgoQpZXu0gTm5zPSAceAnlDuLTsGXYIlSFX +nGZEcPZqc/h4DsfX3KNzuUOWr2/CYU8bshXILoW3Ht0EVtfwnte/YETZ7g82mXj0OTwqM 64I/+/YNHxEZyJamfjl8KlnjNEcvNlNuo1EDEwqvPu2Q+ltFjFHpS+7GLTUdq26lLIvVPT pbBPykjjE/A5kDRYxdyGxU4JO9dc8RBKhWe6L5ai3DCfxfdTZwA3vLsRLU2N9w== X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. In-Reply-To: <8335a0jofb.fsf@gnu.org> 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:249547 Archived-At: On 30 November 2022 19:19:04 CET, Eli Zaretskii wrote: >> Date: Wed, 30 Nov 2022 19:10:04 +0100 >> From: Theodor Thornhill >> CC: casouri@gmail=2Ecom, jostein@secure=2Ekjonigsen=2Enet, 59691@debbug= s=2Egnu=2Eorg, >> jostein@kjonigsen=2Enet >>=20 >> >Our automatic turning-on of major-modes looks at the file-name extensi= on and >> >little else (magic-mode-alist is not useful here)=2E So if a file who= se >> >extension is XYZ can have more than one applicable major-mode, we shou= ld try >> >to do something to turn on the correct mode automatically=2E What can= we do? >>=20 >> We are lucky because the extensions in question are ts, tsx and js=2E S= o we don't need any smartness :) > >And the extensions always say unequivocally what mode to use? Then yes, = we >are lucky, and need just one more major mode (and one more grammar librar= y)=2E I have already made that commit, but it is waiting on the indent style pa= tch :)