Function: treemacs--on-scope-kill

treemacs--on-scope-kill is a byte-compiled function defined in treemacs-scope.el.

Signature

(treemacs--on-scope-kill SCOPE)

Documentation

Kill and remove the buffer assigned to the given SCOPE.

Source Code

;; Defined in ~/.emacs.d/elpa/treemacs-20251226.1307/treemacs-scope.el
(defun treemacs--on-scope-kill (scope)
  "Kill and remove the buffer assigned to the given SCOPE."
  (-when-let (shelf (treemacs-current-scope-shelf scope))
    (treemacs-scope-shelf->kill-buffer shelf)
    (setf treemacs--scope-storage (--reject-first (equal (car it) scope) treemacs--scope-storage))))