Function: kkp--suspend-in-terminal
kkp--suspend-in-terminal is a natively compiled function defined in
kkp.el.
Signature
(kkp--suspend-in-terminal &optional TERMINAL)
Documentation
If TERMINAL has active KKP, disable it before suspending.
TERMINAL defaults to the selected terminal.
Source Code
;; Defined in /nix/store/0igl9q4k4n87vg4h2gnnrlha21kx9biv-emacs-packages-deps/share/emacs/site-lisp/elpa/kkp-20260706.858/kkp.el
(defun kkp--suspend-in-terminal (&optional terminal)
"If TERMINAL has active KKP, disable it before suspending.
TERMINAL defaults to the selected terminal."
(let ((terminal (or terminal (kkp--selected-terminal))))
(when (kkp--active-p terminal)
(kkp--verbose "suspending: tearing down KKP in terminal")
(setf (kkp--state-suspended (kkp--ensure-state terminal)) t)
(kkp--terminal-teardown terminal))))