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#61847: debug-early-backtrace only works some of the time. Date: Wed, 01 Mar 2023 12:34:04 -0500 Message-ID: References: <83v8jkfz04.fsf@gnu.org> 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="32385"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Eli Zaretskii , 61847-done@debbugs.gnu.org To: Alan Mackenzie Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Mar 01 18:35:38 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 1pXQMb-0008CF-ID for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 01 Mar 2023 18:35:37 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pXQM4-0005iM-JG; Wed, 01 Mar 2023 12:35: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 1pXQM2-0005fy-SY for bug-gnu-emacs@gnu.org; Wed, 01 Mar 2023 12:35:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pXQM2-0005ry-J9 for bug-gnu-emacs@gnu.org; Wed, 01 Mar 2023 12:35:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pXQM2-0003AC-E6 for bug-gnu-emacs@gnu.org; Wed, 01 Mar 2023 12:35:02 -0500 Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Wed, 01 Mar 2023 17:35:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 61847 X-GNU-PR-Package: emacs Mail-Followup-To: 61847@debbugs.gnu.org, monnier@iro.umontreal.ca, acm@muc.de Original-Received: via spool by 61847-done@debbugs.gnu.org id=D61847.167769205512076 (code D ref 61847); Wed, 01 Mar 2023 17:35:02 +0000 Original-Received: (at 61847-done) by debbugs.gnu.org; 1 Mar 2023 17:34:15 +0000 Original-Received: from localhost ([127.0.0.1]:54827 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pXQLG-00038h-UH for submit@debbugs.gnu.org; Wed, 01 Mar 2023 12:34:15 -0500 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:33443) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pXQLF-00038T-0r for 61847-done@debbugs.gnu.org; Wed, 01 Mar 2023 12:34:13 -0500 Original-Received: from pmg3.iro.umontreal.ca (localhost [127.0.0.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 9171344103D; Wed, 1 Mar 2023 12:34:07 -0500 (EST) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 37EDE440F0E; Wed, 1 Mar 2023 12:34:06 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1677692046; bh=8p1CblQsGM/MqhVrAosL97YHXpLXUN98ev5t0NeH8gE=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=NMUbkFLtDgAsRWBnsE+jx2Ag9EY4LO9LUT7jUjxR7QebUNDlqWM3OATrmJNnQ5uca u4h4LEOtekwDlEudwLsIyw1UeJGdmyHFA5LMi9+NKZJnaRXWrFguOgn6CFrStteu50 A+7MlfxqzN2YndR0cQczmeOLtVunOlMV4BqfUNbO/AQyC9qJkLQiTQS9yJ/HczYfRf Q7KH/AQjeXK+TJ4scZcD4UAoVEYWmr/WA/GadCodvLcYfsXgXLSTaGATiRHwTlHTLQ BGsoyxkMyAsbD1Fu1C+G5Xcd/H0hlRViZ4kTs8gm9SKeh8oSuMYlMVqFF5mBmoGa4d X18loCGP+2Rrw== Original-Received: from pastel (unknown [216.154.34.24]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id D19621231AF; Wed, 1 Mar 2023 12:34:05 -0500 (EST) In-Reply-To: (Alan Mackenzie's message of "Wed, 1 Mar 2023 15:22:29 +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:257089 Archived-At: > the way it prints (or rather used to print) a compiled function is/was > useful. You can see how many arguments it takes. Hmm... `prin1` will print for example #[256 ...] where 256 is where it tells "how many arguments it takes". In contrast, `cl-prin1` will print #f(compiled-function (&optional arg) ...) So in both cases "you can see how many arguments it takes" (and I'll let you guess which one I find more readable). FWIW, I just tried the `condition-case` wrapper and it fixes the problem for the test case you showed. So I just pushed my patch to `emacs-29` (which additionally checks for the presence of `cl-defmethod`, which also fixes the problem: one is never too sure). I'll let you (plural) decide whether to keep using `cl-prin1` or not, but now this is not directly related to fixing this bug any more. Stefan