GNU bug report logs - #44943
28.0.50; defvar may return INITVALUE and overwrite symbol's value

Previous Next

Package: emacs;

Reported by: Kazuhiro Ito <kzhr <at> d1.dion.ne.jp>

Date: Sun, 29 Nov 2020 10:50:02 UTC

Severity: normal

Tags: moreinfo

Found in version 28.0.50

Done: Kazuhiro Ito <kzhr <at> d1.dion.ne.jp>

Bug is archived. No further changes may be made.

Full log


Message #15 received at 44943-done <at> debbugs.gnu.org (full text, mbox):

From: Kazuhiro Ito <kzhr <at> d1.dion.ne.jp>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: 44943-done <at> debbugs.gnu.org
Subject: Re: bug#44943: 28.0.50;
 defvar may return INITVALUE and overwrite symbol's value
Date: Sun, 29 Nov 2020 21:06:26 +0900
> > When evaluate below codes, I get unexpected result.
> >
> > (defvar test 1)
> >
> > -> test
> >
> > It is expected.
> >
> > (defvar test 2)
> >
> > -> 2
> >
> > It should return 'test'.
> >
> > (symbol-value 'test)
> >
> > -> 2
> >
> > It should return 1.
> 
> When you say "evaluate", what do you mean?  Doing `C-x C-e' after the
> form?  If it's the latter, then the doc string explains what's
> happening (and this is new behaviour in Emacs 28):

I meant C-j in *scratch* buffer (eval-print-last-sexp) and `C-x C-e'.
They return the same result.  I didn't notice the change of
eval-last-sexp, sorry.  I'm closing this issue.

-- 
Kazuhiro Ito




This bug report was last modified 4 years and 258 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.