Function: org-at-heading-p

org-at-heading-p is a byte-compiled function defined in org.el.gz.

Signature

(org-at-heading-p &optional INVISIBLE-NOT-OK)

Documentation

Return t if point is on a (possibly invisible) heading line.

If INVISIBLE-NOT-OK is non-nil, an invisible heading line is not ok.

Aliases

org-on-heading-p (obsolete since 9.0)

Source Code

;; Defined in /usr/src/emacs/lisp/org/org.el.gz
(defun org-at-heading-p (&optional invisible-not-ok)
  "Return t if point is on a (possibly invisible) heading line.
If INVISIBLE-NOT-OK is non-nil, an invisible heading line is not ok."
  (save-excursion
    (forward-line 0)
    (and (or (not invisible-not-ok) (not (org-fold-folded-p)))
	 (looking-at outline-regexp))))