@@ -806,15 +806,18 @@ COMMENT-PREFIX is the comment prefix to use."
806
806
" Make a handler for evaluating and printing stdout/stderr in popup BUFFER.
807
807
808
808
This is used by pretty-printing commands and intentionally discards their results."
809
- (nrepl-make-response-handler (or buffer (current-buffer ))
810
- '()
811
- ; ; stdout handler
812
- (lambda (buffer str )
813
- (cider-emit-into-popup-buffer buffer (ansi-color-apply str)))
814
- ; ; stderr handler
815
- (lambda (buffer str )
816
- (cider-emit-into-popup-buffer buffer (ansi-color-apply str)))
817
- '()))
809
+ (cl-flet ((popup-output-handler (buffer str)
810
+ (cider-emit-into-popup-buffer buffer
811
+ (ansi-color-apply str)
812
+ nil
813
+ t )))
814
+ (nrepl-make-response-handler (or buffer (current-buffer ))
815
+ '()
816
+ ; ; stdout handler
817
+ #'popup-output-handler
818
+ ; ; stderr handler
819
+ #'popup-output-handler
820
+ '())))
818
821
819
822
(defun cider-visit-error-buffer ()
820
823
" Visit the `cider-error-buffer' (usually *cider-error*) if it exists."
@@ -1483,7 +1486,7 @@ Defaults to the current ns. With prefix arg QUERY, prompts for a ns."
1483
1486
" Refresh LOG-BUFFER with RESPONSE."
1484
1487
(nrepl-dbind-response response (out err reloading status error error-ns after before)
1485
1488
(cl-flet* ((log (message &optional face)
1486
- (cider-emit-into-popup-buffer log-buffer message face))
1489
+ (cider-emit-into-popup-buffer log-buffer message face t ))
1487
1490
1488
1491
(log-echo (message &optional face)
1489
1492
(log message face)
@@ -1577,7 +1580,10 @@ refresh functions (defined in `cider-refresh-before-fn' and
1577
1580
(when cider-refresh-show-log-buffer
1578
1581
(cider-popup-buffer-display log-buffer))
1579
1582
(when inhibit-refresh-fns
1580
- (cider-emit-into-popup-buffer log-buffer " inhibiting refresh functions\n " ))
1583
+ (cider-emit-into-popup-buffer log-buffer
1584
+ " inhibiting refresh functions\n "
1585
+ nil
1586
+ t ))
1581
1587
(when clear?
1582
1588
(cider-nrepl-send-sync-request '(" op" " refresh-clear" ) conn))
1583
1589
(cider-nrepl-send-request
0 commit comments