unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: David Kastrup <dak@gnu.org>
Subject: Re: Evaluating lisp expressions or calling emacs functions form emacs client?
Date: 20 Jun 2003 23:31:43 +0200	[thread overview]
Message-ID: <x5llvw1lmo.fsf@lola.goethe.zz> (raw)
In-Reply-To: dVKIa.31$Iz5.313@paloalto-snr1.gtei.net

Barry Margolin <barry.margolin@level3.com> writes:

> In article <mailman.8368.1056143788.21513.help-gnu-emacs@gnu.org>,
> Mercurio, Michael <Michael.Mercurio@adc.com> wrote:
> >Does anyone know an easy way to use emacsclient to invoke emacs functions or
> >lisp expressions?
> 
> emacsclient can't do this, but I believe gnuserve can.

emacsclient --help yields

Usage: emacsclient [OPTIONS] FILE...
Tell the Emacs server to visit the specified files.
Every FILE can be either just a FILENAME or [+LINE[:COLUMN]] FILENAME.

The following OPTIONS are accepted:
-V, --version           Just print a version info and return
-H, --help              Print this usage information message
-n, --no-wait           Don't wait for the server to return
-e, --eval              Evaluate the FILE arguments as ELisp expressions
-d, --display=DISPLAY   Visit the file in the given display
-a, --alternate-editor=EDITOR
                        Editor to fallback to if the server is not running

Report bugs to bug-gnu-emacs@gnu.org.

So just use --eval.  Of course, I am using the current developer
version of Emacs, so my emacsclient is a bit more powerful than that
of 21.3.


-- 
David Kastrup, Kriemhildstr. 15, 44793 Bochum

  reply	other threads:[~2003-06-20 21:31 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.8368.1056143788.21513.help-gnu-emacs@gnu.org>
2003-06-20 21:21 ` Evaluating lisp expressions or calling emacs functions formemacs client? Barry Margolin
2003-06-20 21:31   ` David Kastrup [this message]
2003-06-20 21:14 Evaluating lisp expressions or calling emacs functions form emacs client? Mercurio, Michael

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=x5llvw1lmo.fsf@lola.goethe.zz \
    --to=dak@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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).