(outline-up-heading): Avoid infinite loop at beginning of buffer.

This commit is contained in:
Richard M. Stallman 1997-09-20 00:32:30 +00:00
parent 28636af647
commit 167bed8638

View file

@ -620,7 +620,8 @@ With argument, move up ARG levels."
(> arg 0)
(not (bobp)))
(let ((present-level (funcall outline-level)))
(while (not (< (funcall outline-level) present-level))
(while (and (not (< (funcall outline-level) present-level))
(not (bobp)))
(outline-previous-visible-heading 1))
(setq arg (- arg 1)))))