On Wed, Jan 7, 2009 at 7:25 PM, Zak Wilson <zak.wil...@gmail.com> wrote:
>
> I'm using the latest Slime, swank-clojure and Clojure, with a fix from
> Chousuke to start up the REPL properly. I have no problem setting the
> namespace in the REPL, but anything I eval directly from a file (i.e.
> with C-x C-e) gets evaluated in the user ns.
>
> The ns in the *inferior-lisp* buffer remains user regardless of the
> active file or setting the ns in the slime-repl, however, setting it
> to something else manually seems to have no effect on the problem.
>
> The file's namespace is set up properly. I can load it with require.
>
> I heard this was a problem with an older version of swank-clojure, but
> I'm quite certain

You may have multiple source files open and the namespace can be
different for each source buffer. First, compile the buffer with C-c
C-k. Then, evaluate new definitions in the same source file and they
will be evaluated in the correct namespace (regardless of what
namespace is active in the repl).

--
Bill Clementson

--~--~---------~--~----~------------~-------~--~----~
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
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to