Function: cider--show-error-buffer-p

cider--show-error-buffer-p is a byte-compiled function defined in cider-eval.el.

Signature

(cider--show-error-buffer-p)

Documentation

Return non-nil if the error buffer must be shown on error.

Takes into account both the value of cider-show-error-buffer and the currently selected buffer.

Source Code

;; Defined in ~/.emacs.d/elpa/cider-20260414.1619/cider-eval.el
(defun cider--show-error-buffer-p ()
  "Return non-nil if the error buffer must be shown on error.
Takes into account both the value of `cider-show-error-buffer' and the
currently selected buffer."
  (let* ((selected-buffer (window-buffer (selected-window)))
         (replp (with-current-buffer selected-buffer (derived-mode-p 'cider-repl-mode))))
    (memq cider-show-error-buffer
          (if replp
              '(t always only-in-repl)
            '(t always except-in-repl)))))