I figured out that I can run the command 'slime-repl' and get a valid
repl.

So the code I posted is all that is required to allow emacs to connect
to your running process.  Amazingly short.

Chris

On Jan 25, 10:35 am, chris <cnuern...@gmail.com> wrote:
> I have embedded clojure-swank in my program like so:
>
> (defn ui-start-swank-server
>   "Start a swank server.  I think this prints out
> a port number but I am not certain"
>   [logger-ref]
>   (with-bindings
>    (let [fname (.getCanonicalPath (fs-get-temp-file "swank"))]
>      (start-server fname)
>      (log-message @logger-ref "ui" :info "Started swank server:
> " (slurp fname)))))
>
> When trying to connect using slime-connect to the printed port number,
> I get (in the messages):
>
> Connecting to Swank on port 49534.. [2 times]
> Versions differ: 2009-01-23 (slime) vs. nil (swank). Continue? (y or
> n)
> error in process filter: ad-Orig-error: No inferior lisp process
> error in process filter: No inferior lisp process
>
> Emacs is still connected but I get no slime repl.  Is everything
> working and is there a command that starts the slime repl?  I am using
> the latest from CVS.
>
> Chris
--~--~---------~--~----~------------~-------~--~----~
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