all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Helmut Eller <eller.helmut@gmail.com>
To: help-gnu-emacs@gnu.org
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	[thread overview]
Message-ID: <m2zkufmwbu.fsf@gmail.com> (raw)
In-Reply-To: mailman.1.1287142813.14305.help-gnu-emacs@gnu.org

* 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	other threads:[~2010-10-15 13:15 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.1.1287142813.14305.help-gnu-emacs@gnu.org>
2010-10-15 13:15 ` Helmut Eller [this message]
2010-10-15 11:09 REPL of emacs lisp connected to instance of emacs server outside of emacs frame/window Sharad Pratap

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m2zkufmwbu.fsf@gmail.com \
    --to=eller.helmut@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.