summaryrefslogtreecommitdiff
path: root/cider-resolve.el
diff options
context:
space:
mode:
authorArtur Malabarba <bruce.connor.am@gmail.com>2015-09-10 22:32:24 +0100
committerArtur Malabarba <bruce.connor.am@gmail.com>2015-09-10 22:33:18 +0100
commita2cbb8e15f09777a1011139662562a882ea29666 (patch)
tree49c1049123025cd0db23d0b253e0c96f505b5ba0 /cider-resolve.el
parent823fa4fd9638bef936723818d2cbc9fec89de527 (diff)
Use plist instead of dict when compiling keywords
This gets around a corner case where the namespace had no interns.
Diffstat (limited to 'cider-resolve.el')
-rw-r--r--cider-resolve.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/cider-resolve.el b/cider-resolve.el
index fdcb67d5..4103539d 100644
--- a/cider-resolve.el
+++ b/cider-resolve.el
@@ -110,14 +110,14 @@ This will be clojure.core or cljs.core depending on `cider-repl-type'."
"clojure.core")))))
(defun cider-resolve-ns-symbols (ns)
- "Return a dict of all valid symbols in NS.
+ "Return a plist of all valid symbols in NS.
Each entry's value is the metadata of the var that the symbol refers to.
NS can be the namespace name, or a dict of the namespace itself."
(-when-let (dict (if (stringp ns)
(cider-resolve--get-in ns)
ns))
(nrepl-dbind-response dict (interns refers aliases)
- (append interns
+ (append (cdr interns)
(nrepl-dict-flat-map (lambda (sym var) (list sym (cider-resolve-var ns var)))
refers)
(nrepl-dict-flat-map (lambda (alias namespace)