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#74610: 31.0.50; Submitting mhtml-ts-mode, treesitter alternative to mhtml-mode Date: Wed, 4 Dec 2024 03:27:53 +0200 Message-ID: References: <3532547.LZWGnKmheA@fedora> 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="28702"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla Thunderbird To: Vincenzo Pupillo , 74610@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Dec 04 02:29:31 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 1tIeCm-0007Fp-6b for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 04 Dec 2024 02:29:29 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tIeCO-0006Go-Fn; Tue, 03 Dec 2024 20:29: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 1tIeCM-0006GN-Nn for bug-gnu-emacs@gnu.org; Tue, 03 Dec 2024 20:29:03 -0500 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 1tIeCM-00024F-FF for bug-gnu-emacs@gnu.org; Tue, 03 Dec 2024 20:29:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=In-Reply-To:From:References:MIME-Version:Date:To:Subject; bh=F7ElMP7JgmzBEX/KNO1ZED78gYXAuTgA7RmzW0N9kVI=; b=Z2w4lxn2+PDryLjfkTL++//gK+/GVoihofV80nsyFBeL5dAgy4Pp23lHNOkXE0ExuIeEHU3h5WneIOMtYH0XVF3BwxsTeG7RJST2qahrcpPzM5kdzhPY4nQFYF0jNhWcTQf0Q7YbRYLW//iLWB38SQvTFJY62nK7bxJEskFWH/T7Hx2NqRpJN/7H0FHXdkpsBl2pxZEBe9kktRLF2BTHX2LiCKhZ6rpU5+CDm8LBQf/f532OX/adFys0AP81l2KwUgudyhRTF9xUIVICVfFbTF5nMvpn1KMkxlfDAOT2x5E77yXCqLrMHyrQUPSVOdP2thDRWnFAdJi2s1Zrmd4BsQ==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tIeCL-00085t-Vj for bug-gnu-emacs@gnu.org; Tue, 03 Dec 2024 20:29:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 04 Dec 2024 01:29:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 74610 X-GNU-PR-Package: emacs Original-Received: via spool by 74610-submit@debbugs.gnu.org id=B74610.173327568831028 (code B ref 74610); Wed, 04 Dec 2024 01:29:01 +0000 Original-Received: (at 74610) by debbugs.gnu.org; 4 Dec 2024 01:28:08 +0000 Original-Received: from localhost ([127.0.0.1]:33488 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tIeBT-00084O-Nc for submit@debbugs.gnu.org; Tue, 03 Dec 2024 20:28:08 -0500 Original-Received: from fhigh-b5-smtp.messagingengine.com ([202.12.124.156]:54187) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tIeBR-00083q-Ab for 74610@debbugs.gnu.org; Tue, 03 Dec 2024 20:28:06 -0500 Original-Received: from phl-compute-01.internal (phl-compute-01.phl.internal [10.202.2.41]) by mailfhigh.stl.internal (Postfix) with ESMTP id 46EB32540181; Tue, 3 Dec 2024 20:27:57 -0500 (EST) Original-Received: from phl-mailfrontend-02 ([10.202.2.163]) by phl-compute-01.internal (MEProxy); Tue, 03 Dec 2024 20:27:57 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gutov.dev; h=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=fm3; t=1733275677; x=1733362077; bh=F7ElMP7JgmzBEX/KNO1ZED78gYXAuTgA7RmzW0N9kVI=; b= jo3y+t3AOG4S37alFIhxmg0kiofIMRAWi10RW3/j5G9JVKK3uztv+I+UqCVEx90t CNoyRcMRmA7W5aHKJHegwVJEik5J/AEPv6AlENbGsQyBRhzOKotxvww2F0dB8HNB NJrPGMFR/unFK66/Wq99YnDEKn3npvvr4cYntGN1QbKGHt9VSOzVG0Tn1sJXBPJo xSF9Ks/6qQUmAyNmJCKgVqnnZhbbznZK4PmxiD/BdOXWURoDuvRQobitQoX9Ymym 1kMuGbiuCe6hmr3vgkO64TLKePzInl2FWi4tT5/F4qCbMhK8UTIQZgFZRdeKEI8S Pb/Gyc3sZD3UxIKWHj5F9g== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=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-sender :x-me-sender:x-sasl-enc; s=fm1; t=1733275677; x=1733362077; bh=F 7ElMP7JgmzBEX/KNO1ZED78gYXAuTgA7RmzW0N9kVI=; b=BLBT5yyG4Dj+3qxFQ 8TztqnKxMgLroj2vd27w9wlyuQkzy90Hm+I1AUAPG9IUawSTyumOF3o69IU6ZL7h S3Az8s8LDo5R7o1Ptg8Yqvr7hSCh8vRdUb1xkrG7WPcSslcX72sfKVBLoHIQBUjA A6xj9SFO4URSt3uhCadYhNfLr9aUei66sa6JbtmtZcdxkybBNhWB7EfTT+4MEFIn viRmR8DzxQJOxffERUyFp+nH6ZUN7GzrzQ4c+fPvbTpfiomiT/b2kviAP5eOHn+T jxuEO95slr+Y29Fijy+lhDRzQ1jFoMQLNeUut5fjP4OHBcBWFuJc8N0nYtrrWvhP mHUNA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefuddrieeggdefvdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpggftfghnshhusghstghrihgsvgdpuffr tefokffrpgfnqfghnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnth hsucdlqddutddtmdenucfjughrpefkffggfgfuvfhfhfgjtgfgsehtjeertddtvdejnecu hfhrohhmpeffmhhithhrhicuifhuthhovhcuoegumhhithhrhiesghhuthhovhdruggvvh eqnecuggftrfgrthhtvghrnheptdfhuedvtdevleegueelvedvjeevheffveevhedvueff tdefhfdvueeggfetgfdtnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrg hilhhfrhhomhepughmihhtrhihsehguhhtohhvrdguvghvpdhnsggprhgtphhtthhopedv pdhmohguvgepshhmthhpohhuthdprhgtphhtthhopehvrdhpuhhpihhllhhosehgmhgrih hlrdgtohhmpdhrtghpthhtohepjeegiedutdesuggvsggsuhhgshdrghhnuhdrohhrgh X-ME-Proxy: Feedback-ID: i07de48aa:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 3 Dec 2024 20:27:55 -0500 (EST) Content-Language: en-US In-Reply-To: <3532547.LZWGnKmheA@fedora> 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:296388 Archived-At: On 29/11/2024 23:57, Vincenzo Pupillo wrote: > +;; This package provides `mhtml-ts-mode' which is a major mode > +;; for editing HTML files with embedded JavaScript and CSS. > +;; Tree Sitter is used to parse each of these languages. > +;; > +;; Please note that this package requires `html-ts-mode', which > +;; registers itself as the major mode for editing HTML. Hi! Do you foresee cases for when html-ts-mode would be preferred by the user instead of this advanced mhtml-ts-mode? Or maybe the former is better in its current shape when used by e.g. php-ts-mode? In other words, I'm wondering why not update the existing mode with sub-parsers rather than add a new one. html-mode had such a reason - it's quite old, and has been used in various placed the way it is now (including multi-mode packages). But ts modes don't work too well with multi-mode packages, not currently anyway.