I use Emacs for clojure development, because Swank-clojure is a great tool. But once I get an error on slime-repl buffer, the error remains, though I fixed it or it's no more.
Reproducing way:
- Create a clojure project with a leiningen.
$lein new myproject. - At core.clj, define a function that
(defn f [] (+ 1 1)) - Start a swank-clojure.
M-x clojure-jack-in. - On a slime-repl buffer, evaluate
(f). Of course it returns2. - On a slime-repl buffer, evaluate
(g). Of course it gets errorUnable to resolve symbol: g in this context - After that, this error always appears when I try to evaluate anything in the slime-repl buffer. C-c C-k doesn't help. So I always restart Emacs.app when I got an error on slime-repl buffer.
My Environment:
Mac OS 10.7.3, Cocoa Emacs 23.4.1, clojure-mode 1.11.5(from a Marmalade), leiningen 1.7.0.
In order to confirm an error and close the debugger, hit
Qin the debugger window. (There may be restarts other than theQUITrestart available, but this, at least, should always work.)