From 60c9cea54315b08fb129cb57db5ade70ae28371a Mon Sep 17 00:00:00 2001 From: vemv Date: Sun, 21 Jan 2024 22:04:16 +0100 Subject: [PATCH] Don't void `nrepl-err-handler` (#3609) This was an extra measure included as part of https://github.com/clojure-emacs/cider/pull/3607 It resulted in `*cider-error*` not being shown, in certain scenarios. That particular measure wasn't critical in avoiding the issue tackled in that PR. --- cider-eval.el | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cider-eval.el b/cider-eval.el index 240f2762b..723c9dcd1 100644 --- a/cider-eval.el +++ b/cider-eval.el @@ -849,8 +849,7 @@ REPL buffer. This is controlled via (when-let ((conn (with-current-buffer buffer (cider-current-repl)))) (when (cider-nrepl-op-supported-p "analyze-last-stacktrace" conn) - (let ((nrepl-err-handler (lambda (&rest _))) ;; ignore any errors during this request to avoid any recursion - (nrepl-sync-request-timeout 4)) ;; ensure that this feature cannot possibly create an overly laggy UX + (let ((nrepl-sync-request-timeout 4)) ;; ensure that this feature cannot possibly create an overly laggy UX (when-let* ((result (nrepl-send-sync-request (thread-last (map-merge 'list '(("op" "analyze-last-stacktrace")) (cider--nrepl-print-request-map fill-column))