Function: parent-mode-list
parent-mode-list is a byte-compiled function defined in
parent-mode.el.
Signature
(parent-mode-list MODE)
Documentation
Return a list of MODE and all its parent modes.
The returned list starts with the parent-most mode and ends with MODE.
Source Code
;; Defined in ~/.emacs.d/elpa/parent-mode-20240210.1906/parent-mode.el
(defun parent-mode-list (mode)
"Return a list of MODE and all its parent modes.
The returned list starts with the parent-most mode and ends with MODE."
(let ((result ()))
(parent-mode--worker mode (lambda (mode)
(push mode result)))
result))