From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: harven Newsgroups: gmane.emacs.help Subject: Re: Making callable function of a macro Date: Thu, 25 Sep 2008 11:45:32 +0200 Organization: Guest of ProXad - France 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: 8bit X-Trace: ger.gmane.org 1222339519 25519 80.91.229.12 (25 Sep 2008 10:45:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 25 Sep 2008 10:45:19 +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 12:46:10 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 1KioMM-0000Ch-5F for geh-help-gnu-emacs@m.gmane.org; Thu, 25 Sep 2008 12:46:10 +0200 Original-Received: from localhost ([127.0.0.1]:45672 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KioLJ-0005GL-T6 for geh-help-gnu-emacs@m.gmane.org; Thu, 25 Sep 2008 06:45:06 -0400 Original-Path: news.stanford.edu!headwall.stanford.edu!newshub.sdsu.edu!feeder.erje.net!news.mixmin.net!feeder1-2.proxad.net!proxad.net!feeder2-2.proxad.net!cleanfeed4-a.proxad.net!nnrp4-1.free.fr!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (darwin) Cancel-Lock: sha1:yuUj3kmh9+qOLNandjwLCDy7aXM= Original-Lines: 24 Original-NNTP-Posting-Date: 25 Sep 2008 11:45:32 MEST Original-NNTP-Posting-Host: 82.240.200.149 Original-X-Trace: 1222335932 news-3.free.fr 16221 82.240.200.149:49787 Original-X-Complaints-To: abuse@proxad.net Original-Xref: news.stanford.edu gnu.emacs.help:162714 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:58058 Archived-At: Decebal writes: > On 25 sep, 10:48, Joost Kremers wrote: >> > What I would like is something like the following: >> >     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 file >> 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. ;-} You may want to look at some example scripts there: http://www.emacswiki.org/cgi-bin/wiki/CategoryBatchMode