all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#75198: 31.0.50; [treesitter] peculiar error
@ 2024-12-30 12:27 German Pacenza
  2024-12-30 13:47 ` Andreas Kurth
  0 siblings, 1 reply; 3+ messages in thread
From: German Pacenza @ 2024-12-30 12:27 UTC (permalink / raw)
  To: 75198

*****

emacs -Q:
open bash shell script
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.

on Master commit 7671d50b149edd9e19c29f5fa8ee71c01e2f583d





^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#75198: 31.0.50; [treesitter] peculiar error
  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
  0 siblings, 1 reply; 3+ messages in thread
From: Andreas Kurth @ 2024-12-30 13:47 UTC (permalink / raw)
  To: 75198; +Cc: germanp82, juri

German Pacenza wrote:
> on Master commit 7671d50b149edd9e19c29f5fa8ee71c01e2f583d

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.





^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#75198: 31.0.50; [treesitter] peculiar error
  2024-12-30 13:47 ` Andreas Kurth
@ 2024-12-30 17:54   ` Juri Linkov
  0 siblings, 0 replies; 3+ messages in thread
From: Juri Linkov @ 2024-12-30 17:54 UTC (permalink / raw)
  To: Andreas Kurth; +Cc: germanp82, 75198, Yuan Fu

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.





^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2024-12-30 17:54 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.