1
0
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:
Richard M. Stallman 1994-05-25 04:41:21 +00:00
parent 92bab0111e
commit e6a9aec70b

View File

@ -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)