From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Po Lu via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#55863: 29.0.50; [PATCH] Avoid hanging chad of *Backtrace* Date: Thu, 09 Jun 2022 18:11:04 +0800 Message-ID: <87sfoeno3r.fsf@yahoo.com> References: <877d5qetfm.fsf@dick> Reply-To: Po Lu Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="859"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.91 (gnu/linux) Cc: 55863@debbugs.gnu.org To: dick.r.chiang@gmail.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jun 09 14:39:07 2022 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 1nzHRK-000084-SL for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 09 Jun 2022 14:39:06 +0200 Original-Received: from localhost ([::1]:50988 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nzHRJ-0001b9-TE for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 09 Jun 2022 08:39:05 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56538) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nzF90-0007sP-Vk for bug-gnu-emacs@gnu.org; Thu, 09 Jun 2022 06:12:07 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:51152) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nzF90-0007iX-NG for bug-gnu-emacs@gnu.org; Thu, 09 Jun 2022 06:12:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nzF90-0001B0-HT for bug-gnu-emacs@gnu.org; Thu, 09 Jun 2022 06:12:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Po Lu Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 09 Jun 2022 10:12:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 55863 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 55863-submit@debbugs.gnu.org id=B55863.16547694814469 (code B ref 55863); Thu, 09 Jun 2022 10:12:02 +0000 Original-Received: (at 55863) by debbugs.gnu.org; 9 Jun 2022 10:11:21 +0000 Original-Received: from localhost ([127.0.0.1]:45049 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nzF8K-0001A1-N4 for submit@debbugs.gnu.org; Thu, 09 Jun 2022 06:11:20 -0400 Original-Received: from sonic305-20.consmr.mail.ne1.yahoo.com ([66.163.185.146]:46860) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nzF8I-00019l-Qr for 55863@debbugs.gnu.org; Thu, 09 Jun 2022 06:11:19 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1654769472; bh=sFV7T1pbc1AaJ0Joqac/QP7Ay4jCibNY3NQUsPueUuU=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From:Subject:Reply-To; b=QXEkG9Rvn91+u5ZdZnYNAesMNV3S/ZzfSvm1FzRcuYvHbNHeX8rwYz7IsKF1Hq+SLmJSRQ+OdPFRogZBYBedtM9N/IEZ11zoQzteF9cmOm1cZCGMVQwNMuagubhs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hySy8spO497eSwZ2cO60 fwTc0n71r7bqOwJsfQUj94Krkx74HCHUQaEOzoiDvGcPZPEV_7pvJPOWl_vVEhzkxSM0n3NGzS3f 8wWbH_QLE8j_QJiQE0LTjrK07_CUjJrI.8IVmvW7UV880fMp2A2pXAob1mbrTtz1N5_Fd2FmtrBj 3tb91akx4.HUUeLl73UiD.eDGORO6sCp5I5quzXXoCOHSBpItyzBfZu3BE_32l7YjQ0V5utAlyBn dWQJF6sdPOzLSI_l1NqjcQK1yYieq6LenP6PLMIMIIR5mDq3DUoN.07CtBeMF.azd3XgfP05B3Ly eiiSmlxX6pWPyv0ExC7i0kzv_OrQfIzAWtsX5AtmuBPp_oPsjKapaw4INlhuBk2_9GmSlRMzzPIs WXy_1_Bu9anmze59oDOct7IWH9aeHCbjgLTmIZ0RA4c.Ts28NH0BU4Na6mwT1oAmBACpDn2ax0BQ TaKzJwifkDckYiAtdCfU_WDbbO_N_.ZhlmW.gqNCbj X-Sonic-MF: Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic305.consmr.mail.ne1.yahoo.com with HTTP; Thu, 9 Jun 2022 10:11:12 +0000 Original-Received: by hermes--canary-production-sg3-5f7658c994-r75sz (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 3bafd058ff5b7b9145d756d49216711e; Thu, 09 Jun 2022 10:11:08 +0000 (UTC) In-Reply-To: <877d5qetfm.fsf@dick> (dick r. chiang's message of "Wed, 08 Jun 2022 17:28:29 -0400") X-Mailer: WebService/1.1.20280 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo 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" Xref: news.gmane.io gmane.emacs.bugs:234037 Archived-At: dick.r.chiang@gmail.com writes: > Subject: [PATCH] Avoid the hanging chad of "*Backtrace*" Most people do not use paper punches anymore, and are likely to think of the urban slang meaning of "chad" instead. Mysterious commit messages do not belong in our source code. > * lisp/emacs-lisp/debug.el (debugger-buffer-name): DRY. > (debug): Don't just erase the *Backtrace*; kill it. > * test/lisp/abbrev-tests.el (copy-abbrev-table-test): > We have `ignore-errors` for this purpose. > (abbrev-tests-backtrace-bury): Test it. > --- > lisp/emacs-lisp/debug.el | 113 ++++++++++++++++++-------------------- > test/lisp/abbrev-tests.el | 20 +++++-- So exactly what is the problem, and where is the fix? And why is `abbrev-tests.el' related? > 2 files changed, 68 insertions(+), 65 deletions(-) > > diff --git a/lisp/emacs-lisp/debug.el b/lisp/emacs-lisp/debug.el > index 6c172d6c31d..c1c977ce66e 100644 > --- a/lisp/emacs-lisp/debug.el > +++ b/lisp/emacs-lisp/debug.el > @@ -95,6 +95,8 @@ debug-allow-recursive-debug > :type 'boolean > :version "29.1") > > +(defconst debugger-buffer-name "*Backtrace*") No doc string.