I agree, this has also bothered me for a while.  It would be really nice if
the injections would repeat whenever you change namespace.

On Tue, Jul 9, 2013 at 10:41 PM, Russell Mull <russell.m...@gmail.com>wrote:

> I have a profiles.clj that looks like this:
>
> {:user
>  {:dependencies [[org.clojure/tools.nrepl "0.2.3"]]
>
>   :injections [(use 'clojure.repl)
>                (use 'clojure.pprint)
>                (use 'clojure.java.javadoc)]}}
>
>
> And the repl behaves like this:
>
> ; nREPL 0.1.8-preview
> user> *(doc list)*
> -------------------------
> clojure.core/list
> ([& items])
>   Creates a new list containing the items.
> nil
> user> *(ns foo)*
> nil
> foo> *(doc list)*
> CompilerException java.lang.RuntimeException: Unable to resolve symbol:
> doc in this context, compiling:(NO_SOURCE_PATH:1:1)
>
>
> Which is very frustrating. Is there a way to keep those namespaces
> refer-ed even after I change namespace in the repl? My google-fu has failed
> me.
>
> I'm using Clojure 1.5.1, emacs 24, lein 2.2, and nrepl.el 0.1.8-preview.
>
> - Russell
>
> --
> --
> You received this message because you are subscribed to the Google
> Groups "Clojure" group.
> To post to this group, send email to clojure@googlegroups.com
> Note that posts from new members are moderated - please be patient with
> your first post.
> To unsubscribe from this group, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en
> ---
> You received this message because you are subscribed to the Google Groups
> "Clojure" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to clojure+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to