From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#75198: 31.0.50; [treesitter] peculiar error Date: Mon, 30 Dec 2024 19:54:55 +0200 Organization: LINKOV.NET Message-ID: <87h66l6opc.fsf@mail.linkov.net> References: <87y0zxmgeu.fsf@akurth.de> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="29817"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/31.0.50 (x86_64-pc-linux-gnu) Cc: germanp82@hotmail.com, 75198@debbugs.gnu.org, Yuan Fu To: Andreas Kurth Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Dec 30 18:57:08 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 1tSK0p-0007dS-Qj for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 30 Dec 2024 18:57:08 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tSK0n-0005El-CT; Mon, 30 Dec 2024 12:57:05 -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 1tSK0k-0005Bn-OU for bug-gnu-emacs@gnu.org; Mon, 30 Dec 2024 12:57:02 -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 1tSK0k-0000Tw-GQ for bug-gnu-emacs@gnu.org; Mon, 30 Dec 2024 12:57:02 -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:Date:References:In-Reply-To:From:To:Subject; bh=7oXdo+QiR1j0V+LiSVk31o1iq51haKEbK3tZJvyWH/Q=; b=NNza4cSfuZyTzcWnhf+VR9UTjrWRaHzxTi6ZdJ7s10MSFl6GEOwR12a8ZfnWeINiEyYZuoA+s92XLxwedUiuOtjHwioAnO0DQ2PRignvymaaYMgTZtkoxhamFs+4mSKxrGN2KMhnLGRJiDd9LUWVODMR8l8+8JXRroIN+rnGFJ39GCpEMAGFw1tYt4N4KLl8taKSTmG1fhvMI2+flkGCfvHbTGSidPYSbGFQMcP9go+aS9tjViM0xp2x7PbI6O7+pEdwQ9e+8ZGbosvQCTCXMsBqfgZiMsh+4NvV8iPC1vUVXcNtNcv0iV799wWocW5iy1zAYJIV61+ccT6aZxvTkg==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tSK0k-0006n5-9Q for bug-gnu-emacs@gnu.org; Mon, 30 Dec 2024 12:57:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 30 Dec 2024 17:57:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 75198 X-GNU-PR-Package: emacs Original-Received: via spool by 75198-submit@debbugs.gnu.org id=B75198.173558138926052 (code B ref 75198); Mon, 30 Dec 2024 17:57:02 +0000 Original-Received: (at 75198) by debbugs.gnu.org; 30 Dec 2024 17:56:29 +0000 Original-Received: from localhost ([127.0.0.1]:59830 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tSK0D-0006m6-8o for submit@debbugs.gnu.org; Mon, 30 Dec 2024 12:56:29 -0500 Original-Received: from relay7-d.mail.gandi.net ([217.70.183.200]:40059) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tSK0A-0006ln-OJ; Mon, 30 Dec 2024 12:56:27 -0500 Original-Received: by mail.gandi.net (Postfix) with ESMTPSA id DDAB820003; Mon, 30 Dec 2024 17:56:16 +0000 (UTC) In-Reply-To: <87y0zxmgeu.fsf@akurth.de> (Andreas Kurth's message of "Mon, 30 Dec 2024 14:47:21 +0100") X-GND-Sasl: juri@linkov.net 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:298012 Archived-At: close 75198 31.0.50 thanks >> M-x bash-ts-mode >> Move cursor >> >> peculiar error: ("Cannot find the definition of the predicate in >> `treesit-thing-settings'" sexp-list) >> >> Emacs becomes pretty much unusable after that. > > I rather suspect 1addae07be1982a6cafc0e0b3955b59bd1fb481c "Treesit > support for show-paren-mode". At least by commenting out line 3592 > > (setq-local show-paren-data-function 'treesit-show-paren-data) > > in treesit.el I can work around the problem. Sorry, this is fixed now. The problem is that 'treesit-parent-until' raises an error by default. So needed to copy its implementation where treesit-node-match-p sets the argument IGNORE-MISSING to t. Or maybe better to add new arg IGNORE-MISSING to treesit-parent-until.