]> git.eshelyaron.com Git - emacs.git/commit
Improve 'treesit-outline-search'
authorJuri Linkov <juri@linkov.net>
Thu, 27 Feb 2025 17:21:45 +0000 (19:21 +0200)
committerEshel Yaron <me@eshelyaron.com>
Fri, 28 Feb 2025 11:19:22 +0000 (12:19 +0100)
commitcebb3dd905b71d3745f2a532e477fb2455c102ae
tree424f022a96c263b0b128a7b11472fee1e09b11e0
parentf5a9db6ea4efe1d107d3d5dc24d193ed31717eee
Improve 'treesit-outline-search'

* lisp/treesit.el (treesit-outline-search): Add optional arg
'recursive' to avoid infinite recursion when it gets stuck.

* lisp/textmodes/markdown-ts-mode.el (markdown-ts-mode):
Set buffer-local 'treesit-outline-predicate' to "section".

(cherry picked from commit dc1637fef7c658b6d865f3e71f3b95686e56542d)
lisp/textmodes/markdown-ts-mode.el
lisp/treesit.el