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: Sun, 10 Nov 2024 11:45: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="6119"; 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 Sun Nov 10 17:47:23 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 1tAB5u-0001KU-RR for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 10 Nov 2024 17:47:23 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tAB5b-00059Z-TM; Sun, 10 Nov 2024 11:47:04 -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 1tAB5a-00059H-KB for bug-gnu-emacs@gnu.org; Sun, 10 Nov 2024 11:47:02 -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 1tAB5a-0004dP-BQ for bug-gnu-emacs@gnu.org; Sun, 10 Nov 2024 11:47: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=Q9vBnJ0u9QPSEWLEsAvnRe///gmQhkNsjRdt1koB/n0=; b=I1aWRMb05LLNd1LmdvWMPzcfV+BaL4b0eg9Mc+PnM6iIh4z47+seSXFnEqOS1lds5zmYNhy+9UBI4Co+drpO5OnRSiGgcyhi2ledYT5Psx2qKMyAkfR8oXYHqs8RQPsmfSzlbpFBCKlb+v07hvnZjCs8GEeKJXwv7oDja63B94udADK4vZ1la/nXbGxMVMMYmx6xQintkPRUayobG2bPdqts/ikoumHRzpdzpwqPy3otk2/89g8cbgHPnhH0twf4tn+TeuCqCqka7751gtHDwZe+iME2i8ZBhRI/Np4/RulIJq0fTpbV1T+4mRfYUUWBLHBWmLsBiWnnog9yPxWsYA==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tAB5a-0002K7-6L for bug-gnu-emacs@gnu.org; Sun, 10 Nov 2024 11:47: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: Sun, 10 Nov 2024 16:47: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.17312571638835 (code B ref 66912); Sun, 10 Nov 2024 16:47:02 +0000 Original-Received: (at 66912) by debbugs.gnu.org; 10 Nov 2024 16:46:03 +0000 Original-Received: from localhost ([127.0.0.1]:56410 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tAB4d-0002IR-0d for submit@debbugs.gnu.org; Sun, 10 Nov 2024 11:46:03 -0500 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:62302) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tAB4a-0002Hp-Qq for 66912@debbugs.gnu.org; Sun, 10 Nov 2024 11:46:01 -0500 Original-Received: from pmg3.iro.umontreal.ca (localhost [127.0.0.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 4A5724409A4; Sun, 10 Nov 2024 11:45:54 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1731257149; bh=/HWhDLoPaBOzlRN2fFu21bm9XqZ8B52+DHaQhGRJn6M=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=RS6yxuoWHTUwgTIVfjOJM7WzmbYgHHTu3lVhWm/1heZdN1F0uH2dCQWoZBRrBK1Fj Gvs8oLA949XzIFOA+O6bSlgbh5DKhZy4da7tTWr83iZNbVccKcw9SdH0g+uZOaX0av 4V69hbR/Y6oAV4O3C5/E92HNDCxyRIWcWOeWK8IO7Qb+JMi2xQJ3N2suDDr/kYD988 M90IPVNkEWhuQQNzOOQQveZnwYKiRaPKE+3/SJJiHCKywcue0CxeaBefcZTglMAYjc kgYpIzg55HWTB1QTtUMNPTpQSumbAzYrLzskujps/8O3mJZokHZ6FX9ThcBayxfc61 jw6OwCu/re6Eg== Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 188F64409C8; Sun, 10 Nov 2024 11:45:49 -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 E16E81204E5; Sun, 10 Nov 2024 11:45:48 -0500 (EST) In-Reply-To: (Alan Mackenzie's message of "Sun, 10 Nov 2024 10:40:31 +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:295192 Archived-At: >> Then I don't know what "the message" you're referring to. >> (or are you referring to some other point you made elsewhere?) > I simply meant what the user sees on the screen. If the user sees > "While loading foo.el... \nWrong type argument: listp, baz" whilst doing > something, then enables the debugger and repeats the action, she should > see the same message at the top of the backtrace. Surely? Truncating > that message can only lead to confusion. I still don't understand: currently, if you see a message "Wrong type argument: listp, baz", then enable the debugger and reproduce the error, you won't see "Wrong type argument: listp, baz" but Debugger entered--Lisp error: (wrong-type-argument listp baz) instead. IOW, instead of the error message, you see the error object. > Again, why do you think this is what we should aim for, rather than > having the same message in the error handler and at the top of a > backtrace? Because of my "A => B => compile => C => D" example: the message I want to have depends on the chain from the point where I catch the error (i.e. the `condition-case`) to the point where the error is signaled. And I don't really care about the debugger case. Stefan