branch: elpa/inf-clojure
commit 74e84231ec9565c4420019b913e3f16521dea542
Author: Hlöðver Sigurðsson <hlo...@gmail.com>
Commit: Bozhidar Batsov <bozhidar.bat...@gmail.com>
Fix get-completions for lumo (#81)
---
inf-clojure.el | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/inf-clojure.el b/inf-clojure.el
index 40356ae..6145974 100644
--- a/inf-clojure.el
+++ b/inf-clojure.el
@@ -726,7 +726,10 @@ If you are using REPL types, it will pickup the most
approapriate
(define-obsolete-variable-alias 'inf-clojure-completion-command
'inf-clojure-completion-form "2.0.0")
(defcustom inf-clojure-completion-form-lumo
- "(doall (map str (lumo.repl/get-completions \"%s\")))"
+ "(let [ret (atom)]
+ (lumo.repl/get-completions \"%s\"
+ (fn [res] (reset! ret (map str res))))
+ @ret)"
"Lumo form to query inferior Clojure for completion candidates."
:type 'string
:package-version '(inf-clojure . "2.0.0"))