Ben Wing <ben(a)666.com> writes:
A subprocess would be preferred. (Until someone writes a
foreign-function
interface so you can call arbitrary C functions from Lisp ...)
Well, the reason I didn't start writing it as a module is that it is going
to hook into the Xt or unixoid event loops, since you can get a file
descriptor that gets tickled whenever new data is available. This is done
with the 'SmNexternalNotifier' attribute in the SmArg list sent to
SmOpen(). I was planning on just throwing this into the event loop. I'm
not sure if we can currently do this from the module API or not.
The route I would take with a subprocess is to use (make-event ...) with
data from the subprocess.
-Bill P.