unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Evaluating lisp expressions or calling emacs functions form emacs client?
@ 2003-06-20 21:14 Mercurio, Michael
  0 siblings, 0 replies; 3+ messages in thread
From: Mercurio, Michael @ 2003-06-20 21:14 UTC (permalink / raw)


Hi,

Does anyone know an easy way to use emacsclient to invoke emacs functions or
lisp expressions?  I'm looking for something similar to the "--execute"
option that emacs has.

Ideally, I would love to do something like:
   emacsclient --execute "'(ediff-files \"$FILE1\" \"$FILE2\")'"

but emacsclient doesn't have the "--execute" option like emacs does.

Is there a way to do this without emacsclient that doesn't involve starting
a new emacs session?  

Thanks,
m

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Evaluating lisp expressions or calling emacs functions formemacs client?
       [not found] <mailman.8368.1056143788.21513.help-gnu-emacs@gnu.org>
@ 2003-06-20 21:21 ` Barry Margolin
  2003-06-20 21:31   ` Evaluating lisp expressions or calling emacs functions form emacs client? David Kastrup
  0 siblings, 1 reply; 3+ messages in thread
From: Barry Margolin @ 2003-06-20 21:21 UTC (permalink / raw)


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.

-- 
Barry Margolin, barry.margolin@level3.com
Level(3), Woburn, MA
*** DON'T SEND TECHNICAL QUESTIONS DIRECTLY TO ME, post them to newsgroups.
Please DON'T copy followups to me -- I'll assume it wasn't posted to the group.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Evaluating lisp expressions or calling emacs functions form emacs client?
  2003-06-20 21:21 ` Evaluating lisp expressions or calling emacs functions formemacs client? Barry Margolin
@ 2003-06-20 21:31   ` David Kastrup
  0 siblings, 0 replies; 3+ messages in thread
From: David Kastrup @ 2003-06-20 21:31 UTC (permalink / raw)


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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2003-06-20 21:31 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [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   ` Evaluating lisp expressions or calling emacs functions form emacs client? David Kastrup
2003-06-20 21:14 Mercurio, Michael

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).