mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-12-23 10:34:07 +00:00
(outline-chart-subtree): Include outline-next-heading in loop conditions
to detect end-of-buffer (and avoid infinite loop).
This commit is contained in:
parent
92bab0111e
commit
e6a9aec70b
@ -1453,9 +1453,9 @@ starting point, and PREV-DEPTH is depth of prior topic."
|
||||
(or (outline-next-sibling curr-depth)
|
||||
;; or no more siblings - proceed to
|
||||
;; next heading at lesser depth:
|
||||
(while (<= curr-depth
|
||||
(outline-recent-depth))
|
||||
(outline-next-heading)))
|
||||
(while (and (<= curr-depth
|
||||
(outline-recent-depth))
|
||||
(outline-next-heading))))
|
||||
(outline-next-heading)))
|
||||
|
||||
((and (< prev-depth curr-depth)
|
||||
|
Loading…
Reference in New Issue
Block a user