# HG changeset patch # User Richard M. Stallman # Date 760411992 0 # Node ID 730053369cab83fa48a01dc5f7f1c72ac5923413 # Parent e761c2b1889420570cab904032d556685f662018 (outline-end-of-subtree): If loop leaves us at eob, don't move back from there. diff -r e761c2b18894 -r 730053369cab lisp/textmodes/ooutline.el --- a/lisp/textmodes/ooutline.el Fri Feb 04 23:11:34 1994 +0000 +++ b/lisp/textmodes/ooutline.el Sat Feb 05 01:33:12 1994 +0000 @@ -352,9 +352,13 @@ (or first (> (funcall outline-level) level))) (setq first nil) (outline-next-heading)) - (forward-char -1) - (if (memq (preceding-char) '(?\n ?\^M)) - (forward-char -1)))) + (if (eobp) + nil + ;; go to end of line before heading + (forward-char -1) + ;; skip preceding balnk line, if there is one + (if (memq (preceding-char) '(?\n ?\^M)) + (forward-char -1))))) (defun show-branches () "Show all subheadings of this heading, but not their bodies."