From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.bugs Subject: bug#66912: With `require', the byte compiler reports the wrong file for errors. Date: Sun, 12 Nov 2023 23:00:02 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4283"; mail-complaints-to="usenet@ciao.gmane.io" Cc: "66912@debbugs.gnu.org" <66912@debbugs.gnu.org> To: Stefan Monnier , Alan Mackenzie Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Nov 13 00:00:49 2023 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 1r2JRf-0000vv-I7 for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 13 Nov 2023 00:00:47 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r2JRI-0003XT-BK; Sun, 12 Nov 2023 18:00:25 -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 1r2JRF-0003XE-Tb for bug-gnu-emacs@gnu.org; Sun, 12 Nov 2023 18:00:22 -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 1r2JRF-0000rj-Lc for bug-gnu-emacs@gnu.org; Sun, 12 Nov 2023 18:00:21 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1r2JRu-0007J8-I7 for bug-gnu-emacs@gnu.org; Sun, 12 Nov 2023 18:01:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 12 Nov 2023 23:01: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.169983005428069 (code B ref 66912); Sun, 12 Nov 2023 23:01:02 +0000 Original-Received: (at 66912) by debbugs.gnu.org; 12 Nov 2023 23:00:54 +0000 Original-Received: from localhost ([127.0.0.1]:57226 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r2JRl-0007If-JZ for submit@debbugs.gnu.org; Sun, 12 Nov 2023 18:00:54 -0500 Original-Received: from mx0a-00069f02.pphosted.com ([205.220.165.32]:44836) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r2JRh-0007IR-7A for 66912@debbugs.gnu.org; Sun, 12 Nov 2023 18:00:52 -0500 Original-Received: from pps.filterd (m0246617.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 3ACMHHsW011585; Sun, 12 Nov 2023 23:00:06 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : cc : subject : date : message-id : references : in-reply-to : content-type : content-transfer-encoding : mime-version; s=corp-2023-03-30; bh=GdIT3h9hNquIzi5w/JrsjKuMzqoSmOSGUYhGzKV6Vmg=; b=erGOWjfC1/maXeKP2TJwDBVUzT9EydArd/WItRK4whP/2v268L5LS5DwZGsUwkpwXL5y H6XRZZdzSlhlpLeKmYfNUDWNZlinXYq4MmcT9OW/0iUSlafaQn7b70Mo1BBX/TpGwh5v GYpqR1wcFoWmA03ohiC5BQj0vZOFgTjFs/jpFsidDgE1OkGq0GMWF2cuydeR+IsxVRzk z9RCdj4UTk5rp0pwWOMoMbVODP4DT7iWYYmQymfTwlzoXv5WdPXqUZJ8AL4RI09IeZlZ Wk0eAN0JYCa5er1DFJERt5hdp87EC0jhjbrcfCnloFob8T41CIlcGQw2PdaVOL9ZetUm Lg== Original-Received: from phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta01.appoci.oracle.com [138.1.114.2]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3ua2sthqxc-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sun, 12 Nov 2023 23:00:05 +0000 Original-Received: from pps.filterd (phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com [127.0.0.1]) by phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com (8.17.1.19/8.17.1.19) with ESMTP id 3ACLo25k020846; Sun, 12 Nov 2023 23:00:05 GMT Original-Received: from nam11-co1-obe.outbound.protection.outlook.com (mail-co1nam11lp2169.outbound.protection.outlook.com [104.47.56.169]) by phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com (PPS) with ESMTPS id 3uaxgy1gj0-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sun, 12 Nov 2023 23:00:05 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=dhU3+6hUTNYBwsxO50V1ex/f2xdXYU6iaU815xCuFpNufX+rd/cD4KtqbR/ailVM70NoF995W0K5/Md/fQKz6D+vUfChcftDKLV8uDyAXH8s1DQmo2yNPnt7IvgJjdN2eAP/J5MX0MH8QCByNGJJGv1oBppi+gQHdADNvuU3JFKzFWFVHFlLrz361j42kwb2tVb/G59mVI3vVk3DknmBDTySUP2EHPMcEGgmxUYMZUGNLChN5F5iPz3M8MjhmUqO6vZt71bO1JRX0bxeBkCF8kp16VDnf1K95odDzfOlJ1n/uis9C13Av684cH+QFo7aY7hj3Fw1zBqMF27jjOzpRQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=GdIT3h9hNquIzi5w/JrsjKuMzqoSmOSGUYhGzKV6Vmg=; b=ZaMaQqdHge7iDWTuCuDwpWETsNCdGt8sbG9HxVPtz0VaEK19gJ6LJ5aGpvwZeBtMRPxumCqhZGSSXOWmgKk5m69NtAyp//gojQzxqCpTexE6wlA6ee5WV6JZOcZ2RbND9Gw6PaiwN640vIEcnnHUVd2a6YqGNKkHcyIGKLcrWisekMbBoPNszCK90WXzOpT7k9/dJZ7qZIBYPgpQIfvPDOles3cp80+0NXalaDGGpMURmUbe+kiPGX3Vl0MSzjFSadGQk9RuGyAGtoh+QLNNVEHeF/5eMuHdu/Wb4I8JUC3cwXnXRo83tw9Rph4Xx/F2R0hqVAQoxkeTftRT1li6qQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=GdIT3h9hNquIzi5w/JrsjKuMzqoSmOSGUYhGzKV6Vmg=; b=G6NqEWL/00yWuKs+4UsBlJxvDusJGI55ATz7A9konfU2ospf4UV6tgiNDC84h2eOcfKCI+uSNz0cpaQ8uKhhkZhFSCgc3Hlk/ebJaPaCj4Zvjv6MldClTBSj+yz6N2A/FQTlDQ4jVsQi80ObqfrVyLH6O1mEyzdAEmi442NF57E= Original-Received: from SJ0PR10MB5488.namprd10.prod.outlook.com (2603:10b6:a03:37e::19) by PH7PR10MB6155.namprd10.prod.outlook.com (2603:10b6:510:1f4::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6977.28; Sun, 12 Nov 2023 23:00:03 +0000 Original-Received: from SJ0PR10MB5488.namprd10.prod.outlook.com ([fe80::3b4c:a669:c229:47b4]) by SJ0PR10MB5488.namprd10.prod.outlook.com ([fe80::3b4c:a669:c229:47b4%6]) with mapi id 15.20.6977.028; Sun, 12 Nov 2023 23:00:03 +0000 Thread-Topic: [External] : bug#66912: With `require', the byte compiler reports the wrong file for errors. Thread-Index: AQHaFajRvNMt81NI40e0xNfi6854brB3MOSXgAAYgjA= In-Reply-To: Accept-Language: en-US Content-Language: en-US x-ms-publictraffictype: Email x-ms-traffictypediagnostic: SJ0PR10MB5488:EE_|PH7PR10MB6155:EE_ x-ms-office365-filtering-correlation-id: f4a650bc-bc20-4907-eac5-08dbe3d31acd x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: mvxmFqf2YJXq0amIXe+OCq/1TuPMINh1zBKCM8PsrwFnIMwDV29L1/pH0bha6eSyDzLWR7+9Vsq/j7caKHnbZrE/2BDGVNOnh5iLnrM1sMyOjZ/9usYLms3k3HOpjJHH53VaB1cp+W6pPmNXaHSbAZ0cBz8FAJnwmihciB6IFExpNBbS1ooRsWHiuJOWmizrouyE46XMNPU4/hRnmHb8IITcxZ/53mVlbg0uQ6MHZvCGAQo9xj7z/7tgmM0Tfh1sojyh2L6a00dvR56dliXbseA5LUpXVRV2y2MCJ4v5kph63R7ttjhnnyBLmzzZhrqQ4r+Pp4ezn+ox2wMaa0Er15/P+d+Z1ZYI/ycfLueLOrMW9aoUANi1M6eiFkbzmVSrZhmgsqYJuYtFqkwAi5NRACwz7QBtofwHWKc9iwfq+lYH4/nJt3uXMmWQNMLucD9f0p3/1MZHSag3lLX4/Ij4kFDelg/er4y9Z+pwch3FfnBI/9N62B5rkEWKJER0csFhnbeecD4Zxupd4M+GiEaJgFQ4UZgQFfzTi6JB2Rh13uBX+woGXQY4GCsqvEsdyrKgbrIrwOI9muQW+/42R0jpJNtOSnwvRxhD2rxz2FiCMaBD4smINBuQMXmwel3s6tAPTi21nAPhOfkpaqARspA22w== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SJ0PR10MB5488.namprd10.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230031)(396003)(366004)(136003)(346002)(376002)(39860400002)(230922051799003)(451199024)(64100799003)(186009)(1800799009)(44832011)(4326008)(8676002)(8936002)(52536014)(71200400001)(38070700009)(26005)(2906002)(5660300002)(86362001)(7696005)(6506007)(55016003)(33656002)(122000001)(478600001)(41300700001)(38100700002)(83380400001)(296002)(316002)(9686003)(66946007)(66556008)(66446008)(64756008)(66476007)(76116006)(110136005)(81973001); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: KYyuSexBfop1lwc694dHCY0FEIpBD7zzZCcV+ZcHWPaz8AVbUBnv33NueWl9zkNo9cWapxwgKnQJaKWJVfcHxmQtFYfQzaZ8wuYuK96gYqXHMHJeFvmXjLkgT2PhAzHHtKvH3r+mGAjK4w+iFolcp1aR458/ZTRXR6cCck17cBH+mu7AzpapUyqnnF76CXi34fekCzwDv9XSWebujiiyNb0I9m38Tarcez57lpnnr7cLtVzVCPTMCPgmy6eBx788ynyIhNnQd2Dbmwz8ITzGyStlV+gH+TwZWXVJcB8wLsxk/zx6R/HeTTbC/tTRsaMkx0SLJx2zql4/MnS6Sa/gkhYPGY2gpa3DfQjy0f7zxF3oLo97cOTLJKWx4hS4RB2pHsY+fEIoj/Nx1MM0CFs/eriPI21YRln3B79e5/tETz51SMR3RgX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v6JBFRwAJCjoWBFx2Tco/Zy4xJZFYIotx16njCROh777D4IwmvW0McCggF+jzTxHPHuxuRu8uGlUzXxFeH3OWuWju1txKduMDt1FtG2wXtXz7rWZECEXal+NmVoyPg8dDUShe62iOYqCryxFV2U8hqYn+t+r6Wr4ye9QWS54qocPWE1iLnDXA oVLwCXtLerxG+8OJkyrah3q/42VitKvERgLbP5NLo9h+CtcYKnErdI2/CwCcm/QPoJR+b5AU/28RBKdvn4VkY9U206IZ7jl/oz X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: SJ0PR10MB5488.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: f4a650bc-bc20-4907-eac5-08dbe3d31acd X-MS-Exchange-CrossTenant-originalarrivaltime: 12 Nov 2023 23:00:02.9746 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: eRQNQjIbnAXbMoGXAMXPPbxwtNf+8XxePY9CePKUcIUcw3LOoHgAa+2XQ8b+rwTWowepGC+k2hRseKmKVBsWww== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH7PR10MB6155 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.987,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-11-12_22,2023-11-09_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 bulkscore=0 malwarescore=0 phishscore=0 mlxlogscore=999 adultscore=0 mlxscore=0 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2311060000 definitions=main-2311120202 X-Proofpoint-GUID: 5PDeV-44BJQcS33PrRHfGb_ftPTY4W0x X-Proofpoint-ORIG-GUID: 5PDeV-44BJQcS33PrRHfGb_ftPTY4W0x 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:274242 Archived-At: > Dumping the backtrace is a kind of cop-out. >=20 > Don't get me wrong, I love backtraces, but I don't think we should > blissfully throw backtraces at unsuspecting users (unlike Python, say). > IOW, we should first work harder to provide better error messages. OT, so ... sorry. It just occurred to me that instead of just having a Boolean `debug-on-error', which turns use of the debugger on/off for an error, there might be a third possibility: show an error message and let you then decide whether to open the backtrace -- maybe click (or `RET') the error msg, or in some other way make the choice. IOW, we could perhaps prepare a backtrace buffer without actually entering its recursive edit etc. If a user doesn't ask to see/use it then it just sits there (buried) as an unused buffer. Or display of the error msg could allow for (1) activating/entering the backtrace buffer, (2) leaving it buried, or (3) deleting it. No idea about implementation or reasonableness. Just something that occurred to me. Yes, first priority should be a good error msg. Yes, users should be able to optionally open the debugger. But could we maybe give them that possibility after showing the error msg?