Function: outline-next-preface

outline-next-preface is a byte-compiled function defined in outline.el.gz.

Signature

(outline-next-preface)

Documentation

Skip forward to just before the next heading line.

If there's no following heading line, stop before the newline at the end of the buffer.

Source Code

;; Defined in /usr/src/emacs/lisp/outline.el.gz
(defun outline-next-preface ()
  "Skip forward to just before the next heading line.
If there's no following heading line, stop before the newline
at the end of the buffer."
  (if (re-search-forward (concat "\n\\(?:" outline-regexp "\\)")
			 nil 'move)
      (goto-char (match-beginning 0)))
  (if (and (bolp) (or outline-blank-line (eobp)) (not (bobp)))
      (forward-char -1)))