Function: treemacs--on-collapse-of-node-with-children
treemacs--on-collapse-of-node-with-children is a byte-compiled
function defined in treemacs-dom.el.
Signature
(treemacs--on-collapse-of-node-with-children DOM-NODE)
Documentation
Run when a DOM-NODE with children is collapsed.
Will remove all entries below the one collapsed from the dom.
DOM-NODE: Dom Node Struct
Source Code
;; Defined in ~/.emacs.d/elpa/treemacs-20251226.1307/treemacs-dom.el
(define-inline treemacs--on-collapse-of-node-with-children (dom-node)
"Run when a DOM-NODE with children is collapsed.
Will remove all entries below the one collapsed from the dom.
DOM-NODE: Dom Node Struct"
(inline-letevals (dom-node)
(inline-quote
(progn
(treemacs-walk-dom-exclusive ,dom-node
(lambda (it)
(treemacs-dom-node->remove-from-dom! it)
(setf (treemacs-dom-node->children it) nil)))
(setf (treemacs-dom-node->children ,dom-node) nil)))))