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#64818: 30.0.50; c++-ts-mode highlight does not work Date: Mon, 24 Jul 2023 23:33:16 +0300 Message-ID: References: <83sf9dsewi.fsf@gnu.org> <87ila9sann.fsf@thornhill.no> <834jlts9q0.fsf@gnu.org> <87pm4h5qk2.fsf@thornhill.no> <83wmypqokz.fsf@gnu.org> <9173CE5D-08AE-4BF3-AD37-3B521845F8AC@thornhill.no> <83pm4hqme2.fsf@gnu.org> 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="2928"; 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: 64818@debbugs.gnu.org, dianchengwang@gmail.com To: Eli Zaretskii , Theodor Thornhill , casouri@gmail.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Jul 24 22:34:28 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 1qO2GA-0000SZ-Oz for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 24 Jul 2023 22:34:27 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qO2Fp-0004o4-1u; Mon, 24 Jul 2023 16:34:05 -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 1qO2Fn-0004nk-CP for bug-gnu-emacs@gnu.org; Mon, 24 Jul 2023 16:34:03 -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 1qO2Fn-0001vg-4G for bug-gnu-emacs@gnu.org; Mon, 24 Jul 2023 16:34:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qO2Fm-0005JW-EN for bug-gnu-emacs@gnu.org; Mon, 24 Jul 2023 16:34: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: Mon, 24 Jul 2023 20:34:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 64818 X-GNU-PR-Package: emacs Original-Received: via spool by 64818-submit@debbugs.gnu.org id=B64818.169023081320362 (code B ref 64818); Mon, 24 Jul 2023 20:34:02 +0000 Original-Received: (at 64818) by debbugs.gnu.org; 24 Jul 2023 20:33:33 +0000 Original-Received: from localhost ([127.0.0.1]:44246 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qO2FI-0005IL-Qs for submit@debbugs.gnu.org; Mon, 24 Jul 2023 16:33:33 -0400 Original-Received: from wout2-smtp.messagingengine.com ([64.147.123.25]:39663) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qO2FD-0005Hv-KT for 64818@debbugs.gnu.org; Mon, 24 Jul 2023 16:33:31 -0400 Original-Received: from compute6.internal (compute6.nyi.internal [10.202.2.47]) by mailout.west.internal (Postfix) with ESMTP id ACBAD3200951; Mon, 24 Jul 2023 16:33:21 -0400 (EDT) Original-Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Mon, 24 Jul 2023 16:33:22 -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=fm2; t= 1690230801; x=1690317201; bh=7Ar3ULqrEKL/doF+AFHq+U3UCfgkfkiouQC NhQNQ2XM=; b=kdVEaNeg3c5wavMLtnygdNrEXoiAtegbg2Buvzqy6nSnTv/4d2K kT501pMjTn34IT/4TQ/vMNDHtcnOiDNSbCD5b5Opdq3+bxvRNooPTTR8e5LBdkUV PVs08UQVJa443LMJquBOpwj+g/hpdxnDycB2+29R+dHFTbQ/ljQzdlxjM5qmpinb BVjaQdgmVRAynSupmOk/aVN0rqLnHahJI2OL77R8yzDBsPZbiKxUq5rtPjb0rq6a 5o+JAHMLIxMZAaRTPlxzv6Yzs6YIBR+PFDtYH7fW8btAqsCS9yojRPVcwYaRTjig K1dmPLsfc9AJC2wg+KW8RrqJt98CRFfi1kA== 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= 1690230801; x=1690317201; bh=7Ar3ULqrEKL/doF+AFHq+U3UCfgkfkiouQC NhQNQ2XM=; b=VsVoGpLkKdjktWwu3SHKWccx30S8kykB3eaJKGME1oJ4Vyrq5Oq upKerJTuchzaSg/G1kNWedQ+pzBBiY3J2gFFigQKhdztPvXWLc2HCAPwDQa6zrHz 3NrVxXGiFmDjppelkwP0M2WIUxinqFvjvILhueJ68iXRegCGUCfdxqjo79ctN3/N Ls1xWDqgw2msiURg0osgRxjVe/qeCXB8/nNyYzdxgV84eYssRajzLodAxgWwBreQ 6xBuj8NlenmmuqDjBt2ASfE9mTJQuJIgq60cP6MjGFJnee9tQR4CTPPJr8f7HWCG W4kUGXdjdqx7btkZSVXKV4lpVmqk61K4rfA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedviedrheekgddugeekucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepkfffgggfuffvvehfhfgjtgfgsehtjeertddtfeejnecuhfhrohhmpeffmhhi thhrhicuifhuthhovhcuoegumhhithhrhiesghhuthhovhdruggvvheqnecuggftrfgrth htvghrnhephffhleeifffgveevudeugfeifeeuffevgfeutdeitefhiefgtedvheeuvedv vdefnecuffhomhgrihhnpehgihhthhhusgdrtghomhenucevlhhushhtvghrufhiiigvpe dtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegumhhithhrhiesghhuthhovhdruggvvh X-ME-Proxy: Feedback-ID: i0e71465a:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 24 Jul 2023 16:33:18 -0400 (EDT) Content-Language: en-US In-Reply-To: <83pm4hqme2.fsf@gnu.org> 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:266003 Archived-At: On 24/07/2023 19:56, Eli Zaretskii wrote: >>> More generally, I'm a bit worried by such incompatible changes in the >>> grammar libraries. The developers must understand that they break >>> users of tree-sitter, right? So why are they making such incompatible >>> changes? And how do other editors cope with such changes, for example >>> this one? >> An example from nvim-treesitter:https://github.com/nvim-treesitter/nvim-treesitter/commit/823e67a1c9452075ec7f01e7aa05ac6e7b41fb1e >> >> It seems most, if not all implementations use some sort of lockfile, where commits are frozen according to the current support. The consensus seems to be to do what I proposed some mails ago: show the last known commit the current file supports, and enable that one to be installed automatically. > I'm not sure how we would maintain this data. Emacs is a large > project, and people come and go at will and without further notice. > We don't have people who will reliably track the development of the > grammar libraries and record the commits somewhere. We'd basically > need this when a release is being tarred, and for that it should be > recorded somewhere in advance. > I'm guessing this info will have be tracked by the maintainers of the respective ts major modes. The same people who have to be aware of what grammar nodes are available anyway, know about the changes in the grammar, and etc.