I have this:
(setq var '("osmode" "clayer" "cmdecho"
"ltscale" "plinewid" "users1"
"users2" "users3")
val (mapcar 'getvar var)
)
and the only way I've found to get single values from single variables from anywhere in the code is this:
(setq num 0)
(foreach item var
(if (/= item "users3")
(setq num (1+ num))
(setq angv (nth num val))
)
)
I feel that a mapcar lambda should do the trick, but I couldn't get that to work.