org-in-block-p

org-in-block-p is a compiled Lisp function in `org.el'.

(org-in-block-p NAMES)

Non-nil when point belongs to a block whose name belongs to NAMES.

NAMES is a list of strings containing names of blocks.

Return first block name matched, or nil. Beware that in case of
nested blocks, the returned name may not belong to the closest
block from point.