Function: treemacs-last-node-of-project

treemacs-last-node-of-project is a byte-compiled function defined in treemacs-core-utils.el.

Signature

(treemacs-last-node-of-project PROJECT)

Documentation

Find the last node in given PROJECT.

Returns nil if the project is not expanded.

Source Code

;; Defined in ~/.emacs.d/elpa/treemacs-20251226.1307/treemacs-core-utils.el
(defun treemacs-last-node-of-project (project)
  "Find the last node in given PROJECT.
Returns nil if the project is not expanded."
  (declare (side-effect-free t))
  (let ((node (treemacs-project->position project)))
    (when (treemacs-is-node-expanded? node)
      (save-excursion
        (goto-char node)
        (previous-button (treemacs--next-project-pos))))))