Re: Confusion with namespaces and SLIME

2009-09-06 Thread Mathias Dahl
(defvar clojure-stuff-path ~/clj   Where all cool Clojure stuff lies.) (defun slime-clojure-internal-swank ()   (interactive)   (add-to-list 'load-path (concat clojure-stuff-path /clojure-mode))   (add-to-list 'load-path (concat clojure-stuff-path /swank- clojure))   (require

Re: Confusion with namespaces and SLIME

2009-09-05 Thread Mathias Dahl
I have the same problem and I have the latest version of all involved components. I run Emacs 23.1 on Ubuntu. Any ideas on how to resolve it? The trick of using `ns' and `use' separately does not seem to solve the problem for me. It feels like there are two or even more environments behind the

Re: Confusion with namespaces and SLIME

2009-09-05 Thread Mathias Dahl
Okay, one of my usual habits seems to be to answer my own questions... I figured this out. In the quest to get emacs talking to a separately started swank-server I made a too light emacs setup and totally skipped the swank-clojure.el and swank-clojure-autoload.el files. In them was the solution.

Re: Confusion with namespaces and SLIME

2009-07-29 Thread martin_clausen
I have had the same experience. I solved it by using (ns ...) and (use separately). /mac On Jul 27, 9:41 pm, Tom Emerson tremer...@gmail.com wrote: Hi all, I'm working with a Clojure file that creates a namespace to include all of its functions: (ns foobar) I load slime and then

Re: Confusion with namespaces and SLIME

2009-07-28 Thread Tom Emerson
On Mon, Jul 27, 2009 at 5:09 PM, Phil Hagelbergp...@hagelb.org wrote: [snip] What exactly are you trying? The following steps should show the problem I'm having: 1. Create a file, foo.clj, containing (ns foo) (def qux 5) (defn bar [x] (* x qux)) 2. Start Slime. 3. Back in foo.clj, C-c

Re: Confusion with namespaces and SLIME

2009-07-28 Thread Daniel Janus
The following steps should show the problem I'm having: [...] This sequence works perfectly well for me with SLIME 2009-07-15, clojure-mode 8c333628bf507749dd78b312333130b00e6ec06f, swank-clojure 6cd3057d48e00da485cdf43b2b170816e5187c40, Emacs 22.2.1 (on Ubuntu 9.04), and both Clojure 1.0.0

Re: Confusion with namespaces and SLIME

2009-07-28 Thread Tom Emerson
Thanks Daniel, I'll upgrade all the components and see how things go. On Tue, Jul 28, 2009 at 10:19 AM, Daniel Janusnath...@gmail.com wrote: The following steps should show the problem I'm having: [...] This sequence works perfectly well for me with SLIME 2009-07-15, clojure-mode

Confusion with namespaces and SLIME

2009-07-27 Thread Tom Emerson
Hi all, I'm working with a Clojure file that creates a namespace to include all of its functions: (ns foobar) I load slime and then compile/load the file (C-c C-k), then switch the slime REPL to use the 'foobar' namespace. So far, so good: symbols in that namespace are accessible in the repl

Re: Confusion with namespaces and SLIME

2009-07-27 Thread Phil Hagelberg
Tom Emerson tremer...@gmail.com writes: When I switch back to the clojure file and modify or add a function that refers to another symbol defined in that namespace, and attempt to evaluate the sexp with C-c C-e then the SLIME repl throws an exception saying that the symbols cannot be