From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Sam Steingold Newsgroups: gmane.emacs.help Subject: Re: Using Emacs Lisp for script writing Date: Wed, 16 Dec 2009 11:24:10 -0500 Message-ID: <4B2909AA.50602@gnu.org> References: <87hbrrrl3c.fsf@Traian.DecebalComp> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1260980895 2403 80.91.229.12 (16 Dec 2009 16:28:15 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 16 Dec 2009 16:28:15 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Dec 16 17:28:08 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1NKwjF-0003gA-2h for geh-help-gnu-emacs@m.gmane.org; Wed, 16 Dec 2009 17:27:58 +0100 Original-Received: from localhost ([127.0.0.1]:52460 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NKwj9-0000Xg-AM for geh-help-gnu-emacs@m.gmane.org; Wed, 16 Dec 2009 11:27:51 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NKwir-0000XI-6D for help-gnu-emacs@gnu.org; Wed, 16 Dec 2009 11:27:33 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NKwik-0000WT-UQ for help-gnu-emacs@gnu.org; Wed, 16 Dec 2009 11:27:31 -0500 Original-Received: from [199.232.76.173] (port=60332 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NKwik-0000WP-R3 for help-gnu-emacs@gnu.org; Wed, 16 Dec 2009 11:27:26 -0500 Original-Received: from lo.gmane.org ([80.91.229.12]:35955) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NKwik-0006Cs-3b for help-gnu-emacs@gnu.org; Wed, 16 Dec 2009 11:27:26 -0500 Original-Received: from list by lo.gmane.org with local (Exim 4.50) id 1NKwhp-0002d4-6f for help-gnu-emacs@gnu.org; Wed, 16 Dec 2009 17:26:29 +0100 Original-Received: from 38.105.200.250 ([38.105.200.250]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 16 Dec 2009 17:26:29 +0100 Original-Received: from sds by 38.105.200.250 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 16 Dec 2009 17:26:29 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 15 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 38.105.200.250 User-Agent: Thunderbird 2.0.0.22 (X11/20090625) In-Reply-To: <87hbrrrl3c.fsf@Traian.DecebalComp> X-Enigmail-Version: 0.95.6 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:70681 Archived-At: Cecil Westerhof wrote: > I already use 'emacs -batch' for scripting where no user input is used, > but I would like to use it also for interactive scripting. Until now I > did not find any usable information about this. Anybody using Emacs for > interactive scripts? I use clisp for all scripting, interactive and not. Common Lisp is more powerful than Emacs Lisp and clisp is faster than emacs. > Also I use three evals. One to define the function, one to compile it > and one to call it. Can this be done better? yes. you do not need any evals. you put your function into a file, byte-compile the file, and then load the file and call the function from the command line.