[slime-devel] slime-selector ?r and slime-repl ordering

A note on slime-setup ordering. I recently noticed that slime- selector 'r' quit taking me to the REPL and instead started taking me to the *inferior-lisp* buffer. The reason turned out to be the ordering of the slime-setup in my .emacs: This: (slime-setup '(slime-fancy slime-asdf inferior-slime)) ...does not work, whereas this: (slime-setup '(inferior-slime slime-fancy slime-asdf)) works correctly. (I guess I introduced this a while back and just never noticed.) The reason is that inferior-slime and slime-repl (loaded via slime- fancy) are mutually exclusive with respect to their def-slime-selector- method ?r definitions: (def-slime-selector-method ?r -- contrib/inferior-lisp.el "SLIME Read-Eval-Print-Loop." (inferior-slime-switch-to-repl-buffer))) (def-slime-selector-method ?r -- contrib/slime-repl.el "SLIME Read-Eval-Print-Loop." (slime-output-buffer)) However neither slime-fancy (nor just slime-repl) will load without inferior-slime. Either loses with: Symbol's value as variable is void: inferior-slime-mode-map ...and so the natural tendency is to tack on inferior-slime to the end of your slime-setup which results in this bug. Please advise if there's a better way do this. Thanks, Derrell PS, I'm glad you backed out the reversed restart numbering change. Please don't do that.

* Derrell Piper [2009-10-31 23:37+0100] writes: [...]
The reason is that inferior-slime and slime-repl (loaded via slime- fancy) are mutually exclusive with respect to their def-slime-selector- method ?r definitions:
Right. [...]
However neither slime-fancy (nor just slime-repl) will load without inferior-slime. Either loses with:
Symbol's value as variable is void: inferior-slime-mode-map
I can't reproduce this. It should be possible to load slime-repl without inferior-slime. A quick grep for inferior-slime-mode-map doesn't reveal any unexpected references, so this is probably a problem with your setup. Helmut

Indeed there was, mea culpa. Thanks for checking! I'm now back to just slime-fancy and slime-asdf. Derrell On Nov 1, 2009, at 2:42 AM, Helmut Eller wrote:
I can't reproduce this. It should be possible to load slime-repl without inferior-slime. A quick grep for inferior-slime-mode-map doesn't reveal any unexpected references, so this is probably a problem with your setup.
participants (2)
-
Derrell Piper
-
Helmut Eller