emacs --script process_log.el filepath
how to make the script take the argument? i.e. that filepath?
e.g. in perl, python, it's typically argv[1] etc.
Thanks.
Xah
maybe: command-line-args, i can't check it now.
Can you give a small example of what the script file would look like ?
Is it a lambda or a progn for the main program ?
>
> > how to make the script take the argument? i.e. that filepath?
>
> > e.g. in perl, python, it's typically argv[1] etc.
>
> maybe: command-line-args, i can't check it now.
command-line-args's value is
("emacs" "lisp.el")
Documentation:
Args passed by shell to Emacs, as a list of strings.
On Jul 21, 1:46 pm, Swami Tota Ram Shankar <tota_...@india.com> wrote:
> command-line-args's value is
> ("emacs" "lisp.el")
> Documentation:
> Args passed by shell to Emacs, as a list of strings.
thank you.
> Can you give a small example of what the script file would look like ?
> Is it a lambda or a progn for the main program ?
one recent example is:
〈Emacs Lisp: Batch Script to Validate Matching Brackets〉
http://xahlee.org/emacs/elisp_validate_matching_brackets.html
thanks.
Xah