Function: majutsu-op--section-in-lineage
majutsu-op--section-in-lineage is a natively compiled function defined
in majutsu-op.el.
Signature
(majutsu-op--section-in-lineage TYPES &optional SECTION)
Documentation
Return the first ancestor SECTION whose type is in TYPES.
Source Code
;; Defined in /nix/store/jagqw3nms546pad0gxi5f3wsckk6pji7-emacs-packages-deps/share/emacs/site-lisp/majutsu-op.el
(defun majutsu-op--section-in-lineage (types &optional section)
"Return the first ancestor SECTION whose type is in TYPES."
(let ((section (or section (magit-current-section)))
(types (ensure-list types)))
(while (and section
(not (memq (oref section type) types)))
(setq section (oref section parent)))
section))