]> git.eshelyaron.com Git - emacs.git/commit
Adapt treesit-outline-search to the recent improvements (bug#76398)
authorJuri Linkov <juri@linkov.net>
Tue, 11 Mar 2025 18:18:24 +0000 (20:18 +0200)
committerEshel Yaron <me@eshelyaron.com>
Wed, 12 Mar 2025 19:00:18 +0000 (20:00 +0100)
commitc1c2d524b6f78126a1ae32b9104f4191bb0bdab1
tree4bd0bccba83d04ee2a2cbbda55726989b90e0253
parent8bbabdf5a1804cc18b698c2082fd47dd6c3fc299
Adapt treesit-outline-search to the recent improvements (bug#76398)

* lisp/treesit.el (treesit-closest-parser-boundary):
Remove temporary function.
(treesit-outline-search): Use 'previous/next-single-char-property-change'
with 'treesit-parser' property to find the closest parser boundary.
(treesit-outline-level): Get the 'treesit-host-parser' overlay
and find the parent parser node with 'treesit-node-at'.

(cherry picked from commit b741023070e6cfb03a178cab0f6818244af1b0e2)
lisp/treesit.el