From ecb2925bf0c20a3ab0faacb48dfc072a10d0f2b5 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Sun, 22 Dec 2002 22:02:25 +0000 Subject: [PATCH] (outline-next-visible-heading): When going forward, test outline-invisible-p at start of header. --- lisp/textmodes/outline.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lisp/textmodes/outline.el b/lisp/textmodes/outline.el index b857615c7a7..03281812a4f 100644 --- a/lisp/textmodes/outline.el +++ b/lisp/textmodes/outline.el @@ -483,7 +483,9 @@ A heading line is one that starts with a `*' (or that (while (and (not (eobp)) (re-search-forward (concat "^\\(?:" outline-regexp "\\)") nil 'move) - (outline-invisible-p))) + (save-excursion + (goto-char (match-beginning 0)) + (outline-invisible-p)))) (setq arg (1- arg))) (beginning-of-line)) -- 2.39.2