]> git.eshelyaron.com Git - emacs.git/commit
* lisp/treesit.el (treesit-show-paren-data--categorize): Fix it.
authorJuri Linkov <juri@linkov.net>
Mon, 30 Dec 2024 17:54:39 +0000 (19:54 +0200)
committerEshel Yaron <me@eshelyaron.com>
Sat, 4 Jan 2025 20:26:04 +0000 (21:26 +0100)
commit847dc8abd0de4402b661b48d3cfde5a3cce25ee0
treef2f471783d6c2d14f064a0629716953237e00947
parent9efb853115c81161f5eb762480ac445acd5b696b
* lisp/treesit.el (treesit-show-paren-data--categorize): Fix it.

Copy the implementation of treesit-parent-until here, and call
its treesit-node-match-p with the argument IGNORE-MISSING set to t
that causes it to fail silently instead of raising an error when
the predicate 'sexp-list' is not defined in an embedded language.
(treesit-major-mode-setup): Set show-paren-data-function to
treesit-show-paren-data only when 'sexp-list' thing is defined
that is used by treesit-show-paren-data--categorize (bug#75198).

(cherry picked from commit 4068948a74586056cf03a22cae2448d7b4e4a7bd)
lisp/treesit.el