Function: treemacs-goto-extension-node

treemacs-goto-extension-node is a byte-compiled function defined in treemacs-core-utils.el.

Signature

(treemacs-goto-extension-node PATH)

Documentation

Move to an extension node at the given PATH.

Small short-cut over treemacs-goto-node if you know for certain that PATH leads to an extension node.

Source Code

;; Defined in ~/.emacs.d/elpa/treemacs-20251226.1307/treemacs-core-utils.el
(define-inline treemacs-goto-extension-node (path)
  "Move to an extension node at the given PATH.
Small short-cut over `treemacs-goto-node' if you know for certain that PATH
leads to an extension node."
  (inline-letevals (path)
    (inline-quote
     (-when-let (result (treemacs--find-custom-node ,path))
       (treemacs--evade-image)
       (hl-line-highlight)
       ;; Only change window point if the current buffer is actually visible
       (-when-let (window (get-buffer-window))
         (set-window-point window (point)))
       result))))