From 07ae8b335530cb919f9cbd7e5fc591909313767b Mon Sep 17 00:00:00 2001 From: ak-coram Date: Mon, 7 Jan 2019 16:47:03 +0100 Subject: [PATCH 1/2] Detect the repl type in cider-sync-request:info based on the current buffer --- cider-client.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cider-client.el b/cider-client.el index 3853a5b03..657de0318 100644 --- a/cider-client.el +++ b/cider-client.el @@ -474,7 +474,7 @@ CONTEXT represents a completion context for compliment." ,@(when symbol `("symbol" ,symbol)) ,@(when class `("class" ,class)) ,@(when member `("member" ,member))) - (cider-nrepl-send-sync-request)))) + (cider-nrepl-send-sync-request (cider-current-repl))))) (if (member "no-info" (nrepl-dict-get var-info "status")) nil var-info))) From 24c93169f8ec24930b08238f077e6e0a288c8f56 Mon Sep 17 00:00:00 2001 From: ak-coram Date: Mon, 14 Jan 2019 10:38:53 +0100 Subject: [PATCH 2/2] Detect repl type for completion and eldoc ops based on the current buffer --- cider-client.el | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/cider-client.el b/cider-client.el index 657de0318..8a1555680 100644 --- a/cider-client.el +++ b/cider-client.el @@ -458,7 +458,8 @@ CONTEXT represents a completion context for compliment." "ns" ,(cider-current-ns) "symbol" ,str "context" ,context) - (cider-nrepl-send-sync-request nil 'abort-on-input)))) + (cider-nrepl-send-sync-request (cider-current-repl) + 'abort-on-input)))) (nrepl-dict-get dict "completions"))) (defun cider-sync-request:complete-flush-caches () @@ -486,7 +487,8 @@ CONTEXT represents a completion context for compliment." ,@(when symbol `("symbol" ,symbol)) ,@(when class `("class" ,class)) ,@(when member `("member" ,member))) - (cider-nrepl-send-sync-request nil 'abort-on-input)))) + (cider-nrepl-send-sync-request (cider-current-repl) + 'abort-on-input)))) (if (member "no-eldoc" (nrepl-dict-get eldoc "status")) nil eldoc)))