]> git.eshelyaron.com Git - emacs.git/commit
Handle outline overlays better when cycling in outline.el
authorPaul W. Rankin <pwr@skeletons.cc>
Tue, 24 Nov 2020 05:08:59 +0000 (06:08 +0100)
committerLars Ingebrigtsen <larsi@gnus.org>
Tue, 24 Nov 2020 05:08:59 +0000 (06:08 +0100)
commit5a823a2a0c3eca60dd3939fba67df1bbe5a1b715
tree241c97c7e88bbca196bd5ff95a01e44ec371db1f
parente2acb8fef4a40b94f7c43c7548453b997353e006
Handle outline overlays better when cycling in outline.el

* lisp/outline.el (outline--cycle-state): Only consider outline
overlays that are on outline headings; when subtree end is
point-max, return overlay-end +1 because final subtree overlay
only reaches point-max -1 (bug#41198).
(outline-cycle-buffer): Check that buffer has top-level headings
before calling outline-hide-sublevels 1 thus preventing
disconcerting buffer state of content reduced to single "..."
lisp/outline.el