I have elisp code like this:
(setq a nil)
(defun testa (a) (add-to-list a "ABCD"))
(testa 'a)
What I want is to make a
list ("ABCD")
but since the argument name of the function testa
is the same as variable a
, the local binding of a
in the function is itself, which doesn't bind the value outside of function.
My question is: Is it the feature of elisp that I can't work around if I don't rename the variable outside or is there any neat solution?