From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: David Kastrup Newsgroups: gmane.emacs.help Subject: Re: Evaluating lisp expressions or calling emacs functions form emacs client? Date: 20 Jun 2003 23:31:43 +0200 Organization: Organization?!? Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1056145053 14762 80.91.224.249 (20 Jun 2003 21:37:33 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 20 Jun 2003 21:37:33 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Fri Jun 20 23:37:31 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19TTZb-0003ps-00 for ; Fri, 20 Jun 2003 23:37:31 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.20) id 19TTXm-0007FN-1a for gnu-help-gnu-emacs@m.gmane.org; Fri, 20 Jun 2003 17:35:38 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!cyclone.bc.net!newsfeed.media.kyoto-u.ac.jp!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsmm00.sul.t-online.com!t-online.de!news.t-online.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 33 Original-X-Trace: news.t-online.com 1056144704 02 7184 0rjvVQwSSVAabQ 030620 21:31:44 Original-X-Complaints-To: usenet-abuse@t-online.de X-ID: Z7sTfOZfge5616AHoNTtrMk13UmCev4nq0vnLp3fP8N8E4DDHTp76t X-Face: 2FEFf>]>q>2iw=B6,xrUubRI>pR&Ml9=ao@P@i)L:\urd*t9M~y1^:+Y]'C0~{mAl`oQuAl \!3KEIp?*w`|bL5qr,H)LFO6Q=qx~iH4DN;i"; /yuIsqbLLCh/!U#X[S~(5eZ41to5f%E@'ELIi$t^ Vc\LWP@J5p^rst0+('>Er0=^1{]M9!p?&:\z]|;&=NP3AhB!B_bi^]Pfkw User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 Original-Xref: shelby.stanford.edu gnu.emacs.help:114616 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:11108 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:11108 Barry Margolin writes: > In article , > Mercurio, Michael 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