From: Xah Lee <xahlee@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Emacs Schell Scripting
Date: Wed, 25 Mar 2009 23:19:00 -0700 (PDT) [thread overview]
Message-ID: <25abad2a-dcc3-494a-a0b2-29973598048c@s22g2000prg.googlegroups.com> (raw)
In-Reply-To: b568af5d-fa01-4df5-9547-0e5e13fee916@z16g2000prd.googlegroups.com
On Mar 25, 5:02 pm, Xah Lee <xah...@gmail.com> wrote:
> On Mar 25, 6:26 am, Volkan YAZICI <volkan.yaz...@gmail.com> 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/
☄
next prev parent reply other threads:[~2009-03-26 6:19 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-03-25 13:26 Emacs Schell Scripting Volkan YAZICI
2009-03-26 0:02 ` Xah Lee
2009-03-26 6:19 ` Xah Lee [this message]
2009-03-27 8:35 ` TomSW
2009-03-26 19:21 ` Johan Bockgård
2009-03-27 20:05 ` Volkan YAZICI
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=25abad2a-dcc3-494a-a0b2-29973598048c@s22g2000prg.googlegroups.com \
--to=xahlee@gmail.com \
--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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).