]> git.eshelyaron.com Git - emacs.git/commit
(outline--hidden-headings-paths): Fix slow saves (bug#78665)
authorStefan Monnier <monnier@iro.umontreal.ca>
Wed, 4 Jun 2025 20:36:27 +0000 (16:36 -0400)
committerEshel Yaron <me@eshelyaron.com>
Sat, 7 Jun 2025 20:00:47 +0000 (22:00 +0200)
commitecdfdb447f73815d8269f61d4fa50ec207d9195e
treefa13a64782f42bfe928a684029e3bdb00e1e1043
parentccbdd0e2b0a57415b8783efe02557117949dc9c1
(outline--hidden-headings-paths): Fix slow saves (bug#78665)

* lisp/outline.el: Prefer #' to quote function names.
(outline--end-of-previous): New function, extracted from
`outline-end-of-subtree`.
(outline-end-of-subtree): Use it.
(outline--hidden-headings-paths): Distinguish headings where just the
entry is hidden from those where a whole subtree is hidden (bug#78673).
(outline--hidden-headings-restore-paths): Adjust accordingly and don't
delegate to functions like `outline-hide-subtree` so as to avoid
an O(N²) behavior.

(cherry picked from commit 77a4c63fda5ca5d4c6d82092eaa06f1eb9b51302)
lisp/outline.el
lisp/transient.el