Function: cider-repl--auto-inspect-last-result

cider-repl--auto-inspect-last-result is a byte-compiled function defined in cider-repl.el.

Signature

(cider-repl--auto-inspect-last-result BUFFER)

Documentation

Refresh the inspector with the last REPL value when configured.

Acts only when cider-auto-inspect-after-eval enables it for REPL evals and the inspector buffer is currently visible, and keeps focus on the REPL BUFFER rather than popping to the inspector (#3636).

Source Code

;; Defined in ~/.emacs.d/elpa/cider-20260822.1520/cider-repl.el
(defun cider-repl--auto-inspect-last-result (buffer)
  "Refresh the inspector with the last REPL value when configured.
Acts only when `cider-auto-inspect-after-eval' enables it for REPL evals
and the inspector buffer is currently visible, and keeps focus on the
REPL BUFFER rather than popping to the inspector (#3636)."
  (when (and (cider--auto-inspect-after-eval-p 'repl)
             (boundp 'cider-inspector-buffer)
             (windowp (get-buffer-window cider-inspector-buffer 'visible)))
    (cider-inspect-last-result)
    (when-let* ((win (get-buffer-window buffer)))
      (select-window win))))