[slime-devel] slime-selector r should start slime with default args
Andreas Fuchs
asf at boinkor.net
Sun Jan 8 10:25:30 UTC 2006
Hi all,
With the inferior-lisp-program variable bound to any value but a
non-nil slime-lisp-implementations variable, the slime-selector r
shortcut will start slime with inferior-lisp-program. This is a bit
inconsistent with the behavior of M-x slime. which starts the first
entry in slime-lisp-implementations (or the default entry etc.).
The following patch fixes this:
Index: slime.el
===================================================================
RCS file: /project/slime/cvsroot/slime/slime.el,v
retrieving revision 1.575
diff -u -r1.575 slime.el
--- slime.el 31 Dec 2005 15:06:09 -0000 1.575
+++ slime.el 8 Jan 2006 10:18:12 -0000
@@ -8573,7 +8573,7 @@
(cond ((slime-current-connection)
(slime-output-buffer))
((y-or-n-p "No connection: start Slime? ")
- (slime-start))))
+ (apply #'slime-start (slime-read-interactive-args)))))
(def-slime-selector-method ?s
"*slime-scratch* buffer."
Alternatively, I could see it invoke `slime' interactively. I'm not
sure what the preferred coding style is here.
Have fun,
--
Andreas Fuchs, (http://|im:asf@|mailto:asf@)boinkor.net, antifuchs
More information about the slime-devel
mailing list