emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: gnuserv as persistent elisp repl


From: Stefan Monnier
Subject: Re: gnuserv as persistent elisp repl
Date: Mon, 10 Nov 2008 22:13:17 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux)

> Currently I am using gnuserv to pass elisp to a persistent Emacs, and
> then collect the results using the `-batch' option of gnuclient.  Is it
> possible (or would it be with a reasonable amount of devel effort on my
> part) to force gnuclient to remain open after evaluating and returning
> the results of elisp forms, in effect acting as an elisp REPL?  I would
> like this option to avoid the overhead of starting a new gnuclient
> process every time I evaluate an elisp form.

I do not know gnuserv, but at least emacsclient does not offer this
functionality, although it's been asked for already.  IT's not
fundamentally difficult to implement, but it's difficult to integrate it
with the current server.el/emacsclient code, which is why it hasn't been
done yet.

This said, for a web-interface, one option might be to let Emacs run the
web-server for you.  Eric Marsden wrote an httpd.el a while ago, and
since then Emacs was added server sockets so it could be improved so it
doesn't require any external helper process.  This would be easier since
you don't need to care about integrating with the server.el code.

Alternatively, you could write a bit of Elisp code that implements the
FastCGI protocol.


        Stefan





reply via email to

[Prev in Thread] Current Thread [Next in Thread]