Function: treemacs-dom-node->all-parents

treemacs-dom-node->all-parents is a byte-compiled function defined in treemacs-dom.el.

Signature

(treemacs-dom-node->all-parents SELF)

Documentation

Get all parent nodes of SELF.

List will be sorted top to bottom.

SELF: Dom Node Struct

Source Code

;; Defined in ~/.emacs.d/elpa/treemacs-20251226.1307/treemacs-dom.el
(define-inline treemacs-dom-node->all-parents (self)
  "Get all parent nodes of SELF.
List will be sorted top to bottom.

SELF: Dom Node Struct"
  (declare (side-effect-free t))
  (inline-letevals (self)
    (inline-quote
     (let ((parent (treemacs-dom-node->parent ,self))
           (ret))
       (while parent
         (push parent ret)
         (setf parent (treemacs-dom-node->parent parent)))
       ret))))