Function: cider-stacktrace-render-suppression-toggle
cider-stacktrace-render-suppression-toggle is a byte-compiled function
defined in cider-stacktrace.el.
Signature
(cider-stacktrace-render-suppression-toggle BUFFER ERROR-TYPES)
Documentation
Emit toggle buttons for each of the ERROR-TYPES leading this stacktrace BUFFER.
Source Code
;; Defined in ~/.emacs.d/elpa/cider-20260414.1619/cider-stacktrace.el
(defun cider-stacktrace-render-suppression-toggle (buffer error-types)
"Emit toggle buttons for each of the ERROR-TYPES leading this stacktrace BUFFER."
(with-current-buffer buffer
(when error-types
(insert " This is a CIDER middleware error.
It may be a due to a bug, or perhaps simply to bad user input.
If you believe it's a bug, please submit an issue report via `")
(insert-text-button "M-x cider-report-bug"
'follow-link t
'action (lambda (_button) (cider-report-bug))
'help-echo (cider-stacktrace-tooltip
"Report bug to the CIDER team."))
(insert "`.\n\n")
(insert "\
If these stacktraces are occurring frequently, consider using the
button(s) below to suppress these types of errors for the duration of
your current CIDER session. The stacktrace buffer will still be
generated, but it will \"pop under\" your current buffer instead of
\"popping over\". The button toggles this behavior.\n\n ")
(dolist (error-type error-types)
(let ((suppressed (cider-stacktrace-suppressed-error-p error-type)))
(insert-text-button (format "%s %s" (if suppressed "Promote" "Suppress") error-type)
'follow-link t
'error-type error-type
'action #'cider-stacktrace-toggle-suppression
'suppressed suppressed
'face (if suppressed
'cider-stacktrace-suppressed-button-face
'cider-stacktrace-promoted-button-face)
'help-echo (cider-stacktrace-tooltip
(format "Click to %s these stacktraces."
(if suppressed "promote" "suppress")))))
(insert " ")))))