Commit e6a9aec7 authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files

(outline-chart-subtree): Include outline-next-heading in loop conditions

to detect end-of-buffer (and avoid infinite loop).
parent 92bab011
......@@ -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
(while (and (<= curr-depth
(outline-recent-depth))
(outline-next-heading)))
(outline-next-heading))))
(outline-next-heading)))
((and (< prev-depth curr-depth)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment