On Thu, Jan 8, 2009 at 2:01 AM, Zak Wilson <zak.wil...@gmail.com> wrote:
>
> Thanks for your help with this problem, Bill.
>
> The function you provided causes slime-repl-set-package to suggest the
> correct namespace, which is convenient. It doesn't appear to have any
> effect on my problem though.

The slime-find-buffer-package-function function I posted will be used
by slime in some functions that attempt to determine what the "active"
namespace is in a buffer.

You didn't mention what versions of slime and swank-clojure you are
using, so perhaps you should try upgrading to the latest code. After
you have done that, try the following simple experiment:

Create a new file in your classpath called test.clj with the following 2 lines:

(ns test)
(defn x)

Put the cursor after "(defn x)" and press C-x C-e. In the minibuffer,
does it show "#'user/x" (therefore, "x" was defined in the "user"
namespace)? If so, that is good and working as it should be working
since Clojure doesn't "know" about the "test" namespace yet.

Now, press C-x C-s to save the file and C-c C-k to compile the buffer.
Then add the following line to the file:

(defn y)

Put the cursor after "(defn y)" and press C-x C-e. In the minibuffer,
does it show "#'test/y" (therefore, "y" was defined in the "test"
namespace)? If so, that is also good and working correctly.

If you are not getting these results and you have upgraded to the
latest slime/swank-clojure, then you might have some .emacs file
settings that are causing the problem. Post your setup here if you are
still not getting these results.

- Bill

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