Function: eca-doom--on-workspace-kill
eca-doom--on-workspace-kill is a natively compiled function defined in
eca-doom.el.
Signature
(eca-doom--on-workspace-kill PERSP)
Documentation
Stop the ECA session of the workspace PERSP about to be killed.
Bound to persp-before-kill-functions. Does nothing when
eca-doom-stop-session-on-workspace-kill is nil, when PERSP has no
related session or when another workspace still refers to it.
Errors are reported without aborting the workspace kill.
Source Code
;; Defined in /nix/store/jklqzw6pzz6j4jrbv8wy0iwgi7jlrbld-emacs-packages-deps/share/emacs/site-lisp/elpa/eca-20260928.1827/eca-doom.el
(defun eca-doom--on-workspace-kill (persp)
"Stop the ECA session of the workspace PERSP about to be killed.
Bound to `persp-before-kill-functions'. Does nothing when
`eca-doom-stop-session-on-workspace-kill' is nil, when PERSP has no
related session or when another workspace still refers to it.
Errors are reported without aborting the workspace kill."
(when (and eca-doom-stop-session-on-workspace-kill persp)
(when-let* ((session (eca-doom--session-for-persp persp))
(name (persp-name persp)))
(unless (eca-doom--session-used-elsewhere-p session name)
(condition-case err
(eca-stop-session session)
(error
(eca-warn "Could not stop the ECA session of workspace %s: %s"
name (error-message-string err))))))))