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#26217: bug#2910: 23.0.60; Shell-script coloring bug Date: Sat, 14 Oct 2023 19:43:00 +0300 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="31852"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Cc: Martin Vath , 26217@debbugs.gnu.org To: Stefan Monnier , Mauro Aranda Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Oct 14 18:43:56 2023 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 1qrhk3-00085k-CB for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 14 Oct 2023 18:43:56 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qrhjo-0001Ov-4m; Sat, 14 Oct 2023 12:43:40 -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 1qrhjm-0001OZ-R5 for bug-gnu-emacs@gnu.org; Sat, 14 Oct 2023 12:43:38 -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 1qrhjm-0008Ie-Iq for bug-gnu-emacs@gnu.org; Sat, 14 Oct 2023 12:43:38 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qrhkA-0001mF-2v for bug-gnu-emacs@gnu.org; Sat, 14 Oct 2023 12:44:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 14 Oct 2023 16:44:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 26217 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: confirmed patch Original-Received: via spool by 26217-submit@debbugs.gnu.org id=B26217.16973018166786 (code B ref 26217); Sat, 14 Oct 2023 16:44:02 +0000 Original-Received: (at 26217) by debbugs.gnu.org; 14 Oct 2023 16:43:36 +0000 Original-Received: from localhost ([127.0.0.1]:50279 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qrhjk-0001lN-7A for submit@debbugs.gnu.org; Sat, 14 Oct 2023 12:43:36 -0400 Original-Received: from out2-smtp.messagingengine.com ([66.111.4.26]:58279) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qrhjh-0001l9-DM for 26217@debbugs.gnu.org; Sat, 14 Oct 2023 12:43:34 -0400 Original-Received: from compute7.internal (compute7.nyi.internal [10.202.2.48]) by mailout.nyi.internal (Postfix) with ESMTP id 323785C0203; Sat, 14 Oct 2023 12:43:04 -0400 (EDT) Original-Received: from mailfrontend2 ([10.202.2.163]) by compute7.internal (MEProxy); Sat, 14 Oct 2023 12:43:04 -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:sender:subject:subject:to:to; s=fm1; t= 1697301784; x=1697388184; bh=GsebXVrDfxZr41f3zEmNJbRHaJrtA9fcrMX hYer2lg8=; b=R7pK6xahAt4BHj4sh0hrl3dxY9V9vAx6m0noF9Hcw5B59rVKq6j +urHHHwMwdbSahhs5zn691xe7GK0FnWOZHPVnztcOyv2u5gXwYlkr1cMKjGKOfk8 GVmufvWULoU8Kd5rMKtz0BIxqV0g2gS1XZR2Cfz2/QKSC/MlOpqiRkuNtdQVxfYx c8+y9Guo5MEdiuQpwJBTwnrusy6m/W6q+OkRhqk63BAXslwAYkTT+sB6Zfcvv3o9 0WXSmO4fp7AYUEJ0DMldJLm4s2QBx1ADRiLFQOfrSSHh8t0QirapH9Ee8b4ANGIa FMr0kzqPTUqlf+fZBgkFP0gy3j6TnPQ+Jvg== 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:sender:subject:subject:to:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t= 1697301784; x=1697388184; bh=GsebXVrDfxZr41f3zEmNJbRHaJrtA9fcrMX hYer2lg8=; b=Y11TNS08H6+uV1DO4XQXsDRu3+pHw82VxBAYjyVAejPgdPxJM0M 4mNqKx1eU+hQ2t8RYW/hsxdve7QadTeCP6BJWo8dt0ffLkhHyEnR2/cK9Wuw06kd h95TcxlkgZ88S5QyCpwlHhWV0lJdIkwJrDeBHaVL6h8UyO09EOJqKrro4O45BZAw R6Srcb1E9jWoSdkBs6dhGmdda0JlWBEF/0waENxaRUNAv5wMpNZdboYWqvzMZeBG +TtO7mmhi62EqXMqwowbNe2d0JetSMgqk6vOlRSx6tuFrsNNzpoYda1RBAfOME98 sKQYInkYTFoDzlAJMtOmER3Old5LxTWKMGg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrieehgddutdefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepkfffgggfuffvvehfhfgjtgfgsehtkeertddtfeejnecuhfhrohhmpeffmhhi thhrhicuifhuthhovhcuoegumhhithhrhiesghhuthhovhdruggvvheqnecuggftrfgrth htvghrnhepueekueethedvveffgeeiffdtkeffhfefiefftdeigfelleeufffhhefhhedu geeinecuffhomhgrihhnpegtohguvghmihhrrhhorhdrnhgvthenucevlhhushhtvghruf hiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegumhhithhrhiesghhuthhovhdr uggvvh X-ME-Proxy: Feedback-ID: i0e71465a:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sat, 14 Oct 2023 12:43:02 -0400 (EDT) Content-Language: en-US In-Reply-To: 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:272441 Archived-At: On 13/10/2023 19:06, Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors wrote: >> I don't know what's the decision (if there is one) about situations like >> these.  If the bugs in lang-mode are fixed by lang-ts-mode, will these >> bug reports be treated as: wontfix? fixed? open in case someone wants to >> spend time in lang-mode? > > AFAIK we don't consider the `foo-ts-mode` to obsolete the other modes. > Maybe we will, but we don't yet. IMO I think we'd first need to have > a good long-term strategy about what we'll do when tree-sitter becomes > unmaintained/obsolete. IOW I think we need to develop our own layer of > abstraction above tree-sitter so that we can accommodate other > parser backends. > > FWIW, it's not clear at all what such a layer would look like, so we're > pretty far from it. I'd welcome people start thinking about it, maybe > by looking at existing alternatives like our own `wisi` (in GNU ELPA), > SMIE, maybe LSP (assuming there are servers out there which can provide > that kind of functionality), etc... I don't know how feasible that would be, given that the ts major modes we write have to reference fairly low level concerns (such as node names, different across all grammars). Maybe porting Lezer (https://lezer.codemirror.net/) could become a replacement in such a scenario, but then we're back to maintaining our own grammars again, and with lower performance by an order of a magnitude.