From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#60256: 29.0.60; Maybe improve tree sitter default treesit-language-at function Date: Sun, 25 Dec 2022 08:40:35 +0200 Message-ID: <83h6xk3s0s.fsf@gnu.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="23372"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 60256@debbugs.gnu.org, wilhelm@floatpays.co.za To: Yuan Fu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Dec 25 07:41:30 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 1p9KhN-0005uV-T0 for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 25 Dec 2022 07:41:30 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p9Kh1-0004mJ-0y; Sun, 25 Dec 2022 01:41:07 -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 1p9Kgw-0004lv-Ko for bug-gnu-emacs@gnu.org; Sun, 25 Dec 2022 01:41: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 1p9Kgw-0004Mx-CZ for bug-gnu-emacs@gnu.org; Sun, 25 Dec 2022 01:41:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1p9Kgw-0001Wz-8D for bug-gnu-emacs@gnu.org; Sun, 25 Dec 2022 01:41:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 25 Dec 2022 06:41:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 60256 X-GNU-PR-Package: emacs Original-Received: via spool by 60256-submit@debbugs.gnu.org id=B60256.16719504455839 (code B ref 60256); Sun, 25 Dec 2022 06:41:02 +0000 Original-Received: (at 60256) by debbugs.gnu.org; 25 Dec 2022 06:40:45 +0000 Original-Received: from localhost ([127.0.0.1]:47454 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p9Kgf-0001W6-HM for submit@debbugs.gnu.org; Sun, 25 Dec 2022 01:40:45 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:40256) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p9Kgd-0001Vi-L8; Sun, 25 Dec 2022 01:40:44 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p9KgX-0004Kz-FP; Sun, 25 Dec 2022 01:40:37 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=vOJyOGI7PhRGhVELfvMicIDWuZm40n768SRkmrYMZW0=; b=eTXf1CX76bR2SbDAWnR0 vxsti8MYKYJBetqDCLcU6VPYHdsz7CfU2aQC35FpIzowHOgXHZ934LmsP1LlbdGCtXZwHHJZdo5qE iEAChGgR9VBjpde6QpfFzK5uKu8r5q++U3YiKWVXibUXkkZ165JltCh9xEyAlgCbTFWNkg7+QH8HE OaLbjGmLft1Dgn2oj8JRWsqzTto32VFQSnV23FTuMOw6We1/Jq0pbwPLWQslP9nOPXEOC3CgyOd9m X/vl9fRBe7mxsfmTMFJreZvPAso2X3AeUasr1gf4MaoH40ChlawNs4beBQZpNy/KgroPYWXJCb8JF 8uf+6hJCHHVdCA==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p9KgW-0004uI-BT; Sun, 25 Dec 2022 01:40:37 -0500 In-Reply-To: (message from Yuan Fu on Sat, 24 Dec 2022 14:43:18 -0800) 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:251831 Archived-At: tags 60256 wontfix thanks > From: Yuan Fu > Date: Sat, 24 Dec 2022 14:43:18 -0800 > Cc: Wilhelm Hugo Kirschbaum , > 60256@debbugs.gnu.org > > > Yeah, sorry for the delay. I don’t think it’s worth it, because (1) I > expect major modes with multiple langauges to implement > treesit-language-at-point-function which takes care of all the work, and > (2) in the rare case where there are multiple languages and no > treesit-language-at-point-function, using the first language whose range > spans point (this patch) is not necessarily correct: the host language (eg, HTML > among HTML, CSS & JavaScript) always covers the whole buffer, only > embedded languages has ranges. OK, thanks.