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

Brad Beveridge brad.beveridge at gmail.com
Tue Feb 14 13:18:20 CST 2006


Now that is pretty cool!  It's good to see that we have a couple of
different ways to potentially tackle this problem.  Personally, I'm
going to keep plugging away at the Netbeans road until someone else
releases code that is easy to contribute to.  I'm not doing this to be
contrary - I just think it is better to:
a) Do something
b) Have multiple approaches this early in the project

Anyhow, my basic netbeans code sort works, I have a Lisp NetBeans
server that connects to Vim & Vim can send forms to lisp for
evaluation.  I'll get it cleaned up and packaged, then send it out.

Cheers
Brad

On 2/14/06, Dmitry Petukhov <dmgenp at gmail.com> wrote:
>
>
> 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.
>
> _______________________________________________
> slimpl mailing list
> slimpl at lispniks.com
> http://www.lispniks.com/mailman/listinfo/slimpl
>
>
>


More information about the slimpl mailing list