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.