Skip to content

Commit 241c5d0

Browse files
author
Bozhidar Batsov
committed
[Fix #510] Handle differently eldoc info obtained from the middleware
Eldoc data obtained from evaluation of inlined Clojure code needs to be read, but this does not apply to eldoc data obtained from the middleware.
1 parent 0e149df commit 241c5d0

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

cider-eldoc.el

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,9 @@ POS is the index of the argument to highlight."
7676
POS is the index of current argument."
7777
(concat "("
7878
(mapconcat (lambda (args) (cider-highlight-arglist args pos))
79-
(read arglist) " ") ")"))
79+
arglist
80+
" ")
81+
")"))
8082

8183
(defun cider-eldoc-info-in-current-sexp ()
8284
"Return a list of the current sexp and the current argument index."
@@ -105,7 +107,7 @@ POS is the index of current argument."
105107
(value (when thing
106108
(cider-get-raw-value (cider-tooling-eval-sync form nrepl-buffer-ns)))))
107109
(unless (string= value "nil")
108-
value)))
110+
(read value))))
109111

110112
(defun cider-eldoc-arglist (thing)
111113
"Return the arglist for THING."

0 commit comments

Comments
 (0)