From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Helmut Eller Newsgroups: gmane.emacs.help Subject: Re: REPL of emacs lisp connected to instance of emacs server outside of emacs frame/window Date: Fri, 15 Oct 2010 15:15:01 +0200 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1291873563 24056 80.91.229.12 (9 Dec 2010 05:46:03 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 9 Dec 2010 05:46:03 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Dec 09 06:45:59 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 1PQZKI-0003CY-8F for geh-help-gnu-emacs@m.gmane.org; Thu, 09 Dec 2010 06:45:58 +0100 Original-Received: from localhost ([127.0.0.1]:53837 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PQZKH-0005Pk-Gt for geh-help-gnu-emacs@m.gmane.org; Thu, 09 Dec 2010 00:45:57 -0500 Original-Path: usenet.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!kanaga.switch.ch!news-zh.switch.ch!switch.ch!border3.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!local2.nntp.ams.giganews.com!nntp.kpnqwest.it!news.kpnqwest.it.POSTED!not-for-mail Original-NNTP-Posting-Date: Fri, 15 Oct 2010 08:15:02 -0500 Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:sWeU+c5IRJPAPAm/ZCgjfa4S3VU= Original-Lines: 35 X-Usenet-Provider: http://www.giganews.com Original-NNTP-Posting-Host: 212.46.169.140 Original-X-Trace: sv3-JbLKCaiTvIDLgN0MedCIjywRENKRdkgiPEaJfNqA1knXJr6SK/Bam/NrI9EOec+1ykVS/OJRWe2ZwmX!MIxrguGjf7yysfFKceu15+75SAphzrDKrYflMGtFdOqebGvDJGVoytLFEQgKHRU= X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.40 X-Original-Bytes: 2377 Original-Xref: usenet.stanford.edu gnu.emacs.help:181797 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:76756 Archived-At: * Sharad Pratap [2010-10-15 11:09] writes: > Hi All, > > Briefly I am searching for emacsrepl for emacs > in analogy of Mozrepl for mozilla. emacslient is a command line utility and is usually installed along with Emacs. You need to start the server inside Emacs with M-x start-server. Then you can do something like: shell$ emacsclient -eval '(emacs-version)' "GNU Emacs 24.0.50.2 (i686-pc-linux-gnu, GTK+ Version 2.12.12)\n of 2010-09-27 on ix" shell$ > 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. You seem to confuse something here. swank::eval-in-emacs is a CL function and you need to call it in the CL process. cl-user> (swank::eval-in-emacs '(emacs-version)) "GNU Emacs 24.0.50.2 (i686-pc-linux-gnu, GTK+ Version 2.12.12) of 2010-09-27 on ix" works independent of the the current frame/buffer. Helmut