On Dec 14, 10:55 pm, Phil Hagelberg <p...@hagelb.org> wrote:

> How did you install slime? If you use trunk of slime you will run into
> breaking changes for which swank-clojure hasn't been updated yet. It's
> best to use ELPA, the Emacs package manager. (http://tromey.com/elpa)

I tried to use ELPA at first but I ran into some issues that I no
longer recall.  I ended up installing Clojure Box 1.0 from
http://clojure.bighugh.com thinking that would give me a consistent
collection of pieces.  Since I already had a pretty extensively
customized emacs already installed, I didn't use the emacs from
clojure box.  Instead I modified my _emacs file to use the pieces CB
installed.

The relevant portion of my _emacs is:

;; clojure-mode

(add-to-list 'load-path "C:\\Program Files (x86)\\Clojure Box\\clojure-
mode")
(require 'clojure-mode)

;; swank-clojure

(add-to-list 'load-path "C:\\Program Files (x86)\\Clojure Box\\swank-
clojure")

(require 'swank-clojure-autoload)

(swank-clojure-config
 (setq swank-clojure-jar-path "C:\\Program Files (x86)\\Clojure Box\
\clojure\\clojure-1.0.0.jar")
 (setq swank-clojure-extra-classpaths (list
                                       "C:\\Program Files (x86)\
\Clojure Box\\clojure-contrib\\clojure-contrib.jar"
                                       "C:\\projects\\clojure\
\ProgrammingClojure.code"
                                       )
       )
 )

;; slime

(eval-after-load "slime"
  '(progn (slime-setup '(slime-repl))))

(add-to-list 'load-path "C:\\Program Files (x86)\\Clojure Box\\slime-
cvs")
(require 'slime)
(slime-setup)


> > Annoyingingly, emacs claims "C-c C-k is undefined" when I ask the help
> > system about that binding.
>
> Sounds like you're invoking help from a context in which slime-mode is
> not enabled; probably due to installing by hand and forgetting a step?

I did some more digging and solved this one myself.  I had rebound
"help-for-help" to an alternate key sequence so that I could use ^H
for something else that I now no longer need.  When I reverted these
changes, ^H k C-c C-k worked as expected.

> Slime was designed for use with Common Lisp, which has a distinction
> between compiled and interpreted code. Clojure has no interpreter, so
> any way of loading in the code runs it through the compiler.

Ah, OK.  That explains the overload of the term "compile"

> > [error navigation woes]
>
> There are some features of Slime that have not been ported to Clojure
> yet and still only work in CL. Unfortunately the author of the Clojure
> port has dropped it and I am left maintaining it myself, and there are
> still several portions of the code that I haven't gotten a chance to
> dive into yet.

Oh, so can you confirm that error navigation is basically broken?
Actually, I guess the relevant question is what CB 1.0's level of
functionality is.  If I can get access to a machine without emacs
currently installed on it, I'll try to run the straight CB install and
see how it behaves.

   Thanks,
   Mike

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

Reply via email to