* Re: REPL of emacs lisp connected to instance of emacs server outside of emacs frame/window
[not found] <mailman.1.1287142813.14305.help-gnu-emacs@gnu.org>
@ 2010-10-15 13:15 ` Helmut Eller
0 siblings, 0 replies; 2+ messages in thread
From: Helmut Eller @ 2010-10-15 13:15 UTC (permalink / raw)
To: help-gnu-emacs
* 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
^ permalink raw reply [flat|nested] 2+ messages in thread
* REPL of emacs lisp connected to instance of emacs server outside of emacs frame/window
@ 2010-10-15 11:09 Sharad Pratap
0 siblings, 0 replies; 2+ messages in thread
From: Sharad Pratap @ 2010-10-15 11:09 UTC (permalink / raw)
To: help-gnu-emacs
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-10-15 13:15 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <mailman.1.1287142813.14305.help-gnu-emacs@gnu.org>
2010-10-15 13:15 ` REPL of emacs lisp connected to instance of emacs server outside of emacs frame/window Helmut Eller
2010-10-15 11:09 Sharad Pratap
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.