[slime-devel] Invoking Swank from ccl

Terje Norderhaug terje at in-progress.com
Thu Dec 17 16:57:29 UTC 2009


On Dec 17, 2009, at 8:15 AM, Patrick May wrote:
> 	I have a server that I can connect to via Slime and Swank to  
> modify the image from Emacs.  I'd like to programmatically send a  
> command from Clozure on my laptop to compile and load a new file on  
> the server.  Is there any documentation for Swank that shows how to  
> do this?

The protocol is not yet documented, but you can set swank::*log- 
events* to T, evaluate your command in Slime with CLZ as target, then  
peek into the log to reverse engineer the communication between Slime  
and CLZ. Open a stream to the swank server then output a similar  
string to send an RPC from CLZ on your laptop to the server lisp.

Maybe it would be useful to include a Common Lisp swank client module  
in the Slime repository? MCLIDE includes a CLOS based swank client  
(an extension/update of Madhu's swank client contribution) that could  
be used as a starting point. Such a swank client could also be used  
to produce a test harness for swank.

-- Terje Norderhaug
    terje at in-progress.com








More information about the slime-devel mailing list