From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Arthur Miller Newsgroups: gmane.emacs.help Subject: Re: Error does not throw to debugger in 'when' block Date: Thu, 12 Jan 2023 20:18:22 +0100 Message-ID: References: <83o7r4kvgs.fsf@gnu.org> <87mt6oyows.fsf@web.de> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9022"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: help-gnu-emacs@gnu.org To: Michael Heerdegen Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jan 12 20:20:20 2023 Return-path: Envelope-to: geh-help-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 1pG37b-0001wK-Ja for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 12 Jan 2023 20:20:20 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pG35r-0000z3-OA; Thu, 12 Jan 2023 14:18:31 -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 1pG35q-0000yf-BP for help-gnu-emacs@gnu.org; Thu, 12 Jan 2023 14:18:30 -0500 Original-Received: from mail-he1eur04olkn2017.outbound.protection.outlook.com ([40.92.73.17] helo=EUR04-HE1-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pG35o-0000Eq-A0 for help-gnu-emacs@gnu.org; Thu, 12 Jan 2023 14:18:29 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Hqrr9E07X8mif8YqQuZzXh/DUxQTGixoPIT8n/dHNferQVD1OtgKrizsl88jd/NPfiki5oswY5JjSpYGofE57z/xYChpOYx4odKz0j7F9rGg1DKu6+VwZHtIk3WE9Mq+cnIwiTOQJRmqSkagEPtfDnZxOpUZULJn3WIIBGnKv5557PktNJ5xtlKEp13R92cAPcE7u6SWBL221CHVVEGmrb/+U6CXVV5JxEClOIQgRkV/TbaItKZlBWNFD/pMkLOfVmSE0RLQH6/eMC5wUd4VBHRGIxZ/znb4CNQoWkhm+oPKFH1cqXyDRmKeFz2sdlINVkU63sqNdr85pWvBe+EZhw== 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=G2BDZTVFdqtkRejRpsvPY73l3dd8G/+Y+zZJVMKNu3g=; b=ip9biDNckNdwd25m6fhXkbTG85xUAtcT23IGP4k+vXFlA6qnlDZ5C6qubh49/bjPFecNWtiLC4lKP1C9j0G2hWm01xm7CPxd1EUNMg1142aSvjp7cnOpZedSC2mHlVksR48NR3Jto6BmHXLCTEU4olKYPhu6LeJnQMt+PoVnOjEpym1pQ2kp415baNKyeoEPCrt1uW03wc6YWD8K3pQ9niWGue/tmHsypontkJREKgoC2SkeYgBHEpjKz69stp1lIklt7Xk46f8AR/XvVRcGfTgq1wFmaIpieQaxNpRJ3s1Eb4zL/fWbbM7wPq4LtSFhKhhQDpv+QwNp7slKT93FWg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=live.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=G2BDZTVFdqtkRejRpsvPY73l3dd8G/+Y+zZJVMKNu3g=; b=f/BPS2AwpMpiIX3wCRzKM/pwWKc7R3Dc9jjQ0SS0cR81LvuS/V5nggcCworGIPyAfO9vlTv+DxV5uQTcp/OJ3FN6pNlNORt6SY8Ecx99ttGmME9omoCXijOgsv9jKB6bck40ZYnjoap6WT6Jwiv9v752lZsshU1VFB7B2q+Dg/apvb34elFj0IhngMg+7y5eXQKNN4P5cywBBF32zdxDkFJMNo2dGgsfR6ikPwusI0UkZ3laIOj4OVvr7l5GEsSwYGgkDzS/Em97nlrte7Ah8rwX7EJ2DtKv4i+rMq561aPj8+QD7zJC2NssG0ZgRAoc7RXQc0d6x8uf8XBhKdI5zA== Original-Received: from AM9PR09MB4977.eurprd09.prod.outlook.com (2603:10a6:20b:304::20) by AS2PR09MB6263.eurprd09.prod.outlook.com (2603:10a6:20b:5fa::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5986.19; Thu, 12 Jan 2023 19:18:25 +0000 Original-Received: from AM9PR09MB4977.eurprd09.prod.outlook.com ([fe80::f2af:9752:58df:ad9]) by AM9PR09MB4977.eurprd09.prod.outlook.com ([fe80::f2af:9752:58df:ad9%3]) with mapi id 15.20.5986.019; Thu, 12 Jan 2023 19:18:25 +0000 In-Reply-To: <87mt6oyows.fsf@web.de> (Michael Heerdegen's message of "Thu, 12 Jan 2023 12:26:27 +0100") X-TMN: [t3zV1rOHmvMRnTEDPEpgEPMSuGE9XK3e] X-ClientProxiedBy: MM0P280CA0022.SWEP280.PROD.OUTLOOK.COM (2603:10a6:190:a::7) To AM9PR09MB4977.eurprd09.prod.outlook.com (2603:10a6:20b:304::20) X-Microsoft-Original-Message-ID: <87358fwoht.fsf@live.com> X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM9PR09MB4977:EE_|AS2PR09MB6263:EE_ X-MS-Office365-Filtering-Correlation-Id: de57b545-0e83-46b5-214a-08daf4d1c5ff X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: B/oNDPeJlYTpC3d5fKmSEhZhfLk8Bn0iVUMxoNLdhgoFoS/z24cJIpffk2Y4y2ofsAIDynnQHonrQLV53JJLKO9ULm0sCwUCOq2kVAiBJCWdKFZlGdrdWk32IXPd/81mFBvstExJJWuxQvvT3HDzpn7U5WFq+MdMc1DGVuhxG4rFMgHmf02EtgZ2prtlu+R+sMwhldZX5DUXn0FfziYURGjBIOfBdfYSmme3FUlJO4eW5k3kSBCP7KJnbTNPn3WxcyiklXx+oa0YKRW6+mrYkJrL4MTaQ7lk/bmIlYiaFiWZZ1p1dlsbGUzTCBJDxON6oeI6R64TzK96Dz0U9B1V/jXz+3A7mVv5sr1s7HIX2eth9G0aaR+XHz2fsPP/cqnRSJoY7qLSLTz9fLs6aI5+DB5TxPt23z5yPGBsrfhHjEChSEzdyyOBOn3cqsNYWbt9IjMXBzwnWLpc4+0b3H+cgtGLxM96vPvcFk1nRb6g+fq2d7tEuAicT/bq798Ln5uiYZ7hl4ROu+/J2zhkKIwsjU1XjZTE9sbQfArjPFMCVstHn7gx73H8Efyrob08ZZVFN1ss0cgrtZEPfFvBL7in5MIzb7LG1DFujWTmBg8I88DUp4l+PkKhZd/bZciRSzS69u0EtIfDou2j4b3ky6Nr9yHQy1woPTRqh+HzoPjgobk= X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?OzIr4LsBVbaSQmZKV1UlReftOy5a5fbGzOhvCEXGbUDVgG1rXFip2pFLlNIQ?= =?us-ascii?Q?SwDcKrl4GP/EF/28QbqLzWfXbMTaG/CYY1mTlgF3y/K+N3CQo8vJPYHydohp?= =?us-ascii?Q?ej9HEkmQhxLRworykH0F1yrOgYMb0Txzj2+oI6qI8c7BNbY52h0RE4N0oJ3I?= =?us-ascii?Q?59fcSu93hjjR2Hbk3BCzAWBNWqSUVl4U+K0bu1rgmD+m9hzB2w2bIoub5Mg2?= =?us-ascii?Q?JLHhbD8uo/eX6bGH8ng/AJex10Jj4ugbr6WBh30p+Z9TB8XYpNGnMqQ4lE3p?= =?us-ascii?Q?nd7HD/4mJSpViYAzD9ahXQXplgeJ8RQx7hsBFCSyuyh7sR3ieoDR+3MrzkH+?= =?us-ascii?Q?FBL91hkcaD7W87p+ZhTb79tYbeTeepYCuLiZXd5iJpdoB2phcCvfbwu8HStH?= =?us-ascii?Q?Sj2oAH+eoZXGxC89zIo0fH56xS8GHYz/RYvSZvAfYpwUhfSDpADiGASQ4mxn?= =?us-ascii?Q?Ou0Pl5ogJe0kMr9YTNb4FelIlv0NeeHkwMsHj8r4ybmC5VHjylbRcX9LSntl?= =?us-ascii?Q?rohvGVnHlG2RZAgfg4mmKzOLo5OZuj04bWQ+Om3GL2VvMqp2rLBWxSq1yne5?= =?us-ascii?Q?vZl1x4jbMwLA6RxjqQEkmJwpilpRghMUq64NJGrqt5zESsBXBdtI6EG/l7yI?= =?us-ascii?Q?Aw X-OriginatorOrg: sct-15-20-4755-11-msonline-outlook-64da6.templateTenant X-MS-Exchange-CrossTenant-Network-Message-Id: de57b545-0e83-46b5-214a-08daf4d1c5ff X-MS-Exchange-CrossTenant-AuthSource: AM9PR09MB4977.eurprd09.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Jan 2023 19:18:25.2220 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS2PR09MB6263 Received-SPF: pass client-ip=40.92.73.17; envelope-from=arthur.miller@live.com; helo=EUR04-HE1-obe.outbound.protection.outlook.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:142215 Archived-At: Michael Heerdegen writes: Let's just do the part that matters: > For C-x C-e you need to eval a form that raises an error. Also that > works as expected: evaluating the defun doesn't raise an error as > expected. Yes of course. As Eli said details matters. I have now looked more into it, tested another example, and I do understand now what happeneds; I just didn't know it worked that way: When called interactively with M-x, (as the command) the evaluation of the function exits on error, the error message is emittied, but the evaluation is not trapped in the debugger. When called from lisp, for example via: M-: it ends up in the debugger. I was calling it interactively, and didn't realize realized it worked this way. I wasn't aware that "commands" does not trap in the debugger on errors. Maybe I need to set some other of debug-on-* flags? Actually, I am happy as it is, I was just curious about what happened since I expected something else. It was my bad to run it as a command, but I didn't know it worked that way. I took a look into manual, parts about about Debugging, command loop, interactive call and defining commands, using interactve, as well as in help for error, and I don't see it mentioned anywhere. Anyway, thanks; I have learned that one now :). /arthur