unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Lars Ingebrigtsen <larsi@gnus.org>
To: "Andreas Röhler" <andreas.roehler@easy-emacs.de>
Cc: 45125@debbugs.gnu.org
Subject: bug#45125: Subject: 28.0.50; defvar dynamics
Date: Tue, 08 Dec 2020 21:25:17 +0100	[thread overview]
Message-ID: <87o8j49haq.fsf@gnus.org> (raw)
In-Reply-To: <01017daf-0373-e7fe-9cd1-34e27d1795e8@easy-emacs.de> ("Andreas Röhler"'s message of "Tue, 8 Dec 2020 20:46:47 +0100")

Andreas Röhler <andreas.roehler@easy-emacs.de> 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





  reply	other threads:[~2020-12-08 20:25 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-12-08 19:46 bug#45125: Subject: 28.0.50; defvar dynamics Andreas Röhler
2020-12-08 20:25 ` Lars Ingebrigtsen [this message]
2020-12-08 21:54   ` Drew Adams
2020-12-09  7:34     ` Andreas Röhler
2020-12-09 12:56       ` Lars Ingebrigtsen
2020-12-09 19:03         ` Andreas Röhler
2020-12-09 19:17           ` Lars Ingebrigtsen
2020-12-09 19:55             ` Drew Adams

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87o8j49haq.fsf@gnus.org \
    --to=larsi@gnus.org \
    --cc=45125@debbugs.gnu.org \
    --cc=andreas.roehler@easy-emacs.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).