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
2009-10-31 23:08:26
rcampbell
2009-11-01 10:05:36
*huh* ... works for me ... are you in the slime repl ? or a buffer called *inferior-lisp* ??
l0st3d
2009-11-01 20:22:27
It's strange; this *sometimes* works for me, but other times not
rcampbell
2009-12-07 20:50:38
maybe this will be helpful ? http://blog.n01se.net/?p=85
l0st3d
2010-02-03 14:35:43
+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
2009-11-02 18:38:53