Function: kkp--resume-in-terminal

kkp--resume-in-terminal is a natively compiled function defined in kkp.el.

Signature

(kkp--resume-in-terminal &optional TERMINAL)

Documentation

Restore KKP in TERMINAL if it was active before suspension.

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--resume-in-terminal (&optional terminal)
  "Restore KKP in TERMINAL if it was active before suspension.
TERMINAL defaults to the selected terminal."
  (let* ((terminal (or terminal (kkp--selected-terminal)))
         (state (kkp--terminal-state terminal)))
    (when (and state (kkp--state-suspended state))
      (kkp--verbose "resuming: re-enabling KKP in terminal")
      (setf (kkp--state-suspended state) nil)
      (kkp-enable-in-terminal terminal))))