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: Wed, 09 Nov 2022 12:54:57 -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="27774"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) 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 Wed Nov 09 18:56:29 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 1ospJM-00070s-Hn for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 09 Nov 2022 18:56:28 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ospIz-0001a6-NP; Wed, 09 Nov 2022 12:56:05 -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 1ospIw-0001ZW-T8 for bug-gnu-emacs@gnu.org; Wed, 09 Nov 2022 12:56: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 1ospIw-0007e7-I9 for bug-gnu-emacs@gnu.org; Wed, 09 Nov 2022 12:56:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ospIw-0003s5-3Q for bug-gnu-emacs@gnu.org; Wed, 09 Nov 2022 12:56: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: Wed, 09 Nov 2022 17:56: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.166801651514755 (code B ref 59057); Wed, 09 Nov 2022 17:56:02 +0000 Original-Received: (at 59057) by debbugs.gnu.org; 9 Nov 2022 17:55:15 +0000 Original-Received: from localhost ([127.0.0.1]:40836 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ospIA-0003pv-UQ for submit@debbugs.gnu.org; Wed, 09 Nov 2022 12:55:15 -0500 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:4418) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ospI9-0003pg-BX for 59057@debbugs.gnu.org; Wed, 09 Nov 2022 12:55:14 -0500 Original-Received: from pmg2.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 19CA680796; Wed, 9 Nov 2022 12:55:06 -0500 (EST) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 5D3F880762; Wed, 9 Nov 2022 12:55:04 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1668016504; bh=s44yGKvbiXDGsbe294P0EWtC49US4PKrWs1YzABJpho=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=DP3gBkdcgZw+hLeXDaD7MPqO2mnPijK4yVZcrzQYcyKnUW5OOJAy5SnDx9ClvftYe VmqnhNDnS1Xohs4ynssMN+paChcDoIE3d1d4FwVmneKAUvMIkJrnFAgogqoO007Ds5 3EPpGiM+AcHbu5dp3uRJYr+ENcNSS/O2JdEq+6qNRGtZ8YYTmUJTfbwyR9Nvacmekx wUDPvieVQrf6iUWpVLIoVAFhKXBl3GghKlnFThnfCpYMAa9t+r4ocMiaf8jaccjxNE pKGO3Sclj22MxYYV/RE7YaeRbnKfAoumfscKXwn+1dYujJbFW5DbPwF7/8+rYsBiEr sMgCq7Tool8UQ== Original-Received: from lechazo (lechon.iro.umontreal.ca [132.204.27.242]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id EEE06120851; Wed, 9 Nov 2022 12:55:03 -0500 (EST) In-Reply-To: (Alan Mackenzie's message of "Wed, 9 Nov 2022 13:40:57 +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:247457 Archived-At: > The basic problem is that defvar is a dog's breakfast of a function. In > fact, it's two distinct functions sharing a name. These two functions > have little else to do with eachother. Yup. > And defvar appears to be the only function in Emacs where supplying nil > as an &optional argument has an effect different from omitting it. This > is bad for anybody trying to learn Emacs Lisp. Not the only one, sadly (`declare-function` comes to mind :-)), but yes, it's unusual. Stefan