clojure-emacs / ac-nrepl

[DEPRECATED] Emacs auto-complete backend for nrepl completions
74 stars 11 forks source link

Add `ac-nrepl-current-ns': checks `nrepl-current-ns' with `the-ns'. #41

Closed abo-abo closed 11 years ago

abo-abo commented 11 years ago

This my try at a fix for issue #40. The completion works but Namespace not found message is still displayed.

purcell commented 11 years ago

Thanks for this. I think I'll play with it a bit and see if there's a way to avoid the additional backend call which this introduces.

purcell commented 11 years ago

Thinking about this, I would like to see it fixed in nrepl rather than patched here -- I'm not sure that falling back to the user namespace is appropriate when editing arbitrary files, because user can contain any number of symbols which are not available in the namespace of a given .clj file.

And if that's not possible, I think it might be preferable to detect when the current namespace has not been compiled and then tell the user to compile it.