From: Yuan Fu <casouri@gmail.com>
To: Juri Linkov <juri@linkov.net>
Cc: germanp82@hotmail.com, 75198@debbugs.gnu.org,
Andreas Kurth <emacs@akurth.de>
Subject: bug#75198: 31.0.50; [treesitter] peculiar error
Date: Sat, 4 Jan 2025 00:26:08 -0800 [thread overview]
Message-ID: <5123F6E2-519E-42DE-9437-E65D1749D9D4@gmail.com> (raw)
In-Reply-To: <87h66l6opc.fsf@mail.linkov.net>
> On Dec 30, 2024, at 9:54 AM, Juri Linkov <juri@linkov.net> wrote:
>
> 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.
Hmm, I’m not sure. If we go this route, we’d need to add IGNORE-MISSING for every single function that uses treesit-node-match-p. It’s better for these functions to check whether the definition of the thing they’re going to use exists or not, before calling treesit-node-match-p; alternatively, if they know they don’t care, they can pass t to IGNORE-MISSING.
Yuan
next prev parent reply other threads:[~2025-01-04 8:26 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-12-30 12:27 bug#75198: 31.0.50; [treesitter] peculiar error German Pacenza
2024-12-30 13:47 ` Andreas Kurth
2024-12-30 17:54 ` Juri Linkov
2025-01-04 8:26 ` Yuan Fu [this message]
2025-01-04 17:43 ` Juri Linkov
2025-01-04 19:22 ` Yuan Fu
2025-01-05 7:43 ` Juri Linkov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5123F6E2-519E-42DE-9437-E65D1749D9D4@gmail.com \
--to=casouri@gmail.com \
--cc=75198@debbugs.gnu.org \
--cc=emacs@akurth.de \
--cc=germanp82@hotmail.com \
--cc=juri@linkov.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).