From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Noam Postavsky Newsgroups: gmane.emacs.bugs Subject: bug#17882: 24.3; *Backtrace* buffer appearing in the wrong frame Date: Thu, 12 Oct 2017 23:02:05 -0400 Message-ID: <87d15rbviq.fsf@users.sourceforge.net> References: <10176744.CSMpqoKfbG@toomas> <871tu64cbp.fsf@web.de> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: blaine.gmane.org 1507863803 25057 195.159.176.226 (13 Oct 2017 03:03:23 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 13 Oct 2017 03:03:23 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.60 (gnu/linux) Cc: Toomas Rosin , 17882@debbugs.gnu.org To: Michael Heerdegen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Oct 13 05:03:15 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e2qFg-0004WN-PK for geb-bug-gnu-emacs@m.gmane.org; Fri, 13 Oct 2017 05:03:09 +0200 Original-Received: from localhost ([::1]:48213 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e2qFk-0008Sr-Ri for geb-bug-gnu-emacs@m.gmane.org; Thu, 12 Oct 2017 23:03:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33745) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e2qFe-0008Rp-S1 for bug-gnu-emacs@gnu.org; Thu, 12 Oct 2017 23:03:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e2qFa-0006x0-TS for bug-gnu-emacs@gnu.org; Thu, 12 Oct 2017 23:03:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:56108) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1e2qFa-0006wn-OW for bug-gnu-emacs@gnu.org; Thu, 12 Oct 2017 23:03:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1e2qFa-0005GD-CM for bug-gnu-emacs@gnu.org; Thu, 12 Oct 2017 23:03:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Noam Postavsky Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 13 Oct 2017 03:03:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 17882 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 17882-submit@debbugs.gnu.org id=B17882.150786373620157 (code B ref 17882); Fri, 13 Oct 2017 03:03:02 +0000 Original-Received: (at 17882) by debbugs.gnu.org; 13 Oct 2017 03:02:16 +0000 Original-Received: from localhost ([127.0.0.1]:36556 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e2qEq-0005Ey-EN for submit@debbugs.gnu.org; Thu, 12 Oct 2017 23:02:16 -0400 Original-Received: from mail-io0-f172.google.com ([209.85.223.172]:52798) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e2qEp-0005Eg-0e; Thu, 12 Oct 2017 23:02:15 -0400 Original-Received: by mail-io0-f172.google.com with SMTP id f20so7568221ioj.9; Thu, 12 Oct 2017 20:02:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=4PT07t9jRGSsx9DaBQa8mNzOHuKHnRNH+t5MPExIYh4=; b=D/MomgWIoMhk8/WIRZwfku634mVrx3MNQiKuHPAC5fD5lbtnxJVGAP+ltjfUvghAg8 hzXR54sx1Cq7SXMJ0NBxoLLUkhiifpUQhtIOgsDmDjSQ9bdcBVTKwwTt0UK5SHA6bRl+ k/gzuiAxynt9d9gdrfV2sBfdaFH6kDlycp1YEhvKnC/6jJP8oWq+/wMH+XCBrka2PY+m Z/VCnte44tLalTv3e17HT2Q7LmM9+oL6xvsAV70Egi+l2j0swlUXoBRjlVjo2ElUkBMp SMNNdxDa8sDJG+8Zx30P2iIbN1GnIHekvbHygln3Xf4pqtU0+UgrdZQ9EFoKGfseDEhi spzQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:references:date :in-reply-to:message-id:user-agent:mime-version; bh=4PT07t9jRGSsx9DaBQa8mNzOHuKHnRNH+t5MPExIYh4=; b=QvZR70DOsv00CaF6G+ZFslkSNheR5fPbu5QyHehAyVPRZO5W4fEfhNvoQ/QhyWuyPK Z7dnogEuwzps2E3unqS40lsHuHAIRBgOrTX+0BPnzg/a6DOrmAojnNvbGZ3vfwxyBm9M t17hXO/wv3cAAxfORNv6di22ZnxfL34blQBrSmGMQTPEn1fZpm5CdXn2iATb+ik/FIRF eGY5pPZxwc3jX/4gY20+b3zlFlmIvJktChks3QFWVPtEpty7j0NHIXBjd+yezDh3I4Pg UvDfcyL6CdzW2TuWRzXxWXvLElsQh7hGpUKxgzgXPihXvJQmck2txwK6QWI2BpoL0zkx TfoA== X-Gm-Message-State: AMCzsaXZHBcoc/X7zRIEfw6Tcwew/hDC36CY2B236xAauetSTUIMgUM+ YYxHCn4mOAHBhzsULO8C+kKddA== X-Google-Smtp-Source: AOwi7QA49yDw4GnGtvAi/+V2PzZl2uI+hMNMd7BfAu98G3ZwFYMxU5b4xr6c6RGL14Xml5gX8p+xJg== X-Received: by 10.107.20.130 with SMTP id 124mr23502iou.36.1507863729167; Thu, 12 Oct 2017 20:02:09 -0700 (PDT) Original-Received: from zebian ([45.2.119.34]) by smtp.googlemail.com with ESMTPSA id k76sm703702ita.4.2017.10.12.20.02.06 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 12 Oct 2017 20:02:07 -0700 (PDT) In-Reply-To: <871tu64cbp.fsf@web.de> (Michael Heerdegen's message of "Mon, 30 Jun 2014 18:00:26 +0200") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:138318 Archived-At: --=-=-= Content-Type: text/plain tags 17882 + patch quit Michael Heerdegen writes: > I think the debugger is now too strict about reusing the last used > window. `debug` prefers the remembered `debugger-previous-window`. > AFAIK, this variable is never unset, so the debugger tries to reuse the > last used window even when the last debugging session was over for > hours. How about just unsetting the debugger-previous-window when the session is over, we already know this info from the `debugger-will-be-back' variable: --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=v1-0001-Don-t-remember-old-debugger-window-Bug-17882.patch Content-Description: patch >From bdeae0b9afcccc11d43d46089ea4648a68b709cd Mon Sep 17 00:00:00 2001 From: Noam Postavsky Date: Thu, 12 Oct 2017 22:59:53 -0400 Subject: [PATCH v1] Don't remember old debugger window (Bug#17882) * lisp/emacs-lisp/debug.el (debug): Unset debugger-previous-window when `debugger-will-be-back' is nil. --- lisp/emacs-lisp/debug.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lisp/emacs-lisp/debug.el b/lisp/emacs-lisp/debug.el index 0247179a84..6c754615b0 100644 --- a/lisp/emacs-lisp/debug.el +++ b/lisp/emacs-lisp/debug.el @@ -253,7 +253,9 @@ debug ;; Unshow debugger-buffer. (quit-restore-window debugger-window debugger-bury-or-kill) ;; Restore current buffer (Bug#12502). - (set-buffer debugger-old-buffer)))) + (set-buffer debugger-old-buffer))) + ;; Forget debugger window, it won't be back (Bug#17882). + (setq debugger-previous-window nil)) ;; Restore previous state of debugger-buffer in case we were ;; in a recursive invocation of the debugger, otherwise just ;; erase the buffer and put it into fundamental mode. -- 2.11.0 --=-=-=--