Function: treemacs-project-of-node
treemacs-project-of-node is a byte-compiled function defined in
treemacs-core-utils.el.
Signature
(treemacs-project-of-node NODE)
Documentation
Find the project the given NODE belongs to.
Source Code
;; Defined in ~/.emacs.d/elpa/treemacs-20251226.1307/treemacs-core-utils.el
(defun treemacs-project-of-node (node)
"Find the project the given NODE belongs to."
(declare (side-effect-free t))
(-let [project (treemacs-button-get node :project)]
(while (not project)
(setq node (treemacs-button-get node :parent)
project (treemacs-button-get node :project)))
project))