views:

338

answers:

2

I've been caught up in long running computations lately thanks to Project Euler and I'd like to know how to abort an evaluation and return to the REPL prompt. I'm running the standard Clojure Box version of Emacs. I tried the obvious REPL > Interrupt Lisp Process and Slime > Interrupt Command but neither kill the execution and return my REPL prompt.

+5  A: 

Hit control c twice. If you're in *slime-repl clojure* then C-c C-c will kill the process and return you to the repl prompt. If you're in the *inferior-lisp* buffer, then you'll probably kill the clojure process, meaning that you'll have to restart slime (with M-x slime). If you don't have a slime repl buffer then, M-x slime-repl should give you one. You can use this as a repl to get a few extra features (try pressing the comma and tab, and see what's available ;)

l0st3d
rcampbell
*huh* ... works for me ... are you in the slime repl ? or a buffer called *inferior-lisp* ??
l0st3d
It's strange; this *sometimes* works for me, but other times not
rcampbell
maybe this will be helpful ? http://blog.n01se.net/?p=85
l0st3d
+2  A: 

When things get really fowled you can kill your lisp instance with M-x slime-quit-lisp and then restart it with M-x slime

Arthur Ulfeldt