Function: outline-map-region
outline-map-region is a byte-compiled function defined in
outline.el.gz.
Signature
(outline-map-region FUN BEG END)
Documentation
Call FUN for every heading between BEG and END.
When FUN is called, point is at the beginning of the heading and the match data is set appropriately.
Source Code
;; Defined in /usr/src/emacs/lisp/outline.el.gz
(defun outline-map-region (fun beg end)
"Call FUN for every heading between BEG and END.
When FUN is called, point is at the beginning of the heading and
the match data is set appropriately."
(save-excursion
(setq end (copy-marker end))
(goto-char beg)
(when (if outline-search-function
(funcall outline-search-function end)
(re-search-forward (concat "^\\(?:" outline-regexp "\\)") end t))
(goto-char (match-beginning 0))
(funcall fun)
(while (and (progn
(outline-next-heading)
(< (point) end))
(not (eobp)))
(funcall fun)))))