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#66912: With `require', the byte compiler reports the wrong file for errors. Date: Fri, 08 Nov 2024 08:42:29 -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="9257"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Eli Zaretskii , 66912@debbugs.gnu.org To: Alan Mackenzie Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Nov 08 14:43:26 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 1t9PGn-0002F6-O4 for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 08 Nov 2024 14:43:26 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t9PGg-000332-Ux; Fri, 08 Nov 2024 08:43:20 -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 1t9PGR-0002yh-0B for bug-gnu-emacs@gnu.org; Fri, 08 Nov 2024 08:43:04 -0500 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 1t9PGQ-0003tW-Nz for bug-gnu-emacs@gnu.org; Fri, 08 Nov 2024 08:43:02 -0500 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=EaHCuHHDvVeal/2I/Dz48e72q6MCNELNE/wgf9q9FeM=; b=KmVsn6465sX6DhFsrp6cYDs8nrsWRR+GIJv8kshsFe+nEup95G5uUIZepfVa5NU3PuxwtNOv5w8NE73RxQFJEgxp6iqE0y4oig0AO1QPSjN9hrqAT9o6aHCBeZSb0A7+q7Oak+NcXxydiRS9BzmaK7S4HnTp6ZKM1blmSoyGQw6L8O4PlJ8M4QLc/rdERWNS39PChnRO3zyNo4KbtH6QRiwwy9S5AjRKga67Sgyd5erOr2//ASIXN4MI/HVMAZRLybpARPhegCzyM+qxIn2ZwaMTRZsJikEy3mSJslJSJzOC2htF3ybpAg08BI4t+EprRzm/9gYYG+zMXLi2uzYC2g==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1t9PGQ-0007Lr-IP for bug-gnu-emacs@gnu.org; Fri, 08 Nov 2024 08:43: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: Fri, 08 Nov 2024 13:43:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 66912 X-GNU-PR-Package: emacs Original-Received: via spool by 66912-submit@debbugs.gnu.org id=B66912.173107336028221 (code B ref 66912); Fri, 08 Nov 2024 13:43:02 +0000 Original-Received: (at 66912) by debbugs.gnu.org; 8 Nov 2024 13:42:40 +0000 Original-Received: from localhost ([127.0.0.1]:51559 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t9PG3-0007L6-H2 for submit@debbugs.gnu.org; Fri, 08 Nov 2024 08:42:39 -0500 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:44494) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t9PG1-0007Kr-FB for 66912@debbugs.gnu.org; Fri, 08 Nov 2024 08:42:38 -0500 Original-Received: from pmg1.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 91F191004A1; Fri, 8 Nov 2024 08:42:30 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1731073349; bh=PRgbSnuJpoI80lfbUILP/e9WIamgo/mI1pZJwMextDA=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=ou3KW5Xr0R4QwpWFht1JeeRLsl3Wy0ex3L97SnhFyF1aAqhyl17/HQAxNpvpYxJqb w04bL7X9F9g/FmKAfb6ojPRsyK/pkbfjfKshFEI1pfZDBABH7QpSPI5vLwbMdtV0tA W3xbEXVNyYyXMup+HTgmr7Cu66Hmf2z/90MgMGwBkTUtTJKToML5Z6uj1lGQ3Q/VcI 6AdQgm5NKzvVsDSMfx0zm8u4leDFKIDur0jlyco3FwgUhUHTHl7BSX5zTnCKhi320s 6XE/YxjpCou+TEpAb4u4blvQjzwuZYNwU+YLkzDU5mO1GzWc7bammAos6TBKEe5Sj6 DJ5DWz2XBfciQ== Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id D08201001D9; Fri, 8 Nov 2024 08:42:29 -0500 (EST) Original-Received: from pastel (104-195-225-43.cpe.teksavvy.com [104.195.225.43]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id A092712032C; Fri, 8 Nov 2024 08:42:29 -0500 (EST) In-Reply-To: (Alan Mackenzie's message of "Thu, 7 Nov 2024 17:15:49 +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:295066 Archived-At: > Yes. When the debugger handles the error, the binding stack hasn't been > unwound at all, so Vloads_in_progress and Vloads_in_progress_at_error are > EQ. So the difference between them would be empty. I understand that, but I don't think it explains why you think it's a problem. E.g. when you're in the debugger, you can see the stack trace which tells you we're loading A, so you don't need to be told "while loading A" in the error message. >> > Something very similar, if not the same, was the original handling of >> > byte-compile-form-stack. >> Something only you worked with, AFAICT. So it doesn't have the same >> "known issues" advantage for the rest of us. > Oh, come on, Stefan! I'm just describing the way I see it: I personally don't have a good intuition of how/when it could misbehave nor how to work around such cases, whereas I very much do for the approach I propose and AFAICT it's not just because I proposed it but it's because it follows a known pattern, so I expect the same will hold for other coders. Of course it wouldn't be the first time I'd be wrong. Also, I didn't say I objected to your approach, I just have a different preference: you don't have to convince me. Stefan