[slimpl] Hello list, and an idea about asynchronous events

Dmitry Petukhov dmgenp at gmail.com
Tue Feb 14 22:02:31 CST 2006


 indeed, stuffing
>
> (sb-ext:run-program "/usr/bin/vim" '("vim" "--servername" "lisp"
> "--remote-send" "<F1>") :output t)
>
> in (encode-message) just before (write-string string stream) does the
> trick - help window appears in vim on every event in swank.
>
> Of course this do not need to be this ugly, it might be a function which
> talks to vim directly, or something alike. This is just a proof of concept.
>

alert function might be implemented as a closure, which will be passed to
swank startup function, like

(load "slimpl-swank-alerter.lisp")
(load "swank-loader.lisp")
(swank:create-server :dont-close t :encode-message-callback
slimp-swank-alerter:alert-callback)

in create-server,
(setf *encode-message-callback* encode-message-callback)
and in encode-message,
(funcall *encode-message-callback*)

this is very little code to add to swank, and maybe we even can talk slime
developers into adding this code to swank permanently :)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.lispniks.com/pipermail/slimpl/attachments/20060215/b272d5c8/attachment.html


More information about the slimpl mailing list