From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Sharad Pratap Newsgroups: gmane.emacs.help Subject: REPL of emacs lisp connected to instance of emacs server outside of emacs frame/window Date: Fri, 15 Oct 2010 16:39:19 +0530 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1287142854 21656 80.91.229.12 (15 Oct 2010 11:40:54 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 15 Oct 2010 11:40:54 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Oct 15 13:40:53 2010 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1P6iea-0000rq-Of for geh-help-gnu-emacs@m.gmane.org; Fri, 15 Oct 2010 13:40:53 +0200 Original-Received: from localhost ([127.0.0.1]:35321 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P6iea-0002Ta-6O for geh-help-gnu-emacs@m.gmane.org; Fri, 15 Oct 2010 07:40:52 -0400 Original-Received: from [140.186.70.92] (port=49478 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P6idu-0002Sd-Fc for help-gnu-emacs@gnu.org; Fri, 15 Oct 2010 07:40:11 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P6idt-0000g0-4T for help-gnu-emacs@gnu.org; Fri, 15 Oct 2010 07:40:10 -0400 Original-Received: from lo.gmane.org ([80.91.229.12]:56474) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P6ids-0000ex-Qa for help-gnu-emacs@gnu.org; Fri, 15 Oct 2010 07:40:09 -0400 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1P6ido-0000S5-Jb for help-gnu-emacs@gnu.org; Fri, 15 Oct 2010 13:40:04 +0200 Original-Received: from 119.82.106.147 ([119.82.106.147]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 15 Oct 2010 13:40:04 +0200 Original-Received: from sh4r4d by 119.82.106.147 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 15 Oct 2010 13:40:04 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 55 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 119.82.106.147 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux) Jabber-ID: sh4r4d@gmail.com Cancel-Lock: sha1:sMk3kqHWS4cABWr7lt8cbzxsWdo= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:75131 Archived-At: Hi All, Briefly I am searching for emacsrepl for emacs in analogy of Mozrepl for mozilla. I need to evaluate few emacs-lisp sexp from common-lisp program, form slime mailing list http://news.gmane.org/gmane.lisp.slime.devel I got suggestion to use swank::eval-in-emacs it has worked, but later I have found it will only work in SLIME mode inside emacs frame, I try using swank::eval-in-emacs from common-lisp that has it swank server opened at 4005 and emacs server has already connected to it, I am always getting nil only. So I am searching some other option like if running instance of emacs (emacs server) could be connected at some port and I will be able to get result, that I will interface into common-lisp. For this I have tried below command after checking http://git.savannah.gnu.org/cgit/emacs.git/tree/lib-src/emacsclient.c $ cat ~/.emacs.d/server/server 127.0.0.1:41116 6414 AUTHCODE $ telnet 127.0.0.1 41116 Trying 127.0.0.1... Connected to localhost (127.0.0.1). Escape character is '^]'. -auth AUTHCODE -eval (message&_"hello") Connection closed by foreign host. But I did not got any success, do anybody know here something like this already present, or some way I can get repl outside of emacs frame/window basically at shell prompt that have connected to running instance of emacs server, much like Mozrepl of mozilla. and above telnet session at least for error giving some output $ telnet 127.0.0.1 41116 Trying 127.0.0.1... Connected to localhost (127.0.0.1). Escape character is '^]'. -auth AUTHCODE -dir "/home" -eval sdf -error Symbol's&_value&_as&_variable&_is&_void:&_sdf Connection closed by foreign host. -- Regards, -sharad