]> git.eshelyaron.com Git - emacs.git/commit
* lisp/outline.el: Improve new feature of preserving outlines after revert.
authorJuri Linkov <juri@linkov.net>
Mon, 10 Jun 2024 06:34:15 +0000 (09:34 +0300)
committerEshel Yaron <me@eshelyaron.com>
Mon, 10 Jun 2024 07:31:34 +0000 (09:31 +0200)
commit2672480e4bd7962f23df07e6beb1a50a23dcfd2b
tree4544e080669a33ffec3898023cb9e57476625865
parentc719debf1bd03d5f1866c09071cdf80e7e465779
* lisp/outline.el: Improve new feature of preserving outlines after revert.

(outline-minor-mode): Move adding hook 'outline-revert-buffer-rehighlight'
to the same code branch that calls 'outline-minor-mode-highlight-buffer'.
(outline-revert-buffer-rehighlight): Remove same conditions
already existing in 'outline-minor-mode'.
(outline-hidden-headings-regexp): Remove function.
(outline-hidden-headings-paths)
(outline-hidden-headings-restore-paths): New functions
that save and restore complete paths instead of flat regexps.
(outline-revert-buffer-restore-visibility): Use
'outline-hidden-headings-paths' and
'outline-hidden-headings-restore-paths'.

(cherry picked from commit 1a5aa16066bb5180eb92d9c0bfc8cb2c0ce4a4d0)
lisp/outline.el