@@ -698,7 +698,7 @@ If BOL is non-nil, emit at the beginning of the line."
698
698
(cider-repl--insert-prompt cider-buffer-ns))))
699
699
(cider-repl--show-maximum-output)))
700
700
701
- (defun cider-repl-emit-result (buffer string &optional bol )
701
+ (defun cider-repl-emit-result (buffer string &optional bol show-prefix )
702
702
" Emit into BUFFER the result STRING and mark it as an evaluation result.
703
703
If BOL is non-nil insert at the beginning of the line."
704
704
(with-current-buffer buffer
@@ -708,7 +708,8 @@ If BOL is non-nil insert at the beginning of the line."
708
708
(goto-char cider-repl-input-start-mark)
709
709
(when (and bol (not (bolp )))
710
710
(insert-before-markers " \n " ))
711
- (insert-before-markers (propertize cider-repl-result-prefix 'font-lock-face 'font-lock-comment-face ))
711
+ (when show-prefix
712
+ (insert-before-markers (propertize cider-repl-result-prefix 'font-lock-face 'font-lock-comment-face )))
712
713
(if cider-repl-use-clojure-font-lock
713
714
(insert-before-markers (cider-font-lock-as-clojure string))
714
715
(cider-propertize-region
@@ -766,17 +767,21 @@ the symbol."
766
767
(defun cider-repl-handler (buffer )
767
768
" Make an nREPL evaluation handler for the REPL BUFFER."
768
769
(nrepl-make-response-handler buffer
769
- (lambda (buffer value )
770
- (cider-repl-emit-result buffer value t ))
770
+ (let (after-first-call)
771
+ (lambda (buffer value )
772
+ (cider-repl-emit-result buffer value t (not after-first-call))
773
+ (setq after-first-call t )))
771
774
(lambda (buffer out )
772
775
(cider-repl-emit-stdout buffer out))
773
776
(lambda (buffer err )
774
777
(cider-repl-emit-stderr buffer err))
775
778
(lambda (buffer )
776
779
(cider-repl-emit-prompt buffer))
777
780
nrepl-err-handler
778
- (lambda (buffer pprint-out )
779
- (cider-repl-emit-result buffer pprint-out nil ))))
781
+ (let (after-first-call)
782
+ (lambda (buffer pprint-out )
783
+ (cider-repl-emit-result buffer pprint-out nil (not after-first-call))
784
+ (setq after-first-call t )))))
780
785
781
786
(defun cider-repl--send-input (&optional newline )
782
787
" Go to the end of the input and send the current input.
0 commit comments