From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Yuan Fu Newsgroups: gmane.emacs.bugs Subject: bug#75198: 31.0.50; [treesitter] peculiar error Date: Sat, 4 Jan 2025 00:26:08 -0800 Message-ID: <5123F6E2-519E-42DE-9437-E65D1749D9D4@gmail.com> References: <87y0zxmgeu.fsf@akurth.de> <87h66l6opc.fsf@mail.linkov.net> Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3776.700.51\)) 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="35560"; mail-complaints-to="usenet@ciao.gmane.io" Cc: germanp82@hotmail.com, 75198@debbugs.gnu.org, Andreas Kurth To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Jan 04 09:27:25 2025 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 1tTzVE-00093B-GO for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 04 Jan 2025 09:27:24 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tTzV2-0007wU-Ak; Sat, 04 Jan 2025 03:27:12 -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 1tTzUs-0007vy-4V for bug-gnu-emacs@gnu.org; Sat, 04 Jan 2025 03:27: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 1tTzUr-0001GS-SU for bug-gnu-emacs@gnu.org; Sat, 04 Jan 2025 03:27:01 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=References:Date:In-Reply-To:From:Mime-Version:To:Subject; bh=B+A/WMAQV+EeZ5jgAltDgSDNJ10gbAFzytjFxHIsPIs=; b=OmVSB/dGVNCALUJlhNZgMkXTpSa5IoL8lsZ9L7eWNGMF8HstBI8gA3Puzakw8HCir8LyK+MRdoVsNlQg/2cu8CPEFNRghwPFsiCiplJxGjEbZz0Scfmm8c7gsfai2n70HaK5/ZjzwFRFlgwiLVv2UuDTkUtzl2Kl0sLgcoxq7ObGWEw5aHg1KgXvnk/9Xkbv2XIKSw9fTpEz4ml9Ug4527Mb0u89OMcAzBeUlXKdeFKFefQNTSzu+dSfA92l1rDKtS9qdgNUe1URJB83javW4gAwgGm4MfKklPcnJi1IQMYj8COB+BUMoXAwT9pd1yO6lQ5O22jJCh9/9+DT+ajMjA==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tTzUr-0002Tw-Kq for bug-gnu-emacs@gnu.org; Sat, 04 Jan 2025 03:27:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Yuan Fu Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 04 Jan 2025 08:27:01 +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.17359791839477 (code B ref 75198); Sat, 04 Jan 2025 08:27:01 +0000 Original-Received: (at 75198) by debbugs.gnu.org; 4 Jan 2025 08:26:23 +0000 Original-Received: from localhost ([127.0.0.1]:53292 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tTzUF-0002Sl-1k for submit@debbugs.gnu.org; Sat, 04 Jan 2025 03:26:23 -0500 Original-Received: from mail-pl1-x629.google.com ([2607:f8b0:4864:20::629]:61847) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1tTzUD-0002Se-JG for 75198@debbugs.gnu.org; Sat, 04 Jan 2025 03:26:22 -0500 Original-Received: by mail-pl1-x629.google.com with SMTP id d9443c01a7336-21669fd5c7cso184013045ad.3 for <75198@debbugs.gnu.org>; Sat, 04 Jan 2025 00:26:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1735979180; x=1736583980; darn=debbugs.gnu.org; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=B+A/WMAQV+EeZ5jgAltDgSDNJ10gbAFzytjFxHIsPIs=; b=MOH/rmyNv6MHn3zl646FukAQSrsERb0S7AXfnJ7F2Ujve0m3PWEMWGEx6dA5dHCuKN kwGOPSFsP6UczsiIFOsFWQWSTveNatbOiDynUe02baUR6z44vtSAORlcQDR51kEYsHCa ijHOlX7iMeWlwLhQ9muFMvNog7VYVmHg3Icq0utSzT2XY1hBn4IgvzEmG2bqNXfsVmMe t54u2UCTaUXpL4rphr9vW1ytLTujNWXaUSKoFkGV/jDOWnKr4CnQfpQp8UZ+YhyN5gNQ 13cfnZbiWq0Ub/Cj7Vyak5Nungia+X5/F2hNSVxzG/Rrg4TcJr61fdTEIXtn6E6poVVa oipw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1735979180; x=1736583980; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=B+A/WMAQV+EeZ5jgAltDgSDNJ10gbAFzytjFxHIsPIs=; b=Uzecvr2bZYlCkKpjDRhfAoWWh1ymJCpupH0eo21fWgIw70CgxvzHSpbd5e2wb1EDel +Nzz6U+JR6BMd5rlv1CjpkdVjxhiR7Sztp5mIoUGWRxhZvf2731nkydgdbBCWiK6Vcoy jIzJFjgBzE5T6CR/E4oiB4CdEVfPysHj/9ykIDLbOnVRy+XbyDAahqZgPL3b6Mi6Xfye AAbN3L8RNLOrvL6Yh1mXNgXYjmoILmltLzaqo7tCkqZoe0Kc4WLiQpC9Ld84IOGnri6t sEuMJtjGKiM1OASYOhZAmiiV2+JN0QJ4a2qEBxI1BF+A+CunQl5BUUt/tmAfpWLSvHsQ 683w== X-Forwarded-Encrypted: i=1; AJvYcCVNtaO3mgkHMUCmnIUyBhpDBlcmCKDa4RbD5ufYIUa4EqbE8V9glLSg6WKyGlZd4KHdqbijrA==@debbugs.gnu.org X-Gm-Message-State: AOJu0YxJedrlZtWlpL2q93Yb8cUUQccZyVEu36lNN/NWi7A3myc/gA7h Ez5voEA70WY6BUKUEYo99XnWWghK22JS5od0JOtScGQA+Rym/0NE X-Gm-Gg: ASbGnctbdngDY6GwZ85C2i8hf0WmNw/V2jvbMkXsgIqbbY7hEzYhw27npnnGi+T42SH lIJ6c+IOyyZ6fe7wuKWHKDnIq3zRDzs+kOEUmIGub5V3zssyXPqbhwizgV7+tT0or5oTo8129tW h3RInEGqkR047CO01p/04DCBRqn9YgN8VG+ClRBlahz6TjDsE5IdvzoGMu4DKdHvrWeDOxl2gLM NdIkq+QZh/X1N3KsiGzHd3ig4B3ZYCOfCYglUuu2QcQJewqrei0yjzFQNczGYMvS44pAbh/mekW /Ib2 X-Google-Smtp-Source: AGHT+IEFLgm5TZP/bao0dIwzx5tME7qaeZrodhlls9XqLl1zq8uELtisx229wU34zJZIpw5+9oRy1w== X-Received: by 2002:a17:902:cec3:b0:216:2bd7:1c2f with SMTP id d9443c01a7336-219e6ea26c9mr516441925ad.18.1735979180355; Sat, 04 Jan 2025 00:26:20 -0800 (PST) Original-Received: from smtpclient.apple ([2601:646:8f81:6120:c496:8cdf:4c5d:3617]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-219dc96e585sm257143545ad.70.2025.01.04.00.26.19 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sat, 04 Jan 2025 00:26:19 -0800 (PST) In-Reply-To: <87h66l6opc.fsf@mail.linkov.net> X-Mailer: Apple Mail (2.3776.700.51) 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:298340 Archived-At: > On Dec 30, 2024, at 9:54=E2=80=AFAM, Juri Linkov = wrote: >=20 > close 75198 31.0.50 > thanks >=20 >>> M-x bash-ts-mode >>> Move cursor >>>=20 >>> peculiar error: ("Cannot find the definition of the predicate in >>> `treesit-thing-settings'" sexp-list) >>>=20 >>> Emacs becomes pretty much unusable after that. >>=20 >> I rather suspect 1addae07be1982a6cafc0e0b3955b59bd1fb481c "Treesit >> support for show-paren-mode". At least by commenting out line 3592 >>=20 >> (setq-local show-paren-data-function 'treesit-show-paren-data) >>=20 >> in treesit.el I can work around the problem. >=20 > Sorry, this is fixed now. >=20 > 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. >=20 > Or maybe better to add new arg IGNORE-MISSING to treesit-parent-until. Hmm, I=E2=80=99m not sure. If we go this route, we=E2=80=99d need to add = IGNORE-MISSING for every single function that uses treesit-node-match-p. = It=E2=80=99s better for these functions to check whether the definition = of the thing they=E2=80=99re going to use exists or not, before calling = treesit-node-match-p; alternatively, if they know they don=E2=80=99t = care, they can pass t to IGNORE-MISSING. Yuan=