changeset 7676:5b8a573e9f69

(outline-chart-subtree): Include outline-next-heading in loop conditions to detect end-of-buffer (and avoid infinite loop).
author Richard M. Stallman <rms@gnu.org>
date Wed, 25 May 1994 04:41:21 +0000
parents 4767bfeb097d
children 431b1a011c29
files lisp/allout.el
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/allout.el	Wed May 25 04:36:48 1994 +0000
+++ b/lisp/allout.el	Wed May 25 04:41:21 1994 +0000
@@ -1453,9 +1453,9 @@
 			   (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)