]> git.eshelyaron.com Git - emacs.git/commit
* lisp/treesit.el: Fix treesit-show-paren-data (bug#75198)
authorJuri Linkov <juri@linkov.net>
Sun, 5 Jan 2025 07:43:22 +0000 (09:43 +0200)
committerEshel Yaron <me@eshelyaron.com>
Sun, 5 Jan 2025 12:18:50 +0000 (13:18 +0100)
commit8b38bed6d9d12813bdbb7ef4d5ca47699f299c00
tree79d6261bfbac31e68b4bc1be7d11bffb9d04d550
parentb3bc6c8d5a7d869f4bdf573947ae91e00b15cd8e
* lisp/treesit.el: Fix treesit-show-paren-data (bug#75198)

(treesit-show-paren-data--categorize): Use 'treesit-thing-defined-p'
to check if the thing exists for the language at POS before calling
'treesit-parent-until' that raises an error for an undefined thing.
(treesit-thing-defined-p): Add the alias signature to the docstring.

(cherry picked from commit 47ff8ab307da2a1ccfe3e701db871f47c1d3b380)
lisp/treesit.el