From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: New(?) idea for making backtraces usable: condition-case* Date: Thu, 20 Jul 2023 22:42:45 -0400 Message-ID: References: <83ttu27c0w.fsf@gnu.org> Reply-To: rms@gnu.org Content-Type: text/plain; charset=Utf-8 Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="19274"; mail-complaints-to="usenet@ciao.gmane.io" Cc: eliz@gnu.org, emacs-devel@gnu.org To: Alan Mackenzie Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Jul 21 04:43:50 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 1qMg7R-0004qO-TF for ged-emacs-devel@m.gmane-mx.org; Fri, 21 Jul 2023 04:43:50 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qMg6T-0003K6-10; Thu, 20 Jul 2023 22:42:49 -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 1qMg6R-0003Jr-5W for emacs-devel@gnu.org; Thu, 20 Jul 2023 22:42:47 -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 1qMg6Q-0000iL-8R; Thu, 20 Jul 2023 22:42:46 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=Date:References:Subject:In-Reply-To:To:From: mime-version; bh=CsKjbnzzO/0gO2sjBW3k7LGh6KbLlyHLPGu6tmOCh9A=; b=c6F/zmPuH63x 9BvcWAW1tHzVkmJ96j2v6OHAF33X6KgHfTLtN+KII/5Daq9tL2Czj2YQXLcUCAkpnCbFrlVR8lDc8 h6ZWK4ABI13b0e6ZdAcpjPy3fWQPqM0wgyBzueTug8F8kqbRL1wSKudh659ONe4NAf3Ljjj3/BIsd fnDLvm0aueiQtYtx/vCvmeOgrS/wsTRWWLXHvEz6yoZQDdiGiJ+0SZIDxt8k8JXUfSLRmsrMmC0+A jsLkBuk6UjZgA1MW5VuphZgzrwW52VwYaHrEAcr1fbY/3lJ8G4Zbo8hoIlR7RxS/C34OnRtlMNYFC msSHK5+jfB+edBw8dPEW+A==; Original-Received: from rms by fencepost.gnu.org with local (Exim 4.90_1) (envelope-from ) id 1qMg6P-0003bJ-Ro; Thu, 20 Jul 2023 22:42:45 -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:307990 Archived-At: [[[ To any NSA and FBI agents reading my email: please consider ]]] [[[ whether defending the US Constitution against all enemies, ]]] [[[ foreign or domestic, requires you to follow Snowden's example. ]]] > I've tried using debug-on-signal, but it triggers just too often to be > helpful. It would not be terribly hard or ugly to create new ways of speciflng which signals or errors should call the debugger. They could implement whatever additional conditions you like, by specifying a function to call which should return non-nil to call the debugger. What would make this simple and clean is that instead of saving backtrace information to be looked at later, it would call the debugger instead of copying a selectio of data in internatl formats. -- Dr Richard Stallman (https://stallman.org) Chief GNUisance of the GNU Project (https://gnu.org) Founder, Free Software Foundation (https://fsf.org) Internet Hall-of-Famer (https://internethalloffame.org)