From unknown Wed Sep 10 15:24:13 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#44943 <44943@debbugs.gnu.org> To: bug#44943 <44943@debbugs.gnu.org> Subject: Status: 28.0.50; defvar may return INITVALUE and overwrite symbol's value Reply-To: bug#44943 <44943@debbugs.gnu.org> Date: Wed, 10 Sep 2025 22:24:13 +0000 retitle 44943 28.0.50; defvar may return INITVALUE and overwrite symbol's v= alue reassign 44943 emacs submitter 44943 Kazuhiro Ito severity 44943 normal tag 44943 moreinfo thanks From debbugs-submit-bounces@debbugs.gnu.org Sun Nov 29 05:49:38 2020 Received: (at submit) by debbugs.gnu.org; 29 Nov 2020 10:49:39 +0000 Received: from localhost ([127.0.0.1]:49849 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kjKGw-0005nN-M4 for submit@debbugs.gnu.org; Sun, 29 Nov 2020 05:49:38 -0500 Received: from lists.gnu.org ([209.51.188.17]:53798) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kjKGv-0005nG-GY for submit@debbugs.gnu.org; Sun, 29 Nov 2020 05:49:37 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:47618) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kjKGu-00061e-3i for bug-gnu-emacs@gnu.org; Sun, 29 Nov 2020 05:49:37 -0500 Received: from snd20008.auone-net.jp ([27.86.5.232]:53153 helo=dmta0006.auone-net.jp) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kjKGq-0002ny-6L for bug-gnu-emacs@gnu.org; Sun, 29 Nov 2020 05:49:35 -0500 Received: from kzhr.d1.dion.ne.jp by dmta0006.auone-net.jp with ESMTP id <20201129104923167.DMM.121622.kzhr.d1.dion.ne.jp@dmta0006.auone-net.jp>; Sun, 29 Nov 2020 19:49:23 +0900 Date: Sun, 29 Nov 2020 19:49:22 +0900 Message-ID: <86o8jgmo99.wl--xmue@d1.dion.ne.jp> From: Kazuhiro Ito To: bug-gnu-emacs@gnu.org Subject: 28.0.50; defvar may return INITVALUE and overwrite symbol's value X-Hashcash: 1:20:201129:bug-gnu-emacs@gnu.org::Se6ZOZUEshEZ+jYR:000000000000000000000000000000000000000011cT User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM-LB/1.14.9 (=?ISO-8859-4?Q?Goj=F2?=) APEL-LB/10.8 EasyPG/1.0.0 Emacs/28.0.50 (x86_64-w64-mingw32) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII Received-SPF: pass client-ip=27.86.5.232; envelope-from=kzhr@d1.dion.ne.jp; helo=dmta0006.auone-net.jp X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) 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 From debbugs-submit-bounces@debbugs.gnu.org Sun Nov 29 06:01:09 2020 Received: (at 44943) by debbugs.gnu.org; 29 Nov 2020 11:01:09 +0000 Received: from localhost ([127.0.0.1]:49867 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kjKS5-00074k-8B for submit@debbugs.gnu.org; Sun, 29 Nov 2020 06:01:09 -0500 Received: from quimby.gnus.org ([95.216.78.240]:52576) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kjKS0-0006uu-FJ for 44943@debbugs.gnu.org; Sun, 29 Nov 2020 06:01:08 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID :In-Reply-To:Date:References:Subject:Cc:To:From:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=nL/w/xE0cp+qptwSIfqck3UmrDMMFwugkAJUfBwRbmw=; b=pJd/CcYC0VRGv0T1fruFk9cYN3 VlXWInRV2p+2pj8/glmlFmHlB16cE68rPJEsSWPN6TpuZ4Z6bMPTYMtsglHYUayDcTxjOiuUDoKE+ UJgg9z7XdV4kC/X0iAfthca7kO7QLzRC7IZReL9UvhLDNdNA2jonpIJWgk0w/CHgwbqA=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kjKRm-0004fs-LX; Sun, 29 Nov 2020 12:00:57 +0100 From: Lars Ingebrigtsen To: Kazuhiro Ito Subject: Re: bug#44943: 28.0.50; defvar may return INITVALUE and overwrite symbol's value References: <86o8jgmo99.wl--xmue@d1.dion.ne.jp> Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAElBMVEUQERdCPUGraBrW nkJeVIr///9/2pvpAAAAAWJLR0QF+G/pxwAAAAd0SU1FB+QLHQotFdTCdrUAAAGWSURBVDjLdZKN sawgDIUTZwtI0AKENLBCA8sd+q/pJgFR976HOzvI5zn5AwBTSgS60P5CGgsMRJgALwBDAPiQ+NZB p7DcAdwAXgCjHw8AFwB2gH1zBpnpAK/lh68gE9BaSjnoAdyeiy2a0eFcq4P4F4iDY6Z1nqNkE3QQ Hoo0FbvZXYpSNOGs23h1YwRXpmDZvZgJlhEc0+6NmQBL1udQdwfhWxHG2JbzewwO9kdt3i7uIQzs d0K0RjXp/aA7YbTi0KcRz1HY2oiv+d0VCug/ALaqjv8CaGbcWoMv0BPfWntmNUttje+EsY8eCNuH ngoHpLE+Uz+qVx8DevwEesJ83cC7wsGZ3v6WJZbA7xS0EgWt+2A+JOUiIYsO3MhWnSxHzkmyiCTp hSo0N4zJbpg/7kCest2bUI68SIr5gEdKIlBKkrTkPtLZj7WA3htJZMHt/UxXo2piEkP8AhnL/g7q VXqM12eARvW1bVz11w9oa1VnSKHVV+NWK42KifC1ahKBKuvXqtgG0NdkDZ1TOTej9/zd+85/Afnl QwMf1uSIAAAAJXRFWHRkYXRlOmNyZWF0ZQAyMDIwLTExLTI5VDEwOjQ1OjIxKzAwOjAwmPMWjAAA ACV0RVh0ZGF0ZTptb2RpZnkAMjAyMC0xMS0yOVQxMDo0NToyMSswMDowMOmurjAAAAAASUVORK5C YII= X-Now-Playing: Hannah Jones's _The Remixes (CD3)_: "In The Name Of Love (Mary Brazzle Mix)" Date: Sun, 29 Nov 2020 12:00:49 +0100 In-Reply-To: <86o8jgmo99.wl--xmue@d1.dion.ne.jp> (Kazuhiro Ito's message of "Sun, 29 Nov 2020 19:49:22 +0900") Message-ID: <87a6v0fmvy.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Kazuhiro Ito writes: > 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 > [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 44943 Cc: 44943@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Kazuhiro Ito writes: > 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): ---- C-x C-e runs the command eval-last-sexp (found in global-map), which is an interactive compiled Lisp function in =E2=80=98elisp-mode.el=E2=80=99. It is bound to C-x C-e. (eval-last-sexp EVAL-LAST-SEXP-ARG-INTERNAL) Probably introduced at or before Emacs version 24.4. Evaluate sexp before point; print value in the echo area. Interactively, with a non =E2=80=98-=E2=80=99 prefix argument, print output= into current buffer. This commands handles =E2=80=98defvar=E2=80=99, =E2=80=98defcustom=E2=80=99= and =E2=80=98defface=E2=80=99 the same way that =E2=80=98eval-defun=E2=80=99 does. See the doc string of that function for details. --=20 (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Sun Nov 29 06:01:23 2020 Received: (at control) by debbugs.gnu.org; 29 Nov 2020 11:01:23 +0000 Received: from localhost ([127.0.0.1]:49870 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kjKSJ-0007Gc-GO for submit@debbugs.gnu.org; Sun, 29 Nov 2020 06:01:23 -0500 Received: from quimby.gnus.org ([95.216.78.240]:52592) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kjKSH-0007Aj-58 for control@debbugs.gnu.org; Sun, 29 Nov 2020 06:01:22 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=FVsb1X34q796xk8c5GYwnEFKAL0d9R7LGR/gDQP+nes=; b=TrET2v2NZvlLJvTj+xjH6vZ4fp qx4bmEy+XCTgmfgLPm4eDoF1bpHyG0GlWo4KHAuFqihjUJh9EP1NV5xvoMF7UvALftDO3TzCQGV7v 2weIN3rExa4Tw10DkbNGqLt4hhd5WRyh7qT5WrwVv6DC6ltQlPhUfijxr/k3nxCsyLQA=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kjKS9-0004iH-GE for control@debbugs.gnu.org; Sun, 29 Nov 2020 12:01:15 +0100 Date: Sun, 29 Nov 2020 12:01:12 +0100 Message-Id: <878sakfmvb.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #44943 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: tags 44943 + moreinfo quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) tags 44943 + moreinfo quit From debbugs-submit-bounces@debbugs.gnu.org Sun Nov 29 07:06:34 2020 Received: (at 44943-done) by debbugs.gnu.org; 29 Nov 2020 12:06:34 +0000 Received: from localhost ([127.0.0.1]:49939 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kjLTN-00043J-TD for submit@debbugs.gnu.org; Sun, 29 Nov 2020 07:06:34 -0500 Received: from snd00014.auone-net.jp ([111.86.247.14]:6976 helo=dmta0006.auone-net.jp) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kjLTL-000439-1g for 44943-done@debbugs.gnu.org; Sun, 29 Nov 2020 07:06:33 -0500 Received: from kzhr.d1.dion.ne.jp by dmta0006.auone-net.jp with ESMTP id <20201129120628391.EOK.121622.kzhr.d1.dion.ne.jp@dmta0006.auone-net.jp>; Sun, 29 Nov 2020 21:06:28 +0900 Date: Sun, 29 Nov 2020 21:06:26 +0900 Message-ID: <86ft4sfjul.wl--xmue@d1.dion.ne.jp> From: Kazuhiro Ito To: Lars Ingebrigtsen Subject: Re: bug#44943: 28.0.50; defvar may return INITVALUE and overwrite symbol's value In-Reply-To: <87a6v0fmvy.fsf@gnus.org> References: <86o8jgmo99.wl--xmue@d1.dion.ne.jp> <87a6v0fmvy.fsf@gnus.org> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM-LB/1.14.9 (=?ISO-8859-4?Q?Goj=F2?=) APEL-LB/10.8 EasyPG/1.0.0 Emacs/28.0.50 (x86_64-w64-mingw32) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 44943-done Cc: 44943-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) > > 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 From unknown Wed Sep 10 15:24:13 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sun, 27 Dec 2020 12:24:07 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator