Function: treemacs--next-non-child-button
treemacs--next-non-child-button is a byte-compiled function defined in
treemacs-core-utils.el.
Signature
(treemacs--next-non-child-button BTN)
Documentation
Return the next button after BTN that is not a child of BTN.
Source Code
;; Defined in ~/.emacs.d/elpa/treemacs-20251226.1307/treemacs-core-utils.el
(define-inline treemacs--next-non-child-button (btn)
"Return the next button after BTN that is not a child of BTN."
(declare (side-effect-free t))
(inline-letevals (btn)
(inline-quote
(when ,btn
(let ((depth (treemacs-button-get ,btn :depth))
(next (next-button (treemacs-button-end ,btn) t)))
(while (and next (< depth (treemacs-button-get next :depth)))
(setq next (next-button (treemacs-button-end next) t)))
next)))))