Skip to content

Commit 11d34cc

Browse files
committed
Make it possible to disable redirecting the server output to the REPL
1 parent d8494c2 commit 11d34cc

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
* [#2244](https://github.com/clojure-emacs/cider/issues/2244): Display the REPL type in the modeline.
2222
* [#2238](https://github.com/clojure-emacs/cider/pull/2238): Allow specifying predicates for entries in `cider-jack-in-lein-plugins` and `cider-jack-in-nrepl-middlewares`.
2323
* Add support for test selectors. If test all or all loaded is called with a prefix ask for filter test selectors in the minibuffer and only run those tests in the project which match the filters. Add variation of test namespace which asks for filter selectors the same way and only runs a subset of the namespace tests.
24+
* Add a configuration variable allowing to control whether server output should be redirected to the REPL (`cider-redirect-server-output-to-repl`).
2425

2526
### Bugs Fixed
2627

cider.el

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1139,6 +1139,15 @@ message in the REPL area."
11391139
"CIDER's version (%s) does not match cider-nrepl's version (%s). Things will break!"
11401140
cider-version middleware-version))))
11411141

1142+
(defcustom cider-redirect-server-output-to-repl t
1143+
"Controls whether nREPL server output would be redirected to the REPL.
1144+
When non-nil the output would end up in both the nrepl-server buffer (when
1145+
available) and the matching REPL buffer."
1146+
:type 'boolean
1147+
:group 'cider
1148+
:safe #'booleanp
1149+
:package-version '(cider . "0.17.0"))
1150+
11421151
(defun cider--subscribe-repl-to-server-out ()
11431152
"Subscribe to the nREPL server's *out*."
11441153
(cider-nrepl-send-request '("op" "out-subscribe")
@@ -1158,7 +1167,8 @@ buffer."
11581167
(cider--check-required-nrepl-version)
11591168
(cider--check-clojure-version-supported)
11601169
(cider--check-middleware-compatibility)
1161-
(cider--subscribe-repl-to-server-out)
1170+
(when cider-redirect-server-output-to-repl
1171+
(cider--subscribe-repl-to-server-out))
11621172
(when cider-auto-mode
11631173
(cider-enable-on-existing-clojure-buffers))
11641174
;; Middleware on cider-nrepl's side is deferred until first usage, but

0 commit comments

Comments
 (0)