From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Eric Schulte" Newsgroups: gmane.emacs.devel Subject: gnuserv as persistent elisp repl Date: Mon, 10 Nov 2008 16:52:31 -0800 Message-ID: <87y6zrdqy8.fsf@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1226364774 6871 80.91.229.12 (11 Nov 2008 00:52:54 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 11 Nov 2008 00:52:54 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Nov 11 01:53:55 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KzhVy-0000Gx-VB for ged-emacs-devel@m.gmane.org; Tue, 11 Nov 2008 01:53:55 +0100 Original-Received: from localhost ([127.0.0.1]:38441 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KzhUn-0005pz-8x for ged-emacs-devel@m.gmane.org; Mon, 10 Nov 2008 19:52:41 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KzhUk-0005pm-23 for emacs-devel@gnu.org; Mon, 10 Nov 2008 19:52:38 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KzhUf-0005nD-Pp for emacs-devel@gnu.org; Mon, 10 Nov 2008 19:52:37 -0500 Original-Received: from [199.232.76.173] (port=40065 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KzhUf-0005n9-MP for emacs-devel@gnu.org; Mon, 10 Nov 2008 19:52:33 -0500 Original-Received: from rv-out-0708.google.com ([209.85.198.249]:42380) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KzhUf-0001ws-EM for emacs-devel@gnu.org; Mon, 10 Nov 2008 19:52:33 -0500 Original-Received: by rv-out-0708.google.com with SMTP id k29so3104623rvb.6 for ; Mon, 10 Nov 2008 16:52:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:subject:date :message-id:user-agent:mime-version:content-type; bh=mCRTlRWyPqDW42XK80ataaPUmwjXhfEmHjv55T5BABk=; b=ewTTtF2u2KZcbHpMpJo6R0xQmsdmGZkF+S7OhFDRDPNVXE4T3OnbfmOBYaI8C0KuMd aPLei9GJk9qZT1MmiB43hWrZkXChNTby3+k6DmKKC5Q8d9AXcEaquhlw9P/HMmui+YVv TDZzzotw+QZkYLGz25h/nugokVocnh7R8Iwus= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:subject:date:message-id:user-agent:mime-version :content-type; b=lIbY9PDWf6DE+6mcWBvqKv8PP1TsyKp3/jXO3CqbHdI52TA91F1fXo4rJD3QVkKhZI hT+tRbvzHLQX3fXaBNQhGmqueOVP+GDCVokeTf5Zp60860Lk2yzwkAUuL5tSu5IATOTU rbd4KrUHNiXOtFvVC0p9UoiOLNlEcr1EBi+M8= Original-Received: by 10.114.184.7 with SMTP id h7mr4770603waf.151.1226364751455; Mon, 10 Nov 2008 16:52:31 -0800 (PST) Original-Received: from eschulte-work (c-98-203-235-80.hsd1.wa.comcast.net [98.203.235.80]) by mx.google.com with ESMTPS id m28sm1182162poh.10.2008.11.10.16.52.30 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 10 Nov 2008 16:52:31 -0800 (PST) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:105549 Archived-At: Hi, I am working on a web-interface to some particular Emacs functionality, and would like to be able to pass elisp forms to Emacs to be evaluated, and then return the results to my application. 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. Please let me know if I am misunderstanding some aspect of gnuserv, if there is some documentation I should have already read, or if it sounds like I am approaching this in the wrong way. Thanks -- Eric