From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.bugs Subject: bug#4550: 23.1; give users a choice for quitting backtrace buffer Date: Thu, 24 Sep 2009 10:00:57 -0700 Message-ID: <14B7537C475C4C52A56B596DCFF588BA@us.oracle.com> Reply-To: Drew Adams , 4550@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1253812156 7059 80.91.229.12 (24 Sep 2009 17:09:16 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 24 Sep 2009 17:09:16 +0000 (UTC) To: Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Sep 24 19:09:08 2009 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Mqrnc-0005AX-Lb for geb-bug-gnu-emacs@m.gmane.org; Thu, 24 Sep 2009 19:08:08 +0200 Original-Received: from localhost ([127.0.0.1]:48905 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mqrnb-0008Qu-VM for geb-bug-gnu-emacs@m.gmane.org; Thu, 24 Sep 2009 13:08:07 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Mqrmn-0007yg-D2 for bug-gnu-emacs@gnu.org; Thu, 24 Sep 2009 13:07:17 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Mqrmg-0007sL-Qq for bug-gnu-emacs@gnu.org; Thu, 24 Sep 2009 13:07:15 -0400 Original-Received: from [199.232.76.173] (port=38154 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mqrmg-0007s5-Hg for bug-gnu-emacs@gnu.org; Thu, 24 Sep 2009 13:07:10 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:39635) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Mqrmd-0003s8-Vz for bug-gnu-emacs@gnu.org; Thu, 24 Sep 2009 13:07:09 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n8OH74wE022988; Thu, 24 Sep 2009 10:07:05 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id n8OH587s022668; Thu, 24 Sep 2009 10:05:08 -0700 Resent-Date: Thu, 24 Sep 2009 10:05:08 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: "Drew Adams" Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs 2Resent-Date: Thu, 24 Sep 2009 17:05:08 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: report 4550 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by submit@emacsbugs.donarmstrong.com id=B.125381167021517 (code B ref -1); Thu, 24 Sep 2009 17:05:08 +0000 Original-Received: (at submit) by emacsbugs.donarmstrong.com; 24 Sep 2009 17:01:10 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n8OH18D9021514 for ; Thu, 24 Sep 2009 10:01:09 -0700 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Mqrgq-0005DJ-6M for bug-gnu-emacs@gnu.org; Thu, 24 Sep 2009 13:01:08 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Mqrgl-0005B7-PD for bug-gnu-emacs@gnu.org; Thu, 24 Sep 2009 13:01:07 -0400 Original-Received: from [199.232.76.173] (port=49593 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mqrgl-0005B2-GP for bug-gnu-emacs@gnu.org; Thu, 24 Sep 2009 13:01:03 -0400 Original-Received: from rcsinet11.oracle.com ([148.87.113.123]:46101 helo=rgminet11.oracle.com) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Mqrgk-0002N7-Lm for bug-gnu-emacs@gnu.org; Thu, 24 Sep 2009 13:01:02 -0400 Original-Received: from rgminet13.oracle.com (rcsinet13.oracle.com [148.87.113.125]) by rgminet11.oracle.com (Switch-3.3.1/Switch-3.3.1) with ESMTP id n8OH1qHP012527 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Thu, 24 Sep 2009 17:01:53 GMT Original-Received: from abhmt001.oracle.com (abhmt001.oracle.com [141.146.116.10]) by rgminet13.oracle.com (Switch-3.3.1/Switch-3.3.1) with ESMTP id n8OH1Mgq000987 for ; Thu, 24 Sep 2009 17:01:23 GMT Original-Received: from dradamslap1 (/130.35.178.194) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Thu, 24 Sep 2009 10:00:55 -0700 X-Mailer: Microsoft Office Outlook 11 Thread-Index: Aco9OJWZ/tbasBwjRAmvewYYLsGTkQ== X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579 X-Source-IP: abhmt001.oracle.com [141.146.116.10] X-Auth-Type: Internal IP X-CT-RefId: str=0001.0A090202.4ABBA5C8.004F:SCFSTAT5015188,ss=1,fgs=0 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 1) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Resent-Date: Thu, 24 Sep 2009 13:07:15 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:31462 Archived-At: emacs -Q This change in debug.el is not good: Revision 1.107 - (view) (download) (annotate) - [select for diffs] Fri Apr 18 01:29:23 2008 UTC (17 months, 1 week ago) by monnier Branch: MAIN CVS Tags: font-backend-base Branch point for: font-backend Changes since 1.106: +4 -3 lines Diff to previous 1.106 (debug): Revert to bury-buffer since quit-window is not better anyway. In my case, this change means that the debugger frame is iconified each time, and this includes some times when the debugger is still active, which makes it impossible to access/use. (*) The point is that `bury-buffer' is unacceptable for my use - it is practically impossible for me to use the debugger in Emacs 23. I can live with no action at all (which keeps the *Backtrace* frame around) or with `quit-window' in place of `bury-buffer'. I cannot live with `bury-buffer'. So I redefine `debug', just to change that one silly function call. The solution is to call a function that is the value of a user option: `debugger-quit-function'. I don't care what the default value is - make it `bury-buffer' if you want. The user option's value should have :type `function' or, better, a `choice' between nil and `function', where nil would mean do nothing. If the :type is just `function' a user can of course use function `ignore' to do nothing, but that is not so obvious for some users, so in that case, please call that out in the doc string. The code would then do this, in place of calling (bury-buffer): ;; If the option can have value nil: (when debugger-quit-function (funcall debugger-quit-function)) ;; If the option value can only be a function: (funcall debugger-quit-function) I would then customize the option to `quit-window' (or nil or `ignore'). --- (*) No, I'm not going to try to figure out what's happening in those cases where it is iconified when still active; it's hard enough using the debugger when broken like this, without trying to debug the debugger. In case it helps, I will say however that I don't remember seeing that when `bury-buffer' was used briefly during Emacs 22 development - back then it was iconified only when empty (finished), IIRC. In GNU Emacs 23.1.1 (i386-mingw-nt5.1.2600) of 2009-07-29 on SOFT-MJASON Windowing system distributor `Microsoft Corp.', version 5.1.2600 configured using `configure --with-gcc (4.4)'