From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#59057: Emacs 29. Byte compiler sometimes forgets about a defvar. Date: Tue, 08 Nov 2022 09:12:38 -0500 Message-ID: References: Reply-To: Stefan Monnier Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="8665"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 59057@debbugs.gnu.org To: Alan Mackenzie Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Nov 08 15:13:21 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1osPLs-00021A-Qt for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 08 Nov 2022 15:13:20 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1osPLe-0003pA-D6; Tue, 08 Nov 2022 09:13:06 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1osPLa-0003lT-VX for bug-gnu-emacs@gnu.org; Tue, 08 Nov 2022 09:13:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1osPLa-0000kh-NV for bug-gnu-emacs@gnu.org; Tue, 08 Nov 2022 09:13:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1osPLa-0001Yh-FT for bug-gnu-emacs@gnu.org; Tue, 08 Nov 2022 09:13:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 08 Nov 2022 14:13:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 59057 X-GNU-PR-Package: emacs Original-Received: via spool by 59057-submit@debbugs.gnu.org id=B59057.16679167735975 (code B ref 59057); Tue, 08 Nov 2022 14:13:02 +0000 Original-Received: (at 59057) by debbugs.gnu.org; 8 Nov 2022 14:12:53 +0000 Original-Received: from localhost ([127.0.0.1]:36709 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1osPLQ-0001YI-Jf for submit@debbugs.gnu.org; Tue, 08 Nov 2022 09:12:52 -0500 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:17625) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1osPLK-0001Xz-Rb for 59057@debbugs.gnu.org; Tue, 08 Nov 2022 09:12:50 -0500 Original-Received: from pmg3.iro.umontreal.ca (localhost [127.0.0.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id DD8B8442180; Tue, 8 Nov 2022 09:12:40 -0500 (EST) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 9E85144217B; Tue, 8 Nov 2022 09:12:39 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1667916759; bh=pPY/AMw6tYgtQePKZSm9tLHp9akK5tVz5DaiTluf1gw=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=BElF/w51kN8d2MSRr4hVXeWuDdtFYCsDdzwvg8XdIOu+OG9VjS+9MYvChkfmgF6Aa oZrsrZVBkwI/JREaomfgqU+HB8CQlIDiMfbZOdLNMoow9f3bHj7Z229MNYNw6kBboL NHFY0l6ZEYYHQIVIJTpnNY4oskW8WPGjYosfpqaWwC5rjma4AOvA5ovcW/U/kH3TM2 05Oc4hplQbtd62QnkgG7sQv+OPjHiTBP2mHbGfe13aKVyVQgwVUgcs4hCm5+77Y7Dq fXYdO9r8uMPYzY+ksZ77Ge0meDHV5203epliEVQ+hwb1vBKnVs9GYy7Futk8iUN05T 8WufzMpW/d2gQ== Original-Received: from pastel (unknown [104.247.241.157]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 6640312008F; Tue, 8 Nov 2022 09:12:39 -0500 (EST) In-Reply-To: (Alan Mackenzie's message of "Tue, 8 Nov 2022 11:01:17 +0000") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:247331 Archived-At: > The recently introduced special handling of defvar without a value is > not welcome. `defvar` without a value has been treated specially (more specifically as a pure compiler-directive with no run-time effect) since at least Emacs-19.34, so I'm not sure "recently" can be applied here. > Why should anybody want a dynamic variable later to be > a lexically scoped variable?. E.g. for historical reasons `calendar.el` needs to bind dynamically the variable `date` around some calls to `eval` and to `run-hooks` because the code evaluated therein has been defined and documented for may years before to have access to important info via those dynbound vars. Yet, we don't want `date` to be globally declared as being always dynbound just because of that package's mishap, do we? Similar situations affect other innocent-looking vars in other packages. Stefan