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

Dmitry Petukhov dmgenp at gmail.com
Tue Feb 14 12:47:05 CST 2006


On 2/14/06, Dmitry Petukhov <dmgenp at gmail.com> wrote:
>
>
>
> > In my opinion, better way is to select() on swank socket in a separate
> > process, and alert vim instance via netbeans or --remote-send when we have
> > some data. Code within vim instance can talk with this process through any
> > IPC mechanism. This way we don't need periodic events in vim at all. This
> > also can be done with threads, but with separate process vim have less
> > chance to hang if something goes wrong in perl code.
> >
>
> Just thought - why we can't alert vim directly from swank ?
>
> looks like (encode-message) is a good place to do it
>
>
>
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.lispniks.com/pipermail/slimpl/attachments/20060214/8f6d9c66/attachment.html


More information about the slimpl mailing list