]> git.eshelyaron.com Git - emacs.git/commit
New hook 'outline-after-change-functions' (bug#77256).
authorJuri Linkov <juri@linkov.net>
Wed, 16 Apr 2025 17:11:34 +0000 (20:11 +0300)
committerEshel Yaron <me@eshelyaron.com>
Thu, 17 Apr 2025 07:09:02 +0000 (09:09 +0200)
commit4281a46942bec7bdb778ba93f1965f0e26c43652
tree0a32392be0b18cea68bc318d502a2b8d3fdb3ca3
parent5cc092446911b4be8c7440c0d930e008d2dbb4b8
New hook 'outline-after-change-functions' (bug#77256).

* lisp/outline.el (outline-after-change-functions): New variable.
(outline--fix-buttons-after-change):
Run hook 'outline-after-change-functions'.

* lisp/treesit.el (treesit--after-change): Improve docstring.
(treesit-major-mode-setup): Simplify to just add
'treesit--after-change' to 'outline-after-change-functions' hook.

* lisp/progmodes/rust-ts-mode.el (rust-ts-mode): Add explicit
'treesit-outline-predicate' that is like
'treesit-simple-imenu-settings', but also adds "trait_item".

(cherry picked from commit 7574eb82c5cd150a0706a81e9f8555962a1e2167)
lisp/outline.el
lisp/progmodes/rust-ts-mode.el
lisp/treesit.el