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

Dmitry Petukhov dmgenp at gmail.com
Tue Feb 14 23:33:10 CST 2006


On 2/15/06, Dmitry Petukhov <dmgenp at gmail.com> wrote:
>
>
>
>
>  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 :)
>


The problem is, this all works only locally :-(.

well, back to external-perl-process idea then. IMO, select()/poll() on a
socket is better than checking socket status periodically.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.lispniks.com/pipermail/slimpl/attachments/20060215/56255d40/attachment-0001.html


More information about the slimpl mailing list