Function: treemacs--on-collapse-of-node-without-children
treemacs--on-collapse-of-node-without-children is a byte-compiled
function defined in treemacs-dom.el.
Signature
(treemacs--on-collapse-of-node-without-children DOM-NODE)
Documentation
Run when a DOM-NODE without any children is collapsed.
Will remove DOm-NODE from its parent's reentry list.
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-without-children (dom-node)
"Run when a DOM-NODE without any children is collapsed.
Will remove DOm-NODE from its parent's reentry list.
DOM-NODE: Dom Node Struct"
(inline-letevals (dom-node)
(inline-quote
(let ((parent-dom-node (treemacs-dom-node->parent ,dom-node)))
(when parent-dom-node
(setf (treemacs-dom-node->reentry-nodes parent-dom-node)
(delete ,dom-node (treemacs-dom-node->reentry-nodes parent-dom-node))))))))