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#73746: bug#73725: Master: Wrong position for byte compiler warning message. Date: Wed, 23 Oct 2024 09:30:23 -0400 Message-ID: References: <8A05D4D2-C77B-4089-B82C-4DB3E88F1276@gmail.com> 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="20670"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 73746@debbugs.gnu.org, Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= , 73725@debbugs.gnu.org To: Alan Mackenzie Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Oct 23 15:31:55 2024 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 1t3bSt-000598-D3 for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 23 Oct 2024 15:31:55 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t3bSg-0006cv-F1; Wed, 23 Oct 2024 09:31:42 -0400 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 1t3bSX-0006cE-RG for bug-gnu-emacs@gnu.org; Wed, 23 Oct 2024 09:31:36 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1t3bSX-0004Qy-GH for bug-gnu-emacs@gnu.org; Wed, 23 Oct 2024 09:31:33 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:References:In-Reply-To:From:To:Subject; bh=HV7IU66e7GUvqogBjuRhcNEtPMGxBr2RQdkUKZO9HFo=; b=JUL4hvV2DiCrN8zjcJfx0Mv06gorMraiWsGt2iK63K8VHA2ej4j/FH0Xi/zNoc7PCM/yQuyX3UyaCqOjEvTuc+LWhz+4zDz53uWfY4o8DADW7TOPYgVL0k6exQY2e+WpmJPsbS6gXn+NCpvz2C+OOU5SJ/GmTpUG+wAemvh5bsjR+9ckHvFLwx5Ch/xVCmMJCMazfrh4bCgIZMeyo+3//s49bcBRZdkpuTICJpxUwAN+wzaNyD+CtXTBySJHmkNQ1VUtG8THtTxLQz+6DEyTu1Wz9QSK7TW43Q50bljRcX3Yc3+lVBI9XnpxHsuO8bi43FQosGIqX62QHzwDHHH5yQ==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1t3bT0-0004BN-MI for bug-gnu-emacs@gnu.org; Wed, 23 Oct 2024 09:32:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 23 Oct 2024 13:32:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 73746 X-GNU-PR-Package: emacs Original-Received: via spool by 73746-submit@debbugs.gnu.org id=B73746.172969026515983 (code B ref 73746); Wed, 23 Oct 2024 13:32:02 +0000 Original-Received: (at 73746) by debbugs.gnu.org; 23 Oct 2024 13:31:05 +0000 Original-Received: from localhost ([127.0.0.1]:59039 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t3bS4-00049d-I0 for submit@debbugs.gnu.org; Wed, 23 Oct 2024 09:31:05 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:62891) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t3bS1-00049A-DT; Wed, 23 Oct 2024 09:31:01 -0400 Original-Received: from pmg3.iro.umontreal.ca (localhost [127.0.0.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 967414407CB; Wed, 23 Oct 2024 09:30:26 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1729690225; bh=j7QrK91pfGswVPmE1b8l/+6qpVtYuOGpL7WuOFxNL/E=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=kfRPI+kLefrUEqLFKoTLNIxX/hz2Bx097+EpxJvuX7NFJZDB69PnX7mSOBq9ZrS9q SEc32+2it9d20zTgYn+LXJ5wQfqPZJrgHTQgS04f4seJbDMkmC+E8Ed38QmRVI3Gns qDXB3itvEhR0NX0eGPtDo+ajMg5hTS1QOyEhtXooi4AaTdZyTDQncwg6VkJeeVPyVg EmE/QEVsF6rPKkiPNjakOUemur1naRtkIyEmH3JEe4XECqvbOpGGU2HogWvQ12Gwq2 vOKB7+8Lbxxufjvf97XwCCZZs/KCaazxFScSoF6wGuAg4ETO/o/BddbE1oFMmLeDY1 l1MOclxnZkT8w== Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 4F4D4440A97; Wed, 23 Oct 2024 09:30:25 -0400 (EDT) Original-Received: from pastel (69-196-161-60.dsl.teksavvy.com [69.196.161.60]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 11C18120BC6; Wed, 23 Oct 2024 09:30:25 -0400 (EDT) In-Reply-To: (Alan Mackenzie's message of "Tue, 22 Oct 2024 21:19:13 +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:294143 Archived-At: >> > I remember removing it, but can't remember exactly why. When I byte >> > compile the code, I don't get an undeclared variable warning for it, for >> > some reason. >> [ Interesting. I'll try to remember to track down this sucker later. ] > > I think I understand this, now. It's a "use-mention" confusion. ;-). > When macroexp-macroexpand is getting compiled, the compiler calls (the > loaded or compiled version of) that function. Running the function > `setq's macroexpanded, hence binds it. Ah, right, yes. That makes sense, thanks for saving me the trouble to track it down. > I'm not sure there's much that can be done about this "bug". I'm even > less sure that it's worth the trouble. Maybe there could be a more > rigorous check of the variable's existence than (boundp var). But, as I > say, it's likely not worth the trouble. Maybe there are other free > variables hiding in the compiler, though. Yeah, it's possible, but I won't lose too much sleep over it. Stefan