Hi all,
Having now got a SWANK server that doesn't kill its host Lisp when it is stopped, I'm wondering if it's possible to close a SLIME connection without stopping the SWANK server?
At the moment, when I do ',disconnect' in my SLIME REPL it stops the SWANK server and I have to re-attach to the SBCL image (using attachtty) and recreate the SWANK server before I can re-connect again with SLIME.
I've tried setting swank:*dont-close* to true, but it makes no difference.
Perhaps ',disconnect' is supposed to stop the SWANK server... I don't know.
My swank:*comunication-style* is currently 'spawn'. I wonder if changing this might affect things? (Strangely, swank-backend:preferred-communication-style is unbound).
Kind regards,
Seb
I don't know how to do it if you start your Lisp and Slime with m-x slime. If you start the lisp first, however, and run SWANK:CREATE-SERVER, with a true DONT-CLOSE arg (or SWANK:*DONT-CLOSE* set true), then you can use m-x slime-connect to connect to it, and m-x slime-disconnect will not shut down the server.
-Bill
On Sat, Oct 10, 2009 at 8:00 AM, Sebastian Tennant sebyte@smolny.plus.com wrote:
Hi all,
Having now got a SWANK server that doesn't kill its host Lisp when it is stopped, I'm wondering if it's possible to close a SLIME connection without stopping the SWANK server?
At the moment, when I do ',disconnect' in my SLIME REPL it stops the SWANK server and I have to re-attach to the SBCL image (using attachtty) and recreate the SWANK server before I can re-connect again with SLIME.
I've tried setting swank:*dont-close* to true, but it makes no difference.
Perhaps ',disconnect' is supposed to stop the SWANK server... I don't know.
My swank:*comunication-style* is currently 'spawn'. I wonder if changing this might affect things? (Strangely, swank-backend:preferred-communication-style is unbound).
Kind regards,
Seb
Emacs' AlsaPlayer - Music Without Jolts Lightweight, full-featured and mindful of your idyllic happiness. http://home.gna.org/eap
slime-devel site list slime-devel@common-lisp.net http://common-lisp.net/mailman/listinfo/slime-devel
Sebastian Tennant sebyte@smolny.plus.com writes:
Hi all,
Having now got a SWANK server that doesn't kill its host Lisp when it is stopped, I'm wondering if it's possible to close a SLIME connection without stopping the SWANK server?
At the moment, when I do ',disconnect' in my SLIME REPL it stops the SWANK server and I have to re-attach to the SBCL image (using attachtty) and recreate the SWANK server before I can re-connect again with SLIME.
I've tried setting swank:*dont-close* to true, but it makes no difference.
I don't know how and when you are setting it, but it should work. Try passing :dont-close t directly to CREATE-SERVER.
Perhaps ',disconnect' is supposed to stop the SWANK server... I don't know.
My swank:*comunication-style* is currently 'spawn'. I wonder if changing this might affect things? (Strangely, swank-backend:preferred-communication-style is unbound).
FWIW, it's swank-backend::preferred-communication-style
Quoth Stas Boukarev stassats@gmail.com:
Try passing :dont-close t directly to CREATE-SERVER.
That's solved it. Thanks (to Bill too).
FWIW, it's swank-backend::preferred-communication-style
Ah. The manual needs correcting in that case:
"You can check the default style by calling `SWANK-BACKEND:PREFERRED-COMMUNICATION-STYLE'. You can also override the default by setting `SWANK:*COMMUNICATION-STYLE*' in your Swank init file."
Thanks again.
Seb