Subject: Re: bug#45125: Subject: 28.0.50; defvar dynamics

From: Lars Ingebrigtsen <[email-masked]>
Date: Tue, 08 Dec 2020 21:25:17 +0100

Andreas Röhler <[email-masked]> writes:

> Evaluate defvar forms at bottom in order using C-x C-e, which runs
> command eval-last-sexp here.
>
> Evaluate the message-form C-x C-e
>
> message-form outputs "a: 2",  i.e. "a" was dynamically updated
> This contradicts saying in File: elisp.info,  Node: Defining Variables:
>
> "But if SYMBOL is not void, VALUE is not evaluated, and SYMBOL’s value
> is left unchanged."

See NEWS:

** 'eval-last-sexp' now handles 'defvar'/'defcustom'/'defface' specially.
This command would previously not redefine values defined by these
forms, but this command has now been changed to work more like
'eval-defun', and reset the values as specified.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no