From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Decebal Newsgroups: gmane.emacs.help Subject: Re: Making callable function of a macro Date: Thu, 25 Sep 2008 02:25:37 -0700 (PDT) Organization: http://groups.google.com Message-ID: References: <19cc8ee3-7dbc-47ac-bee9-bf233b42a0eb@j22g2000hsf.googlegroups.com> <87tzc465dh.fsf@hubble.informatimago.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1222336192 15271 80.91.229.12 (25 Sep 2008 09:49:52 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 25 Sep 2008 09:49:52 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Sep 25 11:50:50 2008 connect(): Connection refused 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 1KinUn-0000Ur-2z for geh-help-gnu-emacs@m.gmane.org; Thu, 25 Sep 2008 11:50:49 +0200 Original-Received: from localhost ([127.0.0.1]:33235 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KinTk-0006Du-TA for geh-help-gnu-emacs@m.gmane.org; Thu, 25 Sep 2008 05:49:44 -0400 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!s50g2000hsb.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 21 Original-NNTP-Posting-Host: 80.79.97.145 Original-X-Trace: posting.google.com 1222334737 1131 127.0.0.1 (25 Sep 2008 09:25:37 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Thu, 25 Sep 2008 09:25:37 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: s50g2000hsb.googlegroups.com; posting-host=80.79.97.145; posting-account=K-cdeAoAAAD_0d505kUtHXJaT5LFIu-3 User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; nl; rv:1.9.0.1) Gecko/2008070208 Firefox/3.0.1,gzip(gfe),gzip(gfe) X-HTTP-Via: 1.1 proxy-25:8080 (squid/2.5.STABLE8) Original-Xref: news.stanford.edu gnu.emacs.help:162709 X-Mailman-Approved-At: Thu, 25 Sep 2008 05:42:01 -0400 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:58051 Archived-At: On 25 sep, 10:48, Joost Kremers wrote: > > What I would like is something like the following: > > =A0 =A0 emacs-command input output > > Input is the file to be processed and output is the file to use for > > the processed data. So that in a script the files automatically can be > > generated. > > emacs has the --script option, which must be followed by the name of a fi= le > containing lisp code, which is then run. see > > (info "(emacs) Initial Options") > > for details. > > i'm not sure if it's possible to pass an input and an output file, though= . > at the very least, you'd need to know some elisp to get all the I/O > correct... That looks like what I want. I'll start learning elisp then. ;-}