Function: org-map-region
org-map-region is a byte-compiled function defined in org.el.gz.
Signature
(org-map-region FUN BEG END)
Documentation
Call FUN for every heading between BEG and END.
Source Code
;; Defined in /usr/src/emacs/lisp/org/org.el.gz
(defun org-map-region (fun beg end)
"Call FUN for every heading between BEG and END."
(let ((org-ignore-region t))
(save-excursion
(setq end (copy-marker end))
(goto-char beg)
(when (and (re-search-forward org-outline-regexp-bol nil t)
(< (point) end))
(funcall fun))
(while (and (progn
(outline-next-heading)
(< (point) end))
(not (eobp)))
(funcall fun)))))