From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Frank Fredstone Newsgroups: gmane.emacs.help Subject: Re: Using Emacs Lisp for script writing Date: Mon, 21 Dec 2009 10:35:17 -0800 Message-ID: <87pr68w4yi.fsf@not.no> References: <87hbrrrl3c.fsf@Traian.DecebalComp> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1261463388 21318 80.91.229.12 (22 Dec 2009 06:29:48 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 22 Dec 2009 06:29:48 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Dec 22 07:29:41 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 1NMyFX-0003dg-PS for geh-help-gnu-emacs@m.gmane.org; Tue, 22 Dec 2009 07:29:40 +0100 Original-Received: from localhost ([127.0.0.1]:41151 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NMyFX-0001t4-KE for geh-help-gnu-emacs@m.gmane.org; Tue, 22 Dec 2009 01:29:39 -0500 Original-Path: news.stanford.edu!usenet.stanford.edu!news.glorb.com!news2.glorb.com!Xl.tags.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local2.nntp.dca.giganews.com!news.giganews.com.POSTED!not-for-mail Original-NNTP-Posting-Date: Mon, 21 Dec 2009 12:35:18 -0600 Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux) Cancel-Lock: sha1:DT55HD1kmSk9eQ88vvQ1u7HWnF0= Original-Lines: 19 X-Usenet-Provider: http://www.giganews.com Original-X-Trace: sv3-uqvUfvLhfbYqlpaRE/3eziDGqh0jiC2XOtwwz9Cn8m2pJeG+sRqnDVNDQog2Zjigx2b22jPNSp//CiI!f3PmX3NcoE65K3vmObK1k6RxjNlmAFWzpTfihvlrsg== Original-X-Complaints-To: abuse@giganews.com X-DMCA-Notifications: http://www.giganews.com/info/dmca.html X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.40 Original-Xref: news.stanford.edu gnu.emacs.help:175708 X-Mailman-Approved-At: Tue, 22 Dec 2009 01:28:45 -0500 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:70792 Archived-At: Sam Steingold writes: > 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. One thing I like about emacs for batch text processing is that you can search forward for something and then search backward from there for the text to process, which can be quicker than creating a parser grammar or encoding one in code using lists and variables. So, unless there is a regular expression library for common lisp that provides backward search capabilites, that might be a reason to prefer emacs in some cases.