all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: harven <harven@free.fr>
To: help-gnu-emacs@gnu.org
Subject: Re: Making callable function of a macro
Date: Thu, 25 Sep 2008 11:45:32 +0200	[thread overview]
Message-ID: <m2skroy2wz.fsf@free.fr> (raw)
In-Reply-To: ab3d24bd-22dc-4413-91bd-9be2332e57e2@s50g2000hsb.googlegroups.com

Decebal <CLDWesterhof@gmail.com> writes:

> On 25 sep, 10:48, Joost Kremers <joostkrem...@yahoo.com> 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


  reply	other threads:[~2008-09-25  9:45 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-09-25  7:07 Making callable function of a macro Decebal
2008-09-25  7:39 ` Pascal J. Bourguignon
2008-09-25  8:40   ` Decebal
2008-09-25  8:48     ` Joost Kremers
2008-09-25  9:25       ` Decebal
2008-09-25  9:45         ` harven [this message]
2008-09-25  7:54 ` Joost Kremers
2008-09-25  8:33   ` Andreas Politz
2008-09-25  8:45   ` Decebal
2008-09-25  9:24 ` harven
2008-09-30  9:04 ` Decebal

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m2skroy2wz.fsf@free.fr \
    --to=harven@free.fr \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.