mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-12-24 10:38:38 +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 (outline-next-sibling curr-depth)
|
||||||
;; or no more siblings - proceed to
|
;; or no more siblings - proceed to
|
||||||
;; next heading at lesser depth:
|
;; next heading at lesser depth:
|
||||||
(while (<= curr-depth
|
(while (and (<= curr-depth
|
||||||
(outline-recent-depth))
|
(outline-recent-depth))
|
||||||
(outline-next-heading)))
|
(outline-next-heading))))
|
||||||
(outline-next-heading)))
|
(outline-next-heading)))
|
||||||
|
|
||||||
((and (< prev-depth curr-depth)
|
((and (< prev-depth curr-depth)
|
||||||
|
Loading…
Reference in New Issue
Block a user