Skip to content

Commit 95a168f

Browse files
committed
Make show-prefix a required param for cider-repl-emit result
It's used in all the existing function invocations, so there's no point to have it as an optional param.
1 parent c61037e commit 95a168f

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

cider-interaction.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -669,7 +669,7 @@ in the buffer."
669669
(nrepl-make-response-handler (or buffer (current-buffer))
670670
(let (after-first-result-chunk)
671671
(lambda (buffer value)
672-
(cider-repl-emit-result buffer value t (not after-first-result-chunk))
672+
(cider-repl-emit-result buffer value (not after-first-result-chunk) t)
673673
(setq after-first-result-chunk t)))
674674
(lambda (buffer out)
675675
(cider-repl-emit-stdout buffer out))

cider-repl.el

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -698,11 +698,10 @@ If BOL is non-nil, emit at the beginning of the line."
698698
(cider-repl--insert-prompt cider-buffer-ns))))
699699
(cider-repl--show-maximum-output)))
700700

701-
(defun cider-repl-emit-result (buffer string &optional bol show-prefix)
701+
(defun cider-repl-emit-result (buffer string show-prefix &optional bol)
702702
"Emit into BUFFER the result STRING and mark it as an evaluation result.
703-
If BOL is non-nil insert at the beginning of the line.
704703
If SHOW-PREFIX is non-nil insert `cider-repl-result-prefix' at the beginning
705-
of the line."
704+
of the line. If BOL is non-nil insert at the beginning of the line."
706705
(with-current-buffer buffer
707706
(save-excursion
708707
(cider-save-marker cider-repl-output-start
@@ -771,7 +770,7 @@ the symbol."
771770
(nrepl-make-response-handler buffer
772771
(let (after-first-result-chunk)
773772
(lambda (buffer value)
774-
(cider-repl-emit-result buffer value t (not after-first-result-chunk))
773+
(cider-repl-emit-result buffer value (not after-first-result-chunk) t)
775774
(setq after-first-result-chunk t)))
776775
(lambda (buffer out)
777776
(cider-repl-emit-stdout buffer out))
@@ -782,7 +781,7 @@ the symbol."
782781
nrepl-err-handler
783782
(let (after-first-result-chunk)
784783
(lambda (buffer pprint-out)
785-
(cider-repl-emit-result buffer pprint-out nil (not after-first-result-chunk))
784+
(cider-repl-emit-result buffer pprint-out (not after-first-result-chunk))
786785
(setq after-first-result-chunk t)))))
787786

788787
(defun cider-repl--send-input (&optional newline)

0 commit comments

Comments
 (0)