Function: org-fold-core-region-folded-p

org-fold-core-region-folded-p is a byte-compiled function defined in org-fold-core.el.gz.

Signature

(org-fold-core-region-folded-p BEG END &optional SPEC-OR-ALIAS)

Documentation

Non-nil if the region between BEG and END is folded.

If SPEC-OR-ALIAS is a folding spec, only check the given folding spec.

Source Code

;; Defined in /usr/src/emacs/lisp/org/org-fold-core.el.gz
(defun org-fold-core-region-folded-p (beg end &optional spec-or-alias)
  "Non-nil if the region between BEG and END is folded.
If SPEC-OR-ALIAS is a folding spec, only check the given folding spec."
  (org-with-point-at beg
    (catch :visible
      (while (< (point) end)
        (unless (org-fold-core-get-folding-spec spec-or-alias) (throw :visible nil))
        (goto-char (org-fold-core-next-folding-state-change spec-or-alias nil end)))
      t)))