Function: treemacs-current-scope-shelf

treemacs-current-scope-shelf is a byte-compiled function defined in treemacs-scope.el.

Signature

(treemacs-current-scope-shelf &optional SCOPE)

Documentation

Return the current scope shelf, containing the active workspace and buffer.

Use either the given SCOPE or treemacs-current-scope otherwise.

Can be used with setf.

Source Code

;; Defined in ~/.emacs.d/elpa/treemacs-20251226.1307/treemacs-scope.el
(define-inline treemacs-current-scope-shelf (&optional scope)
  "Return the current scope shelf, containing the active workspace and buffer.
Use either the given SCOPE or `treemacs-current-scope' otherwise.

Can be used with `setf'."
  (declare (side-effect-free t))
  (inline-letevals (scope)
    (inline-quote
     (cdr (assoc (or ,scope (treemacs-current-scope)) treemacs--scope-storage)))))