From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Mercurio, Michael" Newsgroups: gmane.emacs.help Subject: Evaluating lisp expressions or calling emacs functions form emacs client? Date: Fri, 20 Jun 2003 16:14:44 -0500 Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <77325FCFDF4ED51185F10008C716540D0B42F77E@mn02exch06.adc.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: main.gmane.org 1056143957 10044 80.91.224.249 (20 Jun 2003 21:19:17 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 20 Jun 2003 21:19:17 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Fri Jun 20 23:19:16 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 19TTHw-0002bs-00 for ; Fri, 20 Jun 2003 23:19:16 +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 19TTFI-0003cF-Cn for gnu-help-gnu-emacs@m.gmane.org; Fri, 20 Jun 2003 17:16:32 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20) id 19TTE2-0003Mp-BI for help-gnu-emacs@gnu.org; Fri, 20 Jun 2003 17:15:14 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20) id 19TTDk-0003A5-84 for help-gnu-emacs@gnu.org; Fri, 20 Jun 2003 17:14:57 -0400 Original-Received: from smtp2.adc.com ([155.226.10.211]) by monty-python.gnu.org with esmtp (Exim 4.20) id 19TTDf-0002wm-2O for help-gnu-emacs@gnu.org; Fri, 20 Jun 2003 17:14:51 -0400 Original-Received: from smtp2.adc.com (localhost [127.0.0.1]) by smtp2.adc.com (8.12.8/8.12.8) with ESMTP id h5KLEkn2009565 for ; Fri, 20 Jun 2003 16:14:46 -0500 (CDT) Original-Received: from mplsgtwy01.adc.com (mplsgtwy01.adc.com [155.226.11.222]) by smtp2.adc.com (8.12.8/8.12.8) with ESMTP id h5KLEkoB009562 for ; Fri, 20 Jun 2003 16:14:46 -0500 (CDT) Original-Received: by mplsgtwy01.adc.com with Internet Mail Service (5.5.2653.19) id <263CZLW2>; Fri, 20 Jun 2003 16:14:46 -0500 Original-To: "'help-gnu-emacs@gnu.org'" X-Mailer: Internet Mail Service (5.5.2653.19) 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:11106 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:11106 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