From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Joost Kremers Newsgroups: gmane.emacs.help Subject: Re: Making callable function of a macro Date: 25 Sep 2008 08:48:56 GMT Message-ID: References: <19cc8ee3-7dbc-47ac-bee9-bf233b42a0eb@j22g2000hsf.googlegroups.com> <87tzc465dh.fsf@hubble.informatimago.com> NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1222335725 13896 80.91.229.12 (25 Sep 2008 09:42:05 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 25 Sep 2008 09:42:05 +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:43:03 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 1KinN0-0006OR-GY for geh-help-gnu-emacs@m.gmane.org; Thu, 25 Sep 2008 11:42:46 +0200 Original-Received: from localhost ([127.0.0.1]:37535 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KinLy-00006w-AB for geh-help-gnu-emacs@m.gmane.org; Thu, 25 Sep 2008 05:41:42 -0400 Original-Path: news.stanford.edu!headwall.stanford.edu!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 37 Original-X-Trace: individual.net hzY/OkDDt97oh39t9WgydAIETWGVObOalAOb2ql4ULayZRiZII Cancel-Lock: sha1:eUvbF6Z9hKhING+8UcaxX4BUDnU= Mail-Copies-To: nobody X-Editor: Emacs of course! User-Agent: slrn/0.9.8.1 (Linux) Original-Xref: news.stanford.edu gnu.emacs.help:162705 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:58044 Archived-At: Decebal wrote: > On 25 sep, 09:39, p...@informatimago.com (Pascal J. Bourguignon) > wrote: >> Type: >> >> (info "(eintr)") C-x C-e >> >> to get "An Introduction to Programming in Emacs Lisp". > > Does not work in my Emacs. But I allready printed it and am reading > it. But I did not see anything about calling an Emacs function from a > script. Or am I missing something? no, that's probably not in there... > 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... -- Joost Kremers joostkremers@yahoo.com Selbst in die Unterwelt dringt durch Spalten Licht EN:SiS(9)