From unknown Fri Jun 20 18:24:56 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#46387 <46387@debbugs.gnu.org> To: bug#46387 <46387@debbugs.gnu.org> Subject: Status: 28.0.50; Compiled code making a variable dynamic stopped working Reply-To: bug#46387 <46387@debbugs.gnu.org> Date: Sat, 21 Jun 2025 01:24:56 +0000 retitle 46387 28.0.50; Compiled code making a variable dynamic stopped work= ing reassign 46387 emacs submitter 46387 Michael Heerdegen severity 46387 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Mon Feb 08 12:30:13 2021 Received: (at submit) by debbugs.gnu.org; 8 Feb 2021 17:30:13 +0000 Received: from localhost ([127.0.0.1]:51842 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l9AMW-0005Bk-Nq for submit@debbugs.gnu.org; Mon, 08 Feb 2021 12:30:13 -0500 Received: from lists.gnu.org ([209.51.188.17]:51836) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l9AMV-0005Bd-6c for submit@debbugs.gnu.org; Mon, 08 Feb 2021 12:30:11 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:37604) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l9AMV-0003Cs-00 for bug-gnu-emacs@gnu.org; Mon, 08 Feb 2021 12:30:11 -0500 Received: from mout.web.de ([212.227.17.11]:53455) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l9AMP-0002fZ-G7 for bug-gnu-emacs@gnu.org; Mon, 08 Feb 2021 12:30:10 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=web.de; s=dbaedf251592; t=1612805398; bh=6Q7bhl+Mo/4vETjbcyggNBoTjta3GHDLvT+zhelSEn4=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date; b=ROr+07MKQMtui+dVa1TGY3h0XSbWgNxTdL/nYOXAeDpoJFJHAFnopq9jTqgMwZiCw QAm1n1oCDcX1pR9iCKDz9wC5ITcXW68+XjpaOw6p91qYukPXoL1ocKINqGWqNBJZWn +hohBRDtmeWzvxbwTARkFhwg5+HmgDOpyjhYld84= X-UI-Sender-Class: c548c8c5-30a9-4db5-a2e7-cb6cb037b8f9 Received: from drachen.dragon ([94.218.220.60]) by smtp.web.de (mrweb103 [213.165.67.124]) with ESMTPSA (Nemesis) id 0MV4bp-1lPH0V28Yn-00YVDV; Mon, 08 Feb 2021 18:29:58 +0100 From: Michael Heerdegen To: bug-gnu-emacs@gnu.org Subject: 28.0.50; Compiled code making a variable dynamic stopped working Date: Mon, 08 Feb 2021 18:29:56 +0100 Message-ID: <87h7mm79ij.fsf@web.de> MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K1:WKhBV6l7+2Uj/vbSzgoGdISZVT9mY03MwKNXLWwX3kyjL6P/OK/ sowq/WApVLaFDslT+HebO1Rh9kX9FpOyqswQYDSjDcmY1I9nIBQnBfYrBp1Qssf8kuQ1gTX dYgGElStWKjd/K9afAAFX7GmC30n0GJHEqK0AQz/n4IOW0u+dfFfC1TVZsTaOrbiVMz5PGU QKqVfDcr1qJuAf/0R+8NA== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:Rp0KbT3G0c4=:a6h37OsqIXWOFYLacAka8l 7sSmu/8l3us561u92d1qQ7hISi0g7oxEL6OiAJqTDGlBUYkAOutWTVjVLw7w4jYP/q7alyCCy S4/hZyEd9DNz803smUVEx527yKBBbfqTmjZ/zdmJDnd3Ch6uvO47jb5DuzMAtWcqAbbTng3ic UXMdA8BTc6LDSp6Ft/GUMvYbvQCZ8D7QbyMsvUgvzbmoDQK1S71AhkQ2amqGXR+M9IQnlWtOS qfG0uTwQLLNmOPvQxNbkhErJ9XPILrMBuYxoK1T+4HrqvJxmkb8CbsjCK+6u9UE2gpTyQoW/P WAc8/e/acfdciH9e8J9x3uuK4qHqM73WMCctVCMEqDdAIqBltWGEgakhvQEibZJyH43JBgNjz rKoIS87Rmc4OekCWTlW2h/7x54/XGQYWBdmGr2b0J3hePoJbmABb1+6rvo7eq+F8mxD7p8xqu khh86wnSs2n8gij8QYUVnPpYpXCR8wLIE3ixKP3hdgv741MrAetQhEReszlgvCLI3e6GaCqGK n3khgYliYel1iX8c3OVm6jBeg3QvZ2AsdwdhY6dHNuizKIXZEZfxK96CBm9UX4wo7G++T4A/q 1xwVxXym/ILlaKku050mh9i6MwVc3Bs2rQFfZ5zm6W37YdjtrRAjB/nURJVQYB29UeKFGWwX6 xn7RDFNL7ZPxwMdJiPobX6cDhKGWO1GlrB6xthcsh4rgzOnyx0HBOErNVh8oyo5Lf17FwkYd0 1WOrV1pQ2qXrR2Two9EgnX7s12VD0ptw5gb7anXh9MJXaFc0oOdyG0kV+/xvv+nDPrbqGCsno FcZ7ynRBfNYHAarzEGBfS8Wab9+Cylse+bzkvlryApwY0mTNm3UdLcy7AStn/N8zhVlMTucXH ZnzdVxtJLpbFiX4BEkkA== Received-SPF: pass client-ip=212.227.17.11; envelope-from=michael_heerdegen@web.de; helo=mout.web.de X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 0.5 (/) X-Debbugs-Envelope-To: submit Cc: Mattias =?utf-8?Q?Engdeg=C3=A5rd?= 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.4 (--) Hello, the latest changes in byte-opt.el seem to have broken some of my code. It worked since yesterday, and it still works when interpreted, but the compiled code raises this error today: #+begin_src emacs-lisp Debugger entered--Lisp error: (void-variable number) bbdb-anniv-diary-entries() alarm-clock-diary-list-entries-hook-fun-to-alarm-clock(bbdb-anniv-diary-entries #f(compiled-function (dt) #) #f(compiled-function (&rest args2) #)) #f(compiled-function () #)() [...] #+end_src `alarm-clock-diary-list-entries-hook-fun-to-alarm-clock' has this definition: #+begin_src emacs-lisp (defun alarm-clock-diary-list-entries-hook-fun-to-alarm-clock (fun &optional date-fun filter-return) ;; For functions to put in `diary-list-entries-hook', ;; e.g. `bbdb-anniv-diary-entries' (require 'calendar) (require 'diary-lib) (with-suppressed-warnings ((lexical date original-date number)) (defvar date) (defvar original-date) (defvar number)) (defvar diary-entries-list) (let* ((date (funcall (or date-fun #'identity) (calendar-current-date))) (original-date date) (diary-entries-list '()) (number 1)) (funcall fun) (dolist (to-add (funcall (or filter-return #'identity) (mapcar #'substring-no-properties (mapcar #'cadr diary-entries-list)))) (alarm-clock-add-automatically-maybe to-add (list (alarm-clock-last-midnight)) nil '((origin . diary-list-entries-hook-fun)))))) #+end_src FUN is bound to `bbdb-anniv-diary-entries'. `number' should be bound dynamically when that function is `funcall'ed. TIA, Michael. In GNU Emacs 28.0.50 (build 34, x86_64-pc-linux-gnu, GTK+ Version 3.24.24, cairo version 1.16.0) of 2021-02-08 built on drachen Repository revision: f0afbebe7c423ec8b1003f88af11122dfec28dd1 Repository branch: master Windowing system distributor 'The X.Org Foundation', version 11.0.12010000 System Description: Debian GNU/Linux bullseye/sid From debbugs-submit-bounces@debbugs.gnu.org Tue Feb 09 05:33:20 2021 Received: (at submit) by debbugs.gnu.org; 9 Feb 2021 10:33:20 +0000 Received: from localhost ([127.0.0.1]:52752 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l9QKe-0000La-9E for submit@debbugs.gnu.org; Tue, 09 Feb 2021 05:33:20 -0500 Received: from lists.gnu.org ([209.51.188.17]:38814) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l9QKc-0000LS-2i for submit@debbugs.gnu.org; Tue, 09 Feb 2021 05:33:19 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:56854) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l9QKZ-00038E-Pa for bug-gnu-emacs@gnu.org; Tue, 09 Feb 2021 05:33:17 -0500 Received: from mail1475c50.megamailservers.eu ([91.136.14.75]:60874 helo=mail118c50.megamailservers.eu) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l9QKT-0004dz-UI for bug-gnu-emacs@gnu.org; Tue, 09 Feb 2021 05:33:15 -0500 X-Authenticated-User: mattiase@bredband.net DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=megamailservers.eu; s=maildub; t=1612866781; bh=xvqELYBN9TYUMSCXbDve3HYD8HCpuTSZlR82oT1RBsk=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From; b=ctN5TdLxXZTvXDJABVwTHDFbQOdMWY382PH8S8aAqqoJIgSGQQlQ8sdQ379gqglAA 4AAtIFflva42NcvGxgkvZVnM6nmBWGHM9CE0FgeXuhr9jf4rr3dUwLcrE3p29mrjS7 0NxDhslG/hGRJ5iBQlvztlquCgdHnCN6q6amnde0= Feedback-ID: mattiase@acm.or Received: from [192.168.0.4] (c188-150-171-71.bredband.comhem.se [188.150.171.71]) (authenticated bits=0) by mail118c50.megamailservers.eu (8.14.9/8.13.1) with ESMTP id 119AWxbM021342; Tue, 9 Feb 2021 10:33:00 +0000 Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.17\)) Subject: Re: 28.0.50; Compiled code making a variable dynamic stopped working From: =?utf-8?Q?Mattias_Engdeg=C3=A5rd?= In-Reply-To: <87h7mm79ij.fsf@web.de> Date: Tue, 9 Feb 2021 11:32:58 +0100 Content-Transfer-Encoding: quoted-printable Message-Id: References: <87h7mm79ij.fsf@web.de> To: Michael Heerdegen X-Mailer: Apple Mail (2.3445.104.17) X-CTCH-RefID: str=0001.0A742F24.602264DD.0029, ss=1, re=0.000, recu=0.000, reip=0.000, cl=1, cld=1, fgs=0 X-CTCH-VOD: Unknown X-CTCH-Spam: Unknown X-CTCH-Score: 0.000 X-CTCH-Rules: X-CTCH-Flags: 0 X-CTCH-ScoreCust: 0.000 X-CSC: 0 X-CHA: v=2.3 cv=HYRqsRM8 c=1 sm=1 tr=0 a=SF+I6pRkHZhrawxbOkkvaA==:117 a=SF+I6pRkHZhrawxbOkkvaA==:17 a=kj9zAlcOel0A:10 a=M51BFTxLslgA:10 a=spfw7PUuAAAA:8 a=cls0VBjIcQtipXP9x_gA:9 a=CjuIK1q_8ugA:10 X-Origin-Country: SE Received-SPF: softfail client-ip=91.136.14.75; envelope-from=mattiase@acm.org; helo=mail118c50.megamailservers.eu X-Spam_score_int: -11 X-Spam_score: -1.2 X-Spam_bar: - X-Spam_report: (-1.2 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_SOFTFAIL=0.665 autolearn=no autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit Cc: bug-gnu-emacs@gnu.org, Stefan Monnier 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 (--) 8 feb. 2021 kl. 18.29 skrev Michael Heerdegen = : > the latest changes in byte-opt.el seem to have broken some of my code. > It worked since yesterday, and it still works when interpreted, but = the > compiled code raises this error today: Intereresting, thank you! And sorry about that. > (with-suppressed-warnings ((lexical date original-date number)) > (defvar date) > (defvar original-date) > (defvar number)) There's a lack of clarity regarding the exact semantics of local = `defvar`. The manual says that its effect is confined to the current = lexical scope, but what exactly does that mean? As it turns out, parts of the implementation have different opinions = about that. As you observed, the recently added optimisation on master = takes a strict syntactic view: even a `progn` is a lexical scope, and = `with-suppressed-warnings` wraps its body in a `progn`; thus your = `defvar` declarations have no effect outside that construct. However, the interpreter is at the other extreme end and takes a very = dynamic view. For example: (defun f (x) (if x (defvar my-var)) (let ((my-var 17)) (do-something))) Here, whether my-var is a lexical or dynamic variable depends on the = argument x! The compiler unsurprisingly is of more static persuasion but = sadly hazy on the details. For example, the above function is compiled = (in Emacs 27) with my-var lexically bound, but if we say (defun g () (if (=3D 1 2) (defvar my-var)) (let ((my-var 17)) (do-something))) then my-var becomes dynamic. Ouch. While we ponder over the problem, you may try separate = with-suppressed-warnings for each variable. Ie, (with-suppressed-warnings ((lexical date)) (defvar date)) (with-suppressed-warnings ((lexical original-date)) (defvar original-date)) (with-suppressed-warnings ((lexical number)) (defvar number)) hoping that each single-expression `progn` will rapidly decay into its = confined expression (a defvar) and thus will be syntactically in the = right lexical scope. (Stefan, it looks like your latest Gnus patch may fall in the same trap. = Or?) From debbugs-submit-bounces@debbugs.gnu.org Tue Feb 09 10:31:33 2021 Received: (at submit) by debbugs.gnu.org; 9 Feb 2021 15:31:33 +0000 Received: from localhost ([127.0.0.1]:54397 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l9UzF-0003eu-Jf for submit@debbugs.gnu.org; Tue, 09 Feb 2021 10:31:33 -0500 Received: from lists.gnu.org ([209.51.188.17]:41078) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l9UzD-0003em-4W for submit@debbugs.gnu.org; Tue, 09 Feb 2021 10:31:32 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:38890) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l9UzC-0007vu-R2 for bug-gnu-emacs@gnu.org; Tue, 09 Feb 2021 10:31:30 -0500 Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:29218) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l9UzA-0005Et-K2 for bug-gnu-emacs@gnu.org; Tue, 09 Feb 2021 10:31:30 -0500 Received: from pmg3.iro.umontreal.ca (localhost [127.0.0.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 35FB04409F4; Tue, 9 Feb 2021 10:31:27 -0500 (EST) Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id E425444019A; Tue, 9 Feb 2021 10:31:25 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1612884685; bh=DOh9NLQtfIGCJ2YK0zf9DrCozk2A5E16+FWpBf3TzS4=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=ND9KuFqiwIFchDIsxPgpr7nPM8gbBT4x8T3XfH+Ern49nAbjlE3davUIJdP9zKooB Ccp5QbzUtLlX4tqomnxIz9XqeywijCY1sESD28X+9IEgNrzTBezpS6VcwLa6r86oyB s08coc1cDIhoeLhAcoH3U+Exxi3hOjGHhKDmIx3ozQ2NvICkusf4taB9HvAtdUguzA wAcOsavUF8MLnu6Hdt1egShcFK9+FZy+JVpLxr1PZcU+S3gygEb2uHTGIEbY6+b39c bPnGi9+9gHVk5wADqYfKOiAZ02spUwkolku/2bjdOvg3NOZI0ali2KkGuqrtIsDQ7f KSR1IPXt0w0JA== Received: from alfajor (unknown [216.154.41.47]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id B262A1201C2; Tue, 9 Feb 2021 10:31:25 -0500 (EST) From: Stefan Monnier To: Mattias =?windows-1252?Q?Engdeg=E5rd?= Subject: Re: 28.0.50; Compiled code making a variable dynamic stopped working Message-ID: References: <87h7mm79ij.fsf@web.de> Date: Tue, 09 Feb 2021 10:31:24 -0500 In-Reply-To: ("Mattias =?windows-1252?Q?Engdeg=E5rd=22's?= message of "Tue, 9 Feb 2021 11:32:58 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-SPAM-INFO: Spam detection results: 0 ALL_TRUSTED -1 Passed through trusted hosts only via SMTP AWL -0.090 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DKIM_SIGNED 0.1 Message has a DKIM or DK signature, not necessarily valid DKIM_VALID -0.1 Message has at least one valid DKIM or DK signature DKIM_VALID_AU -0.1 Message has a valid DKIM or DK signature from author's domain X-SPAM-LEVEL: Received-SPF: pass client-ip=132.204.25.50; envelope-from=monnier@iro.umontreal.ca; helo=mailscanner.iro.umontreal.ca X-Spam_score_int: -42 X-Spam_score: -4.3 X-Spam_bar: ---- X-Spam_report: (-4.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=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 Cc: Michael Heerdegen , bug-gnu-emacs@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: -2.3 (--) > There's a lack of clarity regarding the exact semantics of local > `defvar`. The manual says that its effect is confined to the current > lexical scope, but what exactly does that mean? Adding a variable to the context creates a new scope. A `progn` should not introduce a new scope. > As it turns out, parts of the implementation have different opinions > about that. Indeed, there's a fair bit a space between my above two statements. > As you observed, the recently added optimisation on master takes > a strict syntactic view: even a `progn` is a lexical scope, I think that's clearly an error. Adding/removing `progn` shouldn't make any difference in this respect. > (Stefan, it looks like your latest Gnus patch may fall in the same trap. Or?) The (with-suppressed-warnings (...) (defvar)) form is used at several places. It's the preferred way to declare a variable dynamically scoped without incurring the "not prefixed" warning and without making the `with-suppressed-warnings` silencer cover more code than intended. Stefan From debbugs-submit-bounces@debbugs.gnu.org Tue Feb 09 11:49:35 2021 Received: (at 46387) by debbugs.gnu.org; 9 Feb 2021 16:49:35 +0000 Received: from localhost ([127.0.0.1]:54472 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l9WCk-0005Vu-Om for submit@debbugs.gnu.org; Tue, 09 Feb 2021 11:49:35 -0500 Received: from mail1464c50.megamailservers.eu ([91.136.14.64]:53336 helo=mail268c50.megamailservers.eu) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l9WCh-0005Vd-MB for 46387@debbugs.gnu.org; Tue, 09 Feb 2021 11:49:32 -0500 X-Authenticated-User: mattiase@bredband.net DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=megamailservers.eu; s=maildub; t=1612889363; bh=1uZBxwdeQQU4JD/7qWSMx/ISrxwkziCLfw6avYPF+a0=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From; b=PvyQ7CLguShQ2ODDg6zTvzvfSZ/rA0zqhIKC6wsM8N4lalevI+t5CJXUqRWuatsYP 7yviP0s5hy3Os+Ts/MFZNA1Av9992XiGYALfNif/+Oi7fUL36HMxEYCqiiWAEtXZRv SFQjDTY6ttWM6IsF49jgB+85SjvM/XdDUYSG2hCY= Feedback-ID: mattiase@acm.or Received: from [192.168.0.4] (c188-150-171-71.bredband.comhem.se [188.150.171.71]) (authenticated bits=0) by mail268c50.megamailservers.eu (8.14.9/8.13.1) with ESMTP id 119GnKx0002257; Tue, 9 Feb 2021 16:49:23 +0000 Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.17\)) Subject: Re: 28.0.50; Compiled code making a variable dynamic stopped working From: =?utf-8?Q?Mattias_Engdeg=C3=A5rd?= In-Reply-To: Date: Tue, 9 Feb 2021 17:49:20 +0100 Content-Transfer-Encoding: quoted-printable Message-Id: References: <87h7mm79ij.fsf@web.de> To: Stefan Monnier X-Mailer: Apple Mail (2.3445.104.17) X-CTCH-RefID: str=0001.0A742F20.6022BD13.007B, ss=1, re=0.000, recu=0.000, reip=0.000, cl=1, cld=1, fgs=0 X-CTCH-VOD: Unknown X-CTCH-Spam: Unknown X-CTCH-Score: 0.000 X-CTCH-Rules: X-CTCH-Flags: 0 X-CTCH-ScoreCust: 0.000 X-CSC: 0 X-CHA: v=2.3 cv=c//Vvi1l c=1 sm=1 tr=0 a=SF+I6pRkHZhrawxbOkkvaA==:117 a=SF+I6pRkHZhrawxbOkkvaA==:17 a=kj9zAlcOel0A:10 a=M51BFTxLslgA:10 a=iRZporoAAAAA:8 a=k-lyNX9vyvFn8KdPYc0A:9 a=CjuIK1q_8ugA:10 a=NOBgFS-JBQ2l-kSd6-zu:22 X-Origin-Country: SE X-Spam-Score: 1.4 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.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 the administrator of that system for details. Content preview: 9 feb. 2021 kl. 16.31 skrev Stefan Monnier : > Adding a variable to the context creates a new scope. > A `progn` should not introduce a new scope. All right, `defvar` modifies the current scope and only let, let* and lambda create new scopes. Fine, but it leaves questions unanswered. Content analysis details: (1.4 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 1.0 SPF_SOFTFAIL SPF: sender does not match SPF record (softfail) 0.4 KHOP_HELO_FCRDNS Relay HELO differs from its IP's reverse DNS X-Debbugs-Envelope-To: 46387 Cc: Michael Heerdegen , 46387@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: -0.0 (/) 9 feb. 2021 kl. 16.31 skrev Stefan Monnier : > Adding a variable to the context creates a new scope. > A `progn` should not introduce a new scope. All right, `defvar` modifies the current scope and only let, let* and = lambda create new scopes. Fine, but it leaves questions unanswered. * Does `defvar` affect new bindings only, or variable references in the = current scope as well? In (let ((my-var EXPR)) (defvar my-var) (use my-var)) does the last line refer to the lexical my-var bound in the first line, = or to the dynamic my-var? * Does the defvar have to be 'executed' to be effective? That's how the = interpreter works, but it clearly can't work in the compiler. The defvar = form probably has to 'precede' the binding form which it tries to = affect, in some way. > The (with-suppressed-warnings (...) (defvar)) form is used at > several places. It's the preferred way to declare a variable > dynamically scoped without incurring the "not prefixed" warning and > without making the `with-suppressed-warnings` silencer cover more code > than intended. Yes, but it does (currently) work if used on a single variable at a = time, which is the suggested workaround for the time being. From debbugs-submit-bounces@debbugs.gnu.org Tue Feb 09 13:49:02 2021 Received: (at 46387) by debbugs.gnu.org; 9 Feb 2021 18:49:02 +0000 Received: from localhost ([127.0.0.1]:54617 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l9Y4M-00023R-Gu for submit@debbugs.gnu.org; Tue, 09 Feb 2021 13:49:02 -0500 Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:53413) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l9Y4L-00022x-8T for 46387@debbugs.gnu.org; Tue, 09 Feb 2021 13:49:02 -0500 Received: from pmg1.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 5CED21006F2; Tue, 9 Feb 2021 13:48:55 -0500 (EST) Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 9E6671000CF; Tue, 9 Feb 2021 13:48:51 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1612896531; bh=KFAE/lz3zYx/un0low9INj1wYYEWIx3hNxWKM11797k=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=Jm/OwwhgsLi+TOPdhLvCMdOZTEf8fK8Ssmwov5G1QldYJyfEoLtpDjq7t5Llw9XoD nwG4TMP36hAmDv6SvHqpADDui69MTxqNHjoZSQG7GvdZxyWbYjh3OYncwq5w/xZWn6 PtiEWERLY1xUPYXC/1WY0YT9rJk8gm2TkYTxMpKCmm0ZxCyh457X3JWLc8c6Ttt7m2 KKYVPfPiZnEjLXWFYYc5kDzP5gEpa5FEJkHjEofu9pwp6dIcBBgsYt6PLYM0tAzHRR FtSbTXh4qmj0/Ydvh0k78OsqoGwbgAcfZHIoor7YzL3jC/Dl8R5O2X27UbY9RBek7s Dl/ZynjlX5KNg== Received: from alfajor (unknown [216.154.41.47]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 75E47120297; Tue, 9 Feb 2021 13:48:51 -0500 (EST) From: Stefan Monnier To: Mattias =?windows-1252?Q?Engdeg=E5rd?= Subject: Re: 28.0.50; Compiled code making a variable dynamic stopped working Message-ID: References: <87h7mm79ij.fsf@web.de> Date: Tue, 09 Feb 2021 13:48:50 -0500 In-Reply-To: ("Mattias =?windows-1252?Q?Engdeg=E5rd=22's?= message of "Tue, 9 Feb 2021 17:49:20 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-SPAM-INFO: Spam detection results: 0 ALL_TRUSTED -1 Passed through trusted hosts only via SMTP AWL -0.086 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DKIM_SIGNED 0.1 Message has a DKIM or DK signature, not necessarily valid DKIM_VALID -0.1 Message has at least one valid DKIM or DK signature DKIM_VALID_AU -0.1 Message has a valid DKIM or DK signature from author's domain X-SPAM-LEVEL: X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 46387 Cc: Michael Heerdegen , 46387@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: -3.3 (---) >> Adding a variable to the context creates a new scope. >> A `progn` should not introduce a new scope. > > All right, `defvar` modifies the current scope and only let, let* and > lambda create new scopes. Fine, but it leaves questions unanswered. Oh, yes. > * Does `defvar` affect new bindings only, or variable references in the current scope as well? Subsequent bindings. > (let ((my-var EXPR)) > (defvar my-var) > (use my-var)) `defvar` here is "too late" to affect the earlier `let`. > does the last line refer to the lexical my-var bound in the first > line, or to the dynamic my-var? If there's a lexical var in scope with the right name, that's what is used, regardless if the variable is (currently) declared as dynamically scoped or not. E.g. (funcall (lambda (default-directory) (cd "/") default-directory) 3) returns 3 (in `lexical-binding` mode). > * Does the defvar have to be 'executed' to be effective? That's how > the interpreter works, but it clearly can't work in the compiler. Your (if foo (defvar bar)) example indeed points to some of the other murkiness, where the behavior differs between the interpreter and the compiler, yes. If it hurts, don't do that ;-) > The defvar form probably has to 'precede' the binding form which it > tries to affect, in some way. A `defvar` should be effective on all subsequent equally or more deeply-nested code. Whether it also affects other subsequent code is the less clear part. `progn` (and macros to expand to `progn`, of course) is the only "sure" exception (i.e. a `defvar` also affects the code after its surrounding `progn`, if any). >> The (with-suppressed-warnings (...) (defvar)) form is used at >> several places. It's the preferred way to declare a variable >> dynamically scoped without incurring the "not prefixed" warning and >> without making the `with-suppressed-warnings` silencer cover more code >> than intended. > Yes, but it does (currently) work if used on a single variable at a time, > which is the suggested workaround for the time being. It's better than nothing, but I think we really should fix the `progn` case, because it's important. Stefan From debbugs-submit-bounces@debbugs.gnu.org Tue Feb 09 22:21:20 2021 Received: (at submit) by debbugs.gnu.org; 10 Feb 2021 03:21:20 +0000 Received: from localhost ([127.0.0.1]:55271 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l9g48-0005vB-5q for submit@debbugs.gnu.org; Tue, 09 Feb 2021 22:21:20 -0500 Received: from lists.gnu.org ([209.51.188.17]:56558) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l9g46-0005v3-Rq for submit@debbugs.gnu.org; Tue, 09 Feb 2021 22:21:19 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:47688) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l9g46-0002Lr-KT for bug-gnu-emacs@gnu.org; Tue, 09 Feb 2021 22:21:18 -0500 Received: from mout.web.de ([217.72.192.78]:51033) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l9g43-0000Zc-Jv for bug-gnu-emacs@gnu.org; Tue, 09 Feb 2021 22:21:18 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=web.de; s=dbaedf251592; t=1612927248; bh=FD0FCZQeXeUeTCbSZZxDlZn8WOTt7lymmvLaOh8PpcA=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=NKCW5MHn+KjW1DQfe/w2jnO9mNWWzka2Y66qYFoHjpaRU00uVLtymWSQE9W0UG6Z4 PwUr8grJpG45RYbvSQxHduLTAcqsYkHt/iI//7am9cK3gq8pr/jM7OcnUB8mWLv45u qD0rxWFupjHUqEom3rINUGWzTkz7cYs1gWF9X6yM= X-UI-Sender-Class: c548c8c5-30a9-4db5-a2e7-cb6cb037b8f9 Received: from drachen.dragon ([94.218.220.60]) by smtp.web.de (mrweb103 [213.165.67.124]) with ESMTPSA (Nemesis) id 0LkPjj-1lkOip2omp-00cN39; Wed, 10 Feb 2021 04:20:48 +0100 From: Michael Heerdegen To: Mattias =?utf-8?Q?Engdeg=C3=A5rd?= Subject: Re: 28.0.50; Compiled code making a variable dynamic stopped working References: <87h7mm79ij.fsf@web.de> Date: Wed, 10 Feb 2021 04:20:46 +0100 In-Reply-To: ("Mattias =?utf-8?Q?Engdeg=C3=A5rd=22's?= message of "Tue, 9 Feb 2021 11:32:58 +0100") Message-ID: <874kiksj5d.fsf@web.de> 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-Provags-ID: V03:K1:KDEocYeqMKmz0LsoTWqXg9bffhEMwDHoVC6j4fGYfoVbiJXhjxY Cb9iny6rWZEoOnPgJ2hpYyBZHwN6QvNnM4fnR1M69+m48V/MtfHYoZpmLVXIrJtsgx/n4Aw ool5piwB/K0Zunc9bbYdbffM1zXWkGg6hySPzP6Napl2AqK1dfpHkzMEMF290MkOVwPz/ZZ VKQlzTXD+UcMRPLKxL7Cw== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:nGxDqyYw7+0=:pQYTh87gQKqkHFijKPTk/T yuUyPmIYoRuo+Y5TQ0j6sJ/t8HLBHJr8rc6bUoRvyUY02JDB0zBS4arfuit5NUrErY9QR4a49 ZaYRs8oHRh1Axyb/sEMV3bX8srRVEsA9pMm487S33E8UBdoG7/8c7k5tspuGh5TVvjzZaBumO msDw5zo9Mb9mpoJXtmWqfdgwb7gCSwP0hy9ZiybXUta+nsMAMnMOuzSRoiHkzzBLAYlIcf/gJ VmHta28KOfaqOSwcd+sjbLXGePhwmSiBQlRh7RtOgvPlu3XYv28NsM8TC0xsl08DUy8YRrdax lhh42PvnJ9S8ltzggmOKyWGoW9gVAyqi51F4rslf4PxDIYIrlnJhCHYUkn/VG/JcZhnB74aMm t3LH5U+xuzN9WjWk4rR5Tn/4xa20UCkFfs3NWtJ+tm4JDPVJCIBzEFtbtqImJOdJC+XAAyc0i /AfrNIEiBiKcMTNvrDEpDGV/vw+OXtBfpd8F95n4zoy0N0Q0Ah9w1v5yjGw+yppLd3YwKC1gG 65G6JNSGeKwWn6cWiqGDkf+gk3/NFfu8b6kVBs05s8d0yhk9Nj9S/0eS2+cSNH5qcFpMyefar 9GgtHqq3ITqudvV1S3e4YxGpzmLG3l6mCmTJ3CoBBPze8M8L3VlemdK+/TF/gnrKaZlECvOLT 3+WoxUbg9fn/ODL0QsHJLFpG5DNcGXkxtfU0vVj/FM4XYHgbhNVTAPT8etVvWITEmz/zfGZOn ThzgBRZ3Ddc7B5bs3agq8LtH7/ZoBRNXcmr2FCxnwXWp50ssHv391yrpHxoll5ge7QiBFJ+d8 dWRDLVbfJMdLy+Ms9rs1rWH5tIPE54unrPJRe6n5hS8RJUk7c7fkLbtiHnUC8eTix2xwcs3Dn UmUlx9KGm44Ma50aQOmiD+vbMHohyQwL9O5Hz/dNU= Received-SPF: pass client-ip=217.72.192.78; envelope-from=michael_heerdegen@web.de; helo=mout.web.de X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.4 (-) X-Debbugs-Envelope-To: submit Cc: bug-gnu-emacs@gnu.org, Stefan Monnier 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.4 (--) Mattias Engdeg=C3=A5rd writes: > As it turns out, parts of the implementation have different opinions > about that. As you observed, the recently added optimisation on master > takes a strict syntactic view: even a `progn` is a lexical scope, and > `with-suppressed-warnings` wraps its body in a `progn`; thus your > `defvar` declarations have no effect outside that construct. Seems this is the related code change (took quite a while until I found that): 83983b6b7a115474572973b62eb5e42251713e63 Author: Mattias Engdeg=C3=A5rd AuthorDate: Sat Feb 6 18:34:45 2021 +0100 (defun byte-optimize-body (forms all-for-effect) ;; Optimize the cdr of a progn or implicit progn; all forms is a list of @@ -590,6 +763,7 @@ byte-optimize-body ;; all-for-effect is true. returns a new list of forms. (let ((rest forms) (result nil) + (byte-optimize--dynamic-vars byte-optimize--dynamic-vars) fe new) (while rest (setq fe (or all-for-effect (cdr rest))) Should that line just be removed? TIA, Michael. From debbugs-submit-bounces@debbugs.gnu.org Wed Feb 10 03:22:20 2021 Received: (at submit) by debbugs.gnu.org; 10 Feb 2021 08:22:20 +0000 Received: from localhost ([127.0.0.1]:55407 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l9klP-0004nK-QX for submit@debbugs.gnu.org; Wed, 10 Feb 2021 03:22:20 -0500 Received: from lists.gnu.org ([209.51.188.17]:50380) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l9klO-0004nB-0V for submit@debbugs.gnu.org; Wed, 10 Feb 2021 03:22:18 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:43820) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l9klN-00061X-Hg for bug-gnu-emacs@gnu.org; Wed, 10 Feb 2021 03:22:17 -0500 Received: from mail1453c50.megamailservers.eu ([91.136.14.53]:51720 helo=mail266c50.megamailservers.eu) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l9klJ-00035T-2t for bug-gnu-emacs@gnu.org; Wed, 10 Feb 2021 03:22:14 -0500 X-Authenticated-User: mattiase@bredband.net DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=megamailservers.eu; s=maildub; t=1612945328; bh=ObcIAZ7MBWswsv+QiszgUl8qLEONsilmS/zsSvQzsaI=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From; b=UElEwpMTxDx0u/2QfW3iPmVC4DErj6289Mffm0ykZ/EQAtv040XDHcsz09KIHESoR b/45VDimLPIIi1vxHnTWtsq7AlHO8/wwDZoPVUy9Dgfdrxilwz0E9amniIHmhgrUz2 4HPb2QXTz7VKPHKAY5mJ/+jtn02l3fsOUFfw81eA= Feedback-ID: mattiase@acm.or Received: from [192.168.0.4] (c188-150-171-71.bredband.comhem.se [188.150.171.71]) (authenticated bits=0) by mail266c50.megamailservers.eu (8.14.9/8.13.1) with ESMTP id 11A8M6MB030869; Wed, 10 Feb 2021 08:22:07 +0000 Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.17\)) Subject: Re: 28.0.50; Compiled code making a variable dynamic stopped working From: =?utf-8?Q?Mattias_Engdeg=C3=A5rd?= In-Reply-To: <874kiksj5d.fsf@web.de> Date: Wed, 10 Feb 2021 09:22:05 +0100 Content-Transfer-Encoding: 7bit Message-Id: References: <87h7mm79ij.fsf@web.de> <874kiksj5d.fsf@web.de> To: Michael Heerdegen X-Mailer: Apple Mail (2.3445.104.17) X-CTCH-RefID: str=0001.0A742F1C.602397B0.0033, ss=1, re=0.000, recu=0.000, reip=0.000, cl=1, cld=1, fgs=0 X-CTCH-VOD: Unknown X-CTCH-Spam: Unknown X-CTCH-Score: 0.000 X-CTCH-Rules: X-CTCH-Flags: 0 X-CTCH-ScoreCust: 0.000 X-CSC: 0 X-CHA: v=2.3 cv=Op0xNB3t c=1 sm=1 tr=0 a=SF+I6pRkHZhrawxbOkkvaA==:117 a=SF+I6pRkHZhrawxbOkkvaA==:17 a=kj9zAlcOel0A:10 a=M51BFTxLslgA:10 a=spfw7PUuAAAA:8 a=9VnDHL1WDbh1DO3JKrMA:9 a=CjuIK1q_8ugA:10 a=jPQ0WnQaHDMA:10 a=NN3w1SoFm1sA:10 X-Origin-Country: SE Received-SPF: softfail client-ip=91.136.14.53; envelope-from=mattiase@acm.org; helo=mail266c50.megamailservers.eu X-Spam_score_int: -11 X-Spam_score: -1.2 X-Spam_bar: - X-Spam_report: (-1.2 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, SPF_HELO_NONE=0.001, SPF_SOFTFAIL=0.665 autolearn=no autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit Cc: bug-gnu-emacs@gnu.org, Stefan Monnier 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 (--) 10 feb. 2021 kl. 04.20 skrev Michael Heerdegen : > Should that line just be removed? Almost, but not quite that simple. I'll fix it later today. From debbugs-submit-bounces@debbugs.gnu.org Wed Feb 10 08:49:40 2021 Received: (at submit) by debbugs.gnu.org; 10 Feb 2021 13:49:40 +0000 Received: from localhost ([127.0.0.1]:55772 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l9psC-0000SC-4j for submit@debbugs.gnu.org; Wed, 10 Feb 2021 08:49:40 -0500 Received: from lists.gnu.org ([209.51.188.17]:34658) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l9ps9-0000S4-LG for submit@debbugs.gnu.org; Wed, 10 Feb 2021 08:49:38 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:60724) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l9ps9-0006BG-4L for bug-gnu-emacs@gnu.org; Wed, 10 Feb 2021 08:49:37 -0500 Received: from mail1475c50.megamailservers.eu ([91.136.14.75]:44198 helo=mail118c50.megamailservers.eu) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l9ps6-0002DB-IC for bug-gnu-emacs@gnu.org; Wed, 10 Feb 2021 08:49:36 -0500 X-Authenticated-User: mattiase@bredband.net DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=megamailservers.eu; s=maildub; t=1612964969; bh=UV9pK/FttsvyMQmoR6ReAmPjLH60Y+G/xnhs3oTbCEc=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From; b=r9yW69XN3vDIg93PZkX1uUPjzgT2xutJT1YmrzLMNKvojPkAJiGFgiSCL5oknyO/9 BmGF2dEKU4ySWgKjubWhAjXp9sry8tQ4eLZdeoUy3Mz5EC6U9D/+xqZ+WTRKYIe/Dw 7AcUGpCLZ8GGp1JQwN8hQ+6Ul/eI+gNcONuzGP2I= Feedback-ID: mattiase@acm.or Received: from [192.168.0.4] (c188-150-171-71.bredband.comhem.se [188.150.171.71]) (authenticated bits=0) by mail118c50.megamailservers.eu (8.14.9/8.13.1) with ESMTP id 11ADnRiK029176; Wed, 10 Feb 2021 13:49:28 +0000 Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.17\)) Subject: Re: 28.0.50; Compiled code making a variable dynamic stopped working From: =?utf-8?Q?Mattias_Engdeg=C3=A5rd?= In-Reply-To: Date: Wed, 10 Feb 2021 14:49:26 +0100 Content-Transfer-Encoding: 7bit Message-Id: References: <87h7mm79ij.fsf@web.de> <874kiksj5d.fsf@web.de> To: Michael Heerdegen X-Mailer: Apple Mail (2.3445.104.17) X-CTCH-RefID: str=0001.0A742F21.6023E469.003A, ss=1, re=0.000, recu=0.000, reip=0.000, cl=1, cld=1, fgs=0 X-CTCH-VOD: Unknown X-CTCH-Spam: Unknown X-CTCH-Score: 0.000 X-CTCH-Rules: X-CTCH-Flags: 0 X-CTCH-ScoreCust: 0.000 X-CSC: 0 X-CHA: v=2.3 cv=S8OnP7kP c=1 sm=1 tr=0 a=SF+I6pRkHZhrawxbOkkvaA==:117 a=SF+I6pRkHZhrawxbOkkvaA==:17 a=kj9zAlcOel0A:10 a=M51BFTxLslgA:10 a=9iVJpRADYABte3MJL4YA:9 a=CjuIK1q_8ugA:10 X-Origin-Country: SE Received-SPF: softfail client-ip=91.136.14.75; envelope-from=mattiase@acm.org; helo=mail118c50.megamailservers.eu X-Spam_score_int: -11 X-Spam_score: -1.2 X-Spam_bar: - X-Spam_report: (-1.2 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_SOFTFAIL=0.665 autolearn=no autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit Cc: bug-gnu-emacs@gnu.org, Stefan Monnier 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 (--) > Almost, but not quite that simple. I'll fix it later today. A correction has now been pushed to master (f3ae26cb2ae). Does it help? From debbugs-submit-bounces@debbugs.gnu.org Wed Feb 10 17:45:19 2021 Received: (at submit) by debbugs.gnu.org; 10 Feb 2021 22:45:19 +0000 Received: from localhost ([127.0.0.1]:57360 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l9yEZ-0005Bp-FW for submit@debbugs.gnu.org; Wed, 10 Feb 2021 17:45:19 -0500 Received: from lists.gnu.org ([209.51.188.17]:34476) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l9yEV-0005Be-4f for submit@debbugs.gnu.org; Wed, 10 Feb 2021 17:45:18 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:35816) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l9yEQ-0003RR-CJ for bug-gnu-emacs@gnu.org; Wed, 10 Feb 2021 17:45:14 -0500 Received: from mout.web.de ([217.72.192.78]:60961) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l9yEJ-0007cv-Jf for bug-gnu-emacs@gnu.org; Wed, 10 Feb 2021 17:45:10 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=web.de; s=dbaedf251592; t=1612997095; bh=b1zkie/wRb9hORZcc0kMzYPmv7KcfkoX66hGcraFP0k=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=i+U/TAxLMLsiFmor1LFCxoeJNrRiEehVIFMyM0ZZMsbzyz5w4U2VmnWzj0wTKlmhp yKrbei2E9phGLG0Dtu0/WSIglAYwGTDFY89TGMc+5dP4i/qxjchZtUsMRDCmPPKPkk 0b3BHmUWb5vRxPNdXP8IydL50EO9wXKL+cOWBglw= X-UI-Sender-Class: c548c8c5-30a9-4db5-a2e7-cb6cb037b8f9 Received: from drachen.dragon ([94.218.220.60]) by smtp.web.de (mrweb102 [213.165.67.124]) with ESMTPSA (Nemesis) id 0M2uWg-1m0I892Vcc-00shFP; Wed, 10 Feb 2021 23:44:55 +0100 From: Michael Heerdegen To: Mattias =?utf-8?Q?Engdeg=C3=A5rd?= Subject: Re: 28.0.50; Compiled code making a variable dynamic stopped working References: <87h7mm79ij.fsf@web.de> <874kiksj5d.fsf@web.de> Date: Wed, 10 Feb 2021 23:44:54 +0100 In-Reply-To: ("Mattias =?utf-8?Q?Engdeg=C3=A5rd=22's?= message of "Wed, 10 Feb 2021 14:49:26 +0100") Message-ID: <87v9azsftl.fsf@web.de> 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-Provags-ID: V03:K1:1ZLR+nFIYduahr0656w8dWQKMp4DsL95FcM3hb/yhO8eaot/EUO lSOn/D7+ENa0Qa0Izz9SotSux+vdIo30Ou+nkdpmMwqxVYeFwQZH+dvF0HVbO19ApdPr5av fREQzUWl/KeWF/vk594WODi38m5ND2kHmIAxMec6h0A86tIN4OPxb8HwruGljN8f0jsv0z3 kPBkje3vDTS7akyS1TQ8Q== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:Al2dcOD+250=:HlqYWVwYbdz2eG7+HBNRPS 6YcLHoo66b2ldIIsN/bpMpNmG8y+KDxPQ20raFmHK0lfPMxuvUMA895AamKn0QyXW7TZQcIPV /KxbJR1OH4tH0QM2S1ha+XRj0PBQbUDA2+Mzaq28PwHD3qE8zTDSlXJeB/rnc0AK8Le8g35jW 81h9H0AfIOrVstIOWH274tyrUTWbHbWI9z5nz7UoFdlJu6aexEHxFqLkjsvGfaSJNGHzQwlPZ 3PopWCMN60avI9JkbmvBhfNIwXg67AM5BbTiYp0Qp2oPptU+f81KzBP77zXrogKqk0p6eRXyp NN53W6iWDMlDoc1Cf0NCSn8UN3pE41ekL+8/uF5Jm950XPW0YtfbmnGlZZpgtIFtfs8pEoOgl 2XwRmC4QQP6xgTgzZgvva7XD+lX5ANXFtB8OfYhApF6pHG+KXfFpzRsDlN+9QCcg9QeigtO6V O6diHe8TkG0IvKbelhlu7vb7IK5dqZ2LudXLL6YcBI3U6DRuLfh1aiBGImPZwm2WkKgND+Reb Qe0FXXEdmxzRUSxGBEq5B5pSfTnifsYQG1c+eLxkHRHw/vZk8HiyMhMzxdYXL+9VX/b/NnZaO kQSwVMso4QEMDvEB2Ei4IAFNei4nWLQCHBiBGL3vz6Yel6AroZ7/Kk9Tb9vXdIxW/ZV9U2Orw 43TPBtkqNiBxowjwJj3OpuEWnD58uIrU0WUAWvLzIMtoIeW5Vk5wy00mvYpSCQyuTdHgKMLW5 5rrWHmaQHA8JHn3zuzvBrtoKUuugzGCduhKf5sJVTGSoOAGnEv8HFIX7by99DR6Ob5lSqsmUc lC5LQ48ALw+OvKASmtamYl96mJbbH9fTU7LcupA0mNiwPEXia0DQUyECgDIkHoS1HZoeTZgOx nrB0/PmN+dMWMV1BD7GQ== Received-SPF: pass client-ip=217.72.192.78; envelope-from=michael_heerdegen@web.de; helo=mout.web.de X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.4 (-) X-Debbugs-Envelope-To: submit Cc: bug-gnu-emacs@gnu.org, Stefan Monnier 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.4 (--) Mattias Engdeg=C3=A5rd writes: > A correction has now been pushed to master (f3ae26cb2ae). Does it > help? Yes, works as expected now, thanks. And also thanks for working on that optimization stuff. Unless someone thinks otherwise, you might close. Regards, Michael. From debbugs-submit-bounces@debbugs.gnu.org Thu Feb 11 03:49:41 2021 Received: (at 46387-done) by debbugs.gnu.org; 11 Feb 2021 08:49:41 +0000 Received: from localhost ([127.0.0.1]:57699 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lA7fR-0002zu-4j for submit@debbugs.gnu.org; Thu, 11 Feb 2021 03:49:41 -0500 Received: from mail1473c50.megamailservers.eu ([91.136.14.73]:59902 helo=mail102c50.megamailservers.eu) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lA7fP-0002zf-5I for 46387-done@debbugs.gnu.org; Thu, 11 Feb 2021 03:49:40 -0500 X-Authenticated-User: mattiase@bredband.net DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=megamailservers.eu; s=maildub; t=1613033372; bh=W5UM/SjSFS5+UNAgqE0rhdMLfuBjzPVKWz3OuMdQrws=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From; b=ePvqxBDB3U9HLxxxpj8qBvPwKcCuJYLcvxe44AHs/oM/1OrRjtONKQ1szc3PtKQhx 9Up3JoRvI7oX1nh7HKfx+iK5JbeflX3SdouiaAgAZYPTq0cz+3ibexJhKRCuD6nU1N LLYl30iD5HCq1aPhroVpQIJQh9aOxYbHJcFZZwvE= Feedback-ID: mattiase@acm.or Received: from [192.168.0.4] (c188-150-171-71.bredband.comhem.se [188.150.171.71]) (authenticated bits=0) by mail102c50.megamailservers.eu (8.14.9/8.13.1) with ESMTP id 11B8nTWA005990; Thu, 11 Feb 2021 08:49:31 +0000 Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.17\)) Subject: Re: 28.0.50; Compiled code making a variable dynamic stopped working From: =?utf-8?Q?Mattias_Engdeg=C3=A5rd?= In-Reply-To: <87v9azsftl.fsf@web.de> Date: Thu, 11 Feb 2021 09:49:29 +0100 Content-Transfer-Encoding: quoted-printable Message-Id: References: <87h7mm79ij.fsf@web.de> <874kiksj5d.fsf@web.de> <87v9azsftl.fsf@web.de> To: Michael Heerdegen X-Mailer: Apple Mail (2.3445.104.17) X-CTCH-RefID: str=0001.0A742F15.6024EF9C.0026, ss=1, re=0.000, recu=0.000, reip=0.000, cl=1, cld=1, fgs=0 X-CTCH-VOD: Unknown X-CTCH-Spam: Unknown X-CTCH-Score: 0.000 X-CTCH-Rules: X-CTCH-Flags: 0 X-CTCH-ScoreCust: 0.000 X-CSC: 0 X-CHA: v=2.3 cv=KdGsTjQD c=1 sm=1 tr=0 a=SF+I6pRkHZhrawxbOkkvaA==:117 a=SF+I6pRkHZhrawxbOkkvaA==:17 a=kj9zAlcOel0A:10 a=M51BFTxLslgA:10 a=Ja4795sAJVXnyMp9jNEA:9 a=CjuIK1q_8ugA:10 a=jPQ0WnQaHDMA:10 X-Origin-Country: SE X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 46387-done Cc: Stefan Monnier , 46387-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: -0.0 (/) 10 feb. 2021 kl. 23.44 skrev Michael Heerdegen = : > Yes, works as expected now, thanks. Excellent, closing then. > And also thanks for working on that > optimization stuff. Low and uncertain payoff, high risk of becoming immensely unpopular by = breaking everything in mysterious ways -- the dream job! From unknown Fri Jun 20 18:24:56 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Thu, 11 Mar 2021 12:24:08 +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