From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Harry Putnam Newsgroups: gmane.emacs.help Subject: Re: Calling emacs functions outside emacs Date: Mon, 01 Dec 2003 06:00:20 -0600 Organization: Still searching... Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: <87vfp0c1ur.fsf@herrrossi.mmweg.rwth-aachen.de> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1070302852 32511 80.91.224.253 (1 Dec 2003 18:20:52 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 1 Dec 2003 18:20:52 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Dec 01 19:20:49 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1AQsfA-00058e-00 for ; Mon, 01 Dec 2003 19:20:49 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AQsDA-00006d-Nj for geh-help-gnu-emacs@m.gmane.org; Mon, 01 Dec 2003 12:51:52 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1AQnoZ-0003Po-KB for help-gnu-emacs@gnu.org; Mon, 01 Dec 2003 08:10:11 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1AQnnx-0003KV-KB for help-gnu-emacs@gnu.org; Mon, 01 Dec 2003 08:10:05 -0500 Original-Received: from [199.232.41.8] (helo=mx20.gnu.org) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.24) id 1AQnnw-0003KK-3T for help-gnu-emacs@gnu.org; Mon, 01 Dec 2003 08:09:32 -0500 Original-Received: from [80.91.224.249] (helo=main.gmane.org) by mx20.gnu.org with esmtp (Exim 4.24) id 1AQmj5-0004lX-93 for help-gnu-emacs@gnu.org; Mon, 01 Dec 2003 07:00:27 -0500 Original-Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 1AQmj3-0007HW-00 for ; Mon, 01 Dec 2003 13:00:25 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-To: help-gnu-emacs@gnu.org Original-Received: from sea.gmane.org ([80.91.224.252]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1AQmj0-0007HF-00 for ; Mon, 01 Dec 2003 13:00:22 +0100 Original-Received: from news by sea.gmane.org with local (Exim 3.35 #1 (Debian)) id 1AQmj0-0002si-00 for ; Mon, 01 Dec 2003 13:00:22 +0100 Original-Lines: 16 Original-X-Complaints-To: usenet@sea.gmane.org User-Agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3.50 (gnu/linux) Cancel-Lock: sha1:LMlULTIZkso0jmXE6mkoUbosEhQ= X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:14781 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:14781 Thorsten Bonow writes: > Klaus> gnuclient -batch -eval "(ediff-files \"$file1\" > Klaus> \"$file2\")" > > Klaus> though I'm not sure if this works with the standard > Klaus> emacsclient instead of gnuclient. > > The upcoming Emacs (now in CVS) is accompanied by a new emacsclient > which is able to evaluate lisp expressions. It will fail given the flag -eval. It expects -e or --eval. Also doesn't understand -batch as in above gnuclient command so to do the same as above with cvs emacsclient it would be: emacsclient --eval "(ediff-files \"$file1\" \"$file2\")"