Function: treemacs--follow-path-elements
treemacs--follow-path-elements is a byte-compiled function defined in
treemacs-core-utils.el.
Signature
(treemacs--follow-path-elements BTN ITEMS)
Documentation
Starting at BTN follow (goto and open) every single element in ITEMS.
Return the button that is found or the symbol follow-failed if the search
failed.
Source Code
;; Defined in ~/.emacs.d/elpa/treemacs-20251226.1307/treemacs-core-utils.el
(define-inline treemacs--follow-path-elements (btn items)
"Starting at BTN follow (goto and open) every single element in ITEMS.
Return the button that is found or the symbol `follow-failed' if the search
failed."
(inline-letevals (btn items)
(inline-quote
(cl-block search
(when (treemacs-is-node-collapsed? ,btn)
(goto-char ,btn)
(funcall (cdr (assq (treemacs-button-get ,btn :state) treemacs-TAB-actions-config))))
(while ,items
(let ((item (pop ,items)))
(setq ,btn (treemacs-first-child-node-where ,btn
(equal (treemacs-button-get child-btn :key) item)))
(unless ,btn
(cl-return-from search
'follow-failed))
(goto-char ,btn)
(when (and ,items (treemacs-is-node-collapsed? ,btn))
(funcall (cdr (assq (treemacs-button-get ,btn :state) treemacs-TAB-actions-config))))))
,btn))))