summaryrefslogtreecommitdiff
path: root/cider-repl.el
diff options
context:
space:
mode:
authorArtur Malabarba <bruce.connor.am@gmail.com>2015-09-20 14:57:15 +0100
committerArtur Malabarba <bruce.connor.am@gmail.com>2015-09-23 12:41:56 +0100
commit4e2aaca4da8216023c613295a4b633a6aa68caeb (patch)
tree4707d158b69b78e190fb52e30b9f187f4cdec8e3 /cider-repl.el
parentffe67d966da2da8a8be34c667fffc7951d451b6b (diff)
Fix some undeclared functions in nrepl-client.el
Futurely, we should make it so that nrepl doesn't rely on these functions. But it's better to get rid of the warnings for now so that we can have unit tests fail on warnings.
Diffstat (limited to 'cider-repl.el')
-rw-r--r--cider-repl.el3
1 files changed, 3 insertions, 0 deletions
diff --git a/cider-repl.el b/cider-repl.el
index bd1fb33d..8c8988b9 100644
--- a/cider-repl.el
+++ b/cider-repl.el
@@ -191,6 +191,8 @@ Currently, this is only used to keep `cider-repl-type' updated."
(-when-let (ns-dict (nrepl-dict-get changed-namespaces (cider-current-ns)))
(cider-refresh-dynamic-font-lock ns-dict))))))))))
+(declare-function cider-default-err-handler "cider-interaction")
+
(defun cider-repl-create (endpoint)
"Create a REPL buffer and install `cider-repl-mode'.
ENDPOINT is a plist as returned by `nrepl-connect'."
@@ -210,6 +212,7 @@ ENDPOINT is a plist as returned by `nrepl-connect'."
(with-current-buffer (get-buffer-create buff-name)
(unless (derived-mode-p 'cider-repl-mode)
(cider-repl-mode))
+ (setq nrepl-err-handler #'cider-default-err-handler)
(cider-repl-reset-markers)
(add-hook 'nrepl-response-handler-functions #'cider-repl--state-handler nil 'local)
(add-hook 'nrepl-connected-hook 'cider--connected-handler nil 'local)