Function: magit-section-hidden-body

magit-section-hidden-body is a byte-compiled function defined in magit-section.el.

Signature

(magit-section-hidden-body SECTION &optional PRED)

Documentation

Return t if the content of SECTION or of any descendant is hidden.

Ignore whether the body of any of SECTION's ancestors is hidden; if you need that use magit-section-hidden.

Source Code

;; Defined in ~/.emacs.d/elpa/magit-section-20260330.1102/magit-section.el
(defun magit-section-hidden-body (section &optional pred)
  "Return t if the content of SECTION or of any descendant is hidden.
Ignore whether the body of any of SECTION's ancestors is hidden;
if you need that use `magit-section-hidden'."
  (if-let ((children (oref section children)))
      (funcall (or pred #'seq-some) #'magit-section-hidden-body children)
    (and (oref section content)
         (oref section hidden))))