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

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

Re: Emacs in batch mode: handling of commandline arguments


From: Thorsten Jolitz
Subject: Re: Emacs in batch mode: handling of commandline arguments
Date: Mon, 01 Jul 2013 09:23:54 +0200
User-agent: Gnus/5.130002 (Ma Gnus v0.2) Emacs/24.3 (gnu/linux)

Thorsten Jolitz <tjolitz@gmail.com> writes:

>  1. chaining of '--load' args
>
>     with a call like this
>
>     ,-----------------------------------------------------
>     | emacs --batch --load=file1 --load=file2 --load=file3
>     `-----------------------------------------------------
>
>     is only file1 loaded and the others are ignored?
>
>  2. chaining of '--eval' args
>
>     is a call like this
>
>     ,-----------------------------------------------------
>     | emacs --batch --eval='(+ 3 4)' --eval='(- 5 3)' --eval='(* 3 3)'
>     `-----------------------------------------------------
>
>     equivalent to
>
>     ,-------------------------------------------------------
>     | emacs --batch --eval='(progn (+ 3 4) (- 5 3) (* 3 3))'
>     `-------------------------------------------------------
>
>  3. mixing of '--load' and '--eval' args
>
>     with a call like this
>
>     ,-----------------------------------------------------
>     | emacs --batch --load=file1 --eval='(+ 3 4)'
>     `-----------------------------------------------------
>
>     is only file1 loaded and evaluation ignored?
>
>  4. what about processes?
>
>     with a call like this
>
>     ,-----------------------------------------
>     | emacs --batch --load=file1 --load=file2
>     `-----------------------------------------
>
>     and given that both files are actually loaded - would variable 'myVar'
>     set in file1
>
>     ,----------------
>     | (setq myVar 33)
>     `----------------
>
>     be available in file2
>
>     ,-------------------------
>     | (setq myVar (+ myVar 7))
>     `-------------------------

All of this does actually work in the shell but did not work as expected
in my program, so the problems must be there and this question is kind
of obsolete. 

[I think I wanted to know what is the expexted behaviour, but it seems
any number of --load= and --eval= can be used and combined]

sorry for the noise ...

-- 
cheers,
Thorsten




reply via email to

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