From 1122ecea8434625a0bedada7d0053b438a6b1381 Mon Sep 17 00:00:00 2001 From: Karl Heuer Date: Sun, 7 Dec 1997 21:49:09 +0000 Subject: [PATCH] (outline-next-preface): Don't try to move back if already at beginning of buffer. --- lisp/textmodes/outline.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/textmodes/outline.el b/lisp/textmodes/outline.el index 80c65a5301b..3debce3e189 100644 --- a/lisp/textmodes/outline.el +++ b/lisp/textmodes/outline.el @@ -309,7 +309,7 @@ at the end of the buffer." (if (re-search-forward (concat "\n\\(" outline-regexp "\\)") nil 'move) (goto-char (match-beginning 0))) - (if (bolp) + (if (and (bolp) (not (bobp))) (forward-char -1))) (defun outline-next-heading () -- 2.39.2