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


View this message in rfc822 format

From: Kazuhiro Ito <kzhr <at> d1.dion.ne.jp>
To: 44943 <at> debbugs.gnu.org
Subject: bug#44943: 28.0.50; defvar may return INITVALUE and overwrite symbol's value
Date: Sun, 29 Nov 2020 19:49:22 +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.

-- 
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.