From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Vincenzo Pupillo Newsgroups: gmane.emacs.bugs Subject: bug#74610: 31.0.50; Submitting mhtml-ts-mode, treesitter alternative to mhtml-mode Date: Fri, 06 Dec 2024 14:39:56 +0100 Message-ID: <2157014.9o76ZdvQCi@3-191.divsi.unimi.it> References: <3532547.LZWGnKmheA@fedora> <22104588.4csPzL39Zc@3-191.divsi.unimi.it> <97c6e669-b9a2-4e1c-b224-227bb65de0fd@gutov.dev> 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="29171"; mail-complaints-to="usenet@ciao.gmane.io" To: 74610@debbugs.gnu.org, Dmitry Gutov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Dec 06 14:42:29 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 1tJYbE-0007SA-Py for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 06 Dec 2024 14:42:28 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tJYau-0003O9-Uo; Fri, 06 Dec 2024 08:42:09 -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 1tJYap-0003Nk-UJ for bug-gnu-emacs@gnu.org; Fri, 06 Dec 2024 08:42:05 -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 1tJYap-0005bs-AC for bug-gnu-emacs@gnu.org; Fri, 06 Dec 2024 08:42:03 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:References:In-Reply-To:Date:From:To:Subject; bh=m23r46S72E2DVABQY+lFe6InucdYHDxQ5oFVNfOaWD4=; b=iOY2KwCut6sYzuKdiAiRuhCC4CMH8lvXwK7FRIeFVddsw59bQ7hewikipstq0wKhYWuaadgT247RSWaWX8Gt/TYZ+RzssLt0SvEL8+7c+89D3iDf5ynlIahhDhTL9nbC+BQxHRNsGxnAV9RUPcJwVNmOfaxP6F56PVOCsox3gE6k6Pe0qzVzR6UwCvrsF9wywhVBdKFKaL2oixom1s4rIo8LISwjcgQYHlkgTclKi2v4cFo2C07uvnrWEbE/LEJHCzFocwdcHbI5SInBN7ZSiw4Zzl9d29uVbWqHqn73gJhOcjJYEqI4uIf7tixAa11hmP6w57k/iXJLjtXWo4jJIQ==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tJYao-0001SI-3M for bug-gnu-emacs@gnu.org; Fri, 06 Dec 2024 08:42:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Vincenzo Pupillo Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 06 Dec 2024 13:42:02 +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.17334924615480 (code B ref 74610); Fri, 06 Dec 2024 13:42:02 +0000 Original-Received: (at 74610) by debbugs.gnu.org; 6 Dec 2024 13:41:01 +0000 Original-Received: from localhost ([127.0.0.1]:42378 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tJYZp-0001Q7-4l for submit@debbugs.gnu.org; Fri, 06 Dec 2024 08:41:01 -0500 Original-Received: from mail-wm1-f43.google.com ([209.85.128.43]:46322) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tJYZn-0001Pz-43 for 74610@debbugs.gnu.org; Fri, 06 Dec 2024 08:40:59 -0500 Original-Received: by mail-wm1-f43.google.com with SMTP id 5b1f17b1804b1-434a0fd9778so20683185e9.0 for <74610@debbugs.gnu.org>; Fri, 06 Dec 2024 05:40:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1733492398; x=1734097198; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=m23r46S72E2DVABQY+lFe6InucdYHDxQ5oFVNfOaWD4=; b=lRTBb9ctFRK45j+wEVsWP2OAZz1mnyNgLaruCCJk+a+Low7vHIGqreU6CmRo20kTa+ s9Gj4s+JYQvOMfKypqdJleUKnUfXo696/OFGRgBzUBfcxvUT4qIgJcs/flhzgp6XPRF8 oSq2/DkxyyIkEUjNx6y6+FFhLLUxdzL6ThX3WB04FZ0EBxrhtLZxkGh1l2uKz9fWEwEY QHSrkr5BT1dUD/UZoeNddb7NJtmKsopfW7O9jIZa74cNJN5U0K7ZODwD2iDTk7G6OaaE YPrbiz8bbE671Dst/kfbU25TCqV717bf8VKVzqqUD7S2wvRciy+1ejvCDr6ApVJeXoqx 9jBA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1733492398; x=1734097198; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=m23r46S72E2DVABQY+lFe6InucdYHDxQ5oFVNfOaWD4=; b=jBoWprEkPsFLhLWk7+Vdg8wwZjboXlBYJeuD/RwKr+xq3CMG29ZNwZFjneptmHiGAJ Xfx83+DmDkSBx0G3XOG6yMwWAv+tbdSKtwrp9VeFKwr8dFqbSgIxqn5WXt+sE8jexsmX wxRvxWbJf3CtMAP1Le1x3rA5N90uA02oBHmwmG7pnKUrk5s1NbP8m4txH9HZERRMhbwl 5kB5IrOjkLRuVA05tM5OcPJzxGmdyhDpY7HX+xUqUEeT6gROmfrj8awpsO0OO1MOqo2P HBROXPkIV6Xb+sRsRJNDLW8TFpKH7XrBKQdQJYlv5iDuILCk8kJJObuPY0NbaI1zKth3 1Vvg== X-Gm-Message-State: AOJu0YzloRkb5WJkLnYSSbt+xOtg9WukhMKtQI2BkDwB6V+lfcYYiLfq omekdiIgyvqZp42seXJOI+uDLFXemYK9TcTFy8prYhQuTjrJqAPKe4EEWQ== X-Gm-Gg: ASbGncugjyVbefRdH1yMX3kJnDa3N4B/l6uW2c4YmtaEhOVulr9CbEeu0ygRtt1J2Jl 0YnZhSoxgRWUdJ1BKqS7yTSPFfCTRQizyWAQxXCykcp62WfepMnFtJJXIjShDm1vqPcwkomeFTV FEPMbMqelxGbm0Jrcu/QAEiy6tzx3ilplKS6rc/8uuu8Rna7ae1nuGwVjZIaIG3SUEUR6431uuV 19oqaUEmY1CfP+HeaFeBKom1MfPHIHqosXl6sJv6m/TVzpIhFHTAKAb9J3+hp5TiLQnVJozFi6Y h8Y= X-Google-Smtp-Source: AGHT+IHK7M3MtbKIGSAXHOACUb8NUjKWtiIkc6v1ko7450bY17Qpg8tyVe5PiT+DVALO9a/nQutWgQ== X-Received: by 2002:a5d:6c6a:0:b0:385:e176:4420 with SMTP id ffacd0b85a97d-3862b33d313mr2374765f8f.10.1733492398091; Fri, 06 Dec 2024 05:39:58 -0800 (PST) Original-Received: from 3-191.divsi.unimi.it (3-191.divsi.unimi.it. [159.149.3.191]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3862229a88asm4524304f8f.106.2024.12.06.05.39.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 06 Dec 2024 05:39:57 -0800 (PST) In-Reply-To: <97c6e669-b9a2-4e1c-b224-227bb65de0fd@gutov.dev> 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:296500 Archived-At: Ciao Dmitry, In data gioved=C3=AC 5 dicembre 2024 17:51:55 Ora standard dell=E2=80=99Eur= opa centrale,=20 Dmitry Gutov ha scritto: > Hi Vincenzo, >=20 > On 04/12/2024 12:47, Vincenzo Pupillo wrote: > >> Do you foresee cases for when html-ts-mode would be preferred by the > >> user instead of this advanced mhtml-ts-mode? > >=20 > > For everyday use mhtml-ts-mode is better, just like mhtml-mode (which h= as > > been the default for html editing for a while now). > >=20 > >> Or maybe the former is > >> better in its current shape when used by e.g. php-ts-mode? > >=20 > > Yes, personally I think that major modes that handle (for tree-sitters) > > only one language are easier to put together at the moment. It's Lego v= s. > > Playmobil. > > We are in an experimental phase, like all other editors. > > See https://github.com/helix-editor/helix/pull/1170#issuecomment-997294= 090 > > In some ways, by having a different approach from other editors, we hav= e a > > greater degree of flexibility IMHO. >=20 > Makes sense, thanks. >=20 > >> 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. > >=20 > > It's something I've thought about but haven't tried yet. > > One of the themes of the email thread (on emacs-devel) was to have a > > simple > > multi language major mode that was also a sort of =E2=80=9Cuser's guide= =2E=E2=80=9D >=20 > I though the updated html-ts-mode could be that mode. Anyway, good to > hear that this alternative had been given consideration. Since the development of Emacs 31 has just started and this major mode is n= ot=20 urgent, I will try some experiments in the next few days to see if html-ts- mode can be modified without compromising the integration with php-ts-mode. Vincenzo