help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: REPL of emacs lisp connected to instance of emacs server outside of


From: Helmut Eller
Subject: Re: REPL of emacs lisp connected to instance of emacs server outside of emacs frame/window
Date: Wed, 08 Dec 2010 15:32:00 -0000
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

* 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


reply via email to

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