]> git.eshelyaron.com Git - emacs.git/commit
outline.el: Use jit-lock to maintain the buttons
authorStefan Monnier <monnier@iro.umontreal.ca>
Sun, 6 Jul 2025 17:13:14 +0000 (13:13 -0400)
committerEshel Yaron <me@eshelyaron.com>
Thu, 24 Jul 2025 11:57:29 +0000 (13:57 +0200)
commitd8b84a6eb51b2b5487929ef84e1a8a39363f079a
tree8928ea85dafefa586829a71391f1f241a8c58469
parentfd4cdd9b8c02741d92daa5b50368f835e9c99da8
outline.el: Use jit-lock to maintain the buttons

* lisp/outline.el (outline-minor-mode): Use jit-lock instead of
`after-change-functions`.
(outline-flag-region): Run `outline--fix-buttons` since jit-lock
won't be triggered.
(outline--fix-up-all-buttons): Make the args mandatory.
(outline--fix-buttons): Rename from `outline--fix-buttons-after-change`.
Fix the END calculation.  Return the affected bounds, for jit-lock.

(cherry picked from commit 74ab225ec7ce7f73960a53c2b42dd0829478944e)
lisp/outline.el