Function: org-in-archived-heading-p

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

Signature

(org-in-archived-heading-p &optional NO-INHERITANCE ELEMENT)

Documentation

Non-nil if point is under an archived heading.

This function also checks ancestors of the current headline, unless optional argument NO-INHERITANCE is non-nil.

Optional argument ELEMENT contains element at point.

Source Code

;; Defined in /usr/src/emacs/lisp/org/org.el.gz
(defun org-in-archived-heading-p (&optional no-inheritance element)
  "Non-nil if point is under an archived heading.
This function also checks ancestors of the current headline,
unless optional argument NO-INHERITANCE is non-nil.

Optional argument ELEMENT contains element at point."
  (unless element
    (setq
     element
     (org-element-lineage
      (org-element-at-point)
      '(headline inlinetask) 'with-self)))
  (if no-inheritance
      (org-element-property :archivedp element)
    (org-element-property-inherited :archivedp element 'with-self)))