On 2010-10-05, at 3:13 PM, Alan wrote:

> Hm. How are you connecting to swank? I use M-x slime-connect (then hit
> yes/<RET> a few times); as soon as that's done, a new buffer with the
> clojure REPL appears. Then I can switch to it just as with any buffer;
> C-x C-o or similar. The buffer it creates is called *slime-repl
> clojure*. That should be all you have to do. I'm curious what you're
> doing, to cause swank to "work", but not give you a REPL.

I'm connecting exactly that way, a couple of questions about host and port, 
then complaints about version incompatibilities which are answered by me with a 
'y', then a success message. The only buffer created is *slime-events*. I'm on 
OSX with three versions of emacs that I can use, all three do exactly the same 
thing.

That version incompatibility thing I've googled, nobody seems to think it 
matters.

Cheers,
Bob

> 
> On Oct 5, 11:57 am, Bob Hutchison <hutch-li...@recursive.ca> wrote:
>> Hi,
>> 
>> I've been using Clojure & Leiningen for a while, but never reliably with 
>> emacs. To make things worse I really don't know emacs (vi since 1978 or 
>> something, but not emacs, and now I think emacs hates me). Questions below.
>> 
>> On 2010-09-28, at 7:37 AM, Mike Meyer wrote:
>> 
>> 
>> 
>>> Actually, this sounds like standard behavior for an integrated
>>> EMACS/REPL to me: "sending" code from the edited file to the REPL
>>> evaluates them in the REPL, but doesn't print them: you either get a
>>> message in the minibuffer or a short note in the buffer. Normal usage
>>> is to edit a function, send it to the REPL, then switch to the repl
>>> and test the newly defined function(s) (usually just M-p to recall the
>>> just failed test).
>> 
>> Okay. I'm feeling like a total idiot here.
>> 
>> What do you mean by 'switch to the repl', in fact, how do you do that?
>> 
>> I'm using lein swank, I can connect to it, I can evaluate expressions and 
>> get the correct results, I can see the communication going between emacs and 
>> lein swank in the *slime-events* buffer. I switched the mode of the 
>> *scratch* buffer to Clojure and I can ^X^E stuff in there and get the 
>> results.
>> 
>> What I cannot do is open up a repl. If I us ^C^Z it'll try to run a program 
>> called 'lisp', and if it isn't there emacs will moan. If I make a shell 
>> script called 'lisp' and put 'lien repl' in it, emacs will start the script 
>> start up a new repl and show the prompt... but it'll be running from the 
>> wrong place.
>> 
>> What is this lisp program? How do I bring up a repl that uses the swank I'm 
>> connected to? Is this even possible?
>> 
>> Thanks *so* much in advance.
>> 
>> Cheers,
>> Bob
>> 
>> 
>> 
>>> In particular, SWANK/SLIME prints the value of the last expression in
>>> the evaluate region in the minibuffer. At least, that's what' it's
>>> always done for me.
>> 
>>>       <mike
>>> --
>>> Mike Meyer <m...@mired.org>            http://www.mired.org/consulting.html
>>> Independent Network/Unix/Perforce consultant, email for more information.
>> 
>> ----
>> Bob Hutchison
>> Recursive Design Inc.http://www.recursive.ca/
>> weblog:http://xampl.com/so
> 
> -- 
> 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

----
Bob Hutchison
Recursive Design Inc.
http://www.recursive.ca/
weblog: http://xampl.com/so




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