First I define a global variable x
:
ELISP> (defvar x (cons 1 3))
x
ELISP> x
(1 . 3)
After some operations, I want to shadow x
and reassign its value to 5:
ELISP> (defvar x 5)
x
ELISP> x
(1 . 3)
But it still has the original value. How can I shadow a global variable?