help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Emacs Schell Scripting


From: Xah Lee
Subject: Re: Emacs Schell Scripting
Date: Wed, 25 Mar 2009 23:19:00 -0700 (PDT)
User-agent: G2/1.0

On Mar 25, 5:02 pm, Xah Lee <address@hidden> wrote:
> On Mar 25, 6:26 am, Volkan YAZICI <address@hidden> wrote:

> > I have written a small wrapper shell script over htmlize.el to output
> > syntax highlighted forms of buffers into HTML files. (Why bothering
> > with syntax highligting libraries while there is emacs already?) But
> > I'm having some troubles with command line arguments in emacs shell
> > scripts. Consider below output:
>
> >   $ cat example.el
> >   #!/usr/local/bin/emacs --script
> >   (message "ARGV: %s\n" command-line-args)
>
> >   $ ./example.el foo bar baz
> >   ARGV: (/usr/local/bin/emacs -scriptload ./example.el foo bar baz)
>
> > In the initialization of my program, I create a custom args variable:
>
> >   (defvar args (cons (first command-line-args) (subseq command-line-
> > args 3)))
>
> > But isn't there a more portable and concise way of doing this? (OTOH,
> > I don't know if "-scriptload ./example.el" part differs between
> > different emacs versions.)

sorry, didn't read your previous message carefully.

i read your message again, but after 1 min, i don't quite understand
what you wanted.

Get to the point!

  Xah
∑ http://xahlee.org/

reply via email to

[Prev in Thread] Current Thread [Next in Thread]