From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: New(?) idea for making backtraces usable: condition-case* Date: Thu, 20 Jul 2023 07:41:57 +0300 Message-ID: <83a5vr42ju.fsf@gnu.org> References: <83ttu27c0w.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15566"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Alan Mackenzie Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Jul 20 06:42:08 2023 Return-path: Envelope-to: ged-emacs-devel@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 1qMLUN-0003rz-36 for ged-emacs-devel@m.gmane-mx.org; Thu, 20 Jul 2023 06:42:07 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qMLTm-0001gD-Ik; Thu, 20 Jul 2023 00:41:30 -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 1qMLTh-0001eZ-M6 for emacs-devel@gnu.org; Thu, 20 Jul 2023 00:41:26 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qMLTg-0000gf-Ra; Thu, 20 Jul 2023 00:41:24 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=t9URBro7odUAJbDz4+DUZELfJhnXDuhHUnxZxB7/xO4=; b=PMruNWv+HCeR c98tqVhMSZsQWxDe3r/n/EeSbVt+63gK8esD/vH8fQNH6zbMWGcjcwxlBIJd2vQfU66xcFi+obDPF 8HgFHW44vA6kZWAD4ame0v+4A133LRPlfPmoNjeo8k8zzX39n1EzkPNx9F5FHAC70E1DEwlel336P Tmo4DsRcOapn6nSwVzD6KZ8KwPY+t/N3yJg3O/QAoy5BzVEzWSACKDdf4pmRdhV7XuE1hiq8eMXvV N3BgcLDEYq+eqW55gciDaLCqbBqAS6IIdMk8YmQcu2yNmfb0I0ZhUB0dXAr2TllDh1FYVpItc+uH4 awiUg8KinKYQ7u67/7dlPw==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qMLTf-0005wK-PT; Thu, 20 Jul 2023 00:41:24 -0400 In-Reply-To: (message from Alan Mackenzie on Wed, 19 Jul 2023 20:35:06 +0000) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:307979 Archived-At: > Date: Wed, 19 Jul 2023 20:35:06 +0000 > Cc: emacs-devel@gnu.org > From: Alan Mackenzie > > > . setting debug-on-signal non-nil > > . using 'debug' among the condition-case's conditions > > . using condition-case-unless-debug > > Maybe not very much. > > I've tried using debug-on-signal, but it triggers just too often to be > helpful. > > I didn't know that one can usefully put `debug' in a condition-case > condition (which is what condition-case-unless-debug does). So, thanks > for the education! > > But we only have 33 uses of condition-case-unless-debug as against 1661 > of condition-case. There're probably a lot of the latter that could > usefully be changed into the former. Right, but then we have zero uses of condition-case* ;-) > Anyhow, I withdraw my proposal for condition-case*. Understood.