From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.bugs Subject: bug#17170: 24.3.50; debug: Terminal 3 is locked, cannot read from it Date: Sun, 22 Mar 2015 13:05:17 +0100 Message-ID: <550EAFFD.2070607@gmx.at> References: <87vbusouwu.fsf@yahoo.fr> <83r45fbsur.fsf@gnu.org> <87r45aepnk.fsf@yahoo.fr> <831txa8lxc.fsf@gnu.org> <87fvlqz9yl.fsf@yahoo.fr> <83vbum75om.fsf@gnu.org> <87d2fpu9sp.fsf@geodiff-mac3.ulb.ac.be> <83wqdxwrcd.fsf@gnu.org> <550C4126.1000008@yahoo.fr> <550C7AE3.8060501@gmx.at> <87d242tf9v.fsf@yahoo.fr> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1427025985 9592 80.91.229.3 (22 Mar 2015 12:06:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 22 Mar 2015 12:06:25 +0000 (UTC) Cc: 17170@debbugs.gnu.org To: Nicolas Richard Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Mar 22 13:06:13 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YZedw-00089S-C7 for geb-bug-gnu-emacs@m.gmane.org; Sun, 22 Mar 2015 13:06:12 +0100 Original-Received: from localhost ([::1]:50679 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YZedu-0006no-CO for geb-bug-gnu-emacs@m.gmane.org; Sun, 22 Mar 2015 08:06:10 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36146) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YZedp-0006jj-TX for bug-gnu-emacs@gnu.org; Sun, 22 Mar 2015 08:06:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YZedm-0006Jr-OZ for bug-gnu-emacs@gnu.org; Sun, 22 Mar 2015 08:06:05 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:42328) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YZedm-0006Jn-LG for bug-gnu-emacs@gnu.org; Sun, 22 Mar 2015 08:06:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1YZedm-0005jd-56 for bug-gnu-emacs@gnu.org; Sun, 22 Mar 2015 08:06:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: martin rudalics Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 22 Mar 2015 12:06:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 17170 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 17170-submit@debbugs.gnu.org id=B17170.142702594922027 (code B ref 17170); Sun, 22 Mar 2015 12:06:02 +0000 Original-Received: (at 17170) by debbugs.gnu.org; 22 Mar 2015 12:05:49 +0000 Original-Received: from localhost ([127.0.0.1]:60337 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YZedZ-0005jD-91 for submit@debbugs.gnu.org; Sun, 22 Mar 2015 08:05:49 -0400 Original-Received: from mout.gmx.net ([212.227.17.21]:57280) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YZedW-0005iz-Ee for 17170@debbugs.gnu.org; Sun, 22 Mar 2015 08:05:47 -0400 Original-Received: from [188.23.125.113] ([188.23.125.113]) by mail.gmx.com (mrgmx103) with ESMTPSA (Nemesis) id 0Lb5Tp-1ZFZ681xaD-00kfKj; Sun, 22 Mar 2015 13:05:29 +0100 In-Reply-To: <87d242tf9v.fsf@yahoo.fr> X-Provags-ID: V03:K0:0mjHBV8QqG6z5bqm09XgCnPpFE2QmvwUU69SEgsb/ONOYWDdTAr OXSSIFqG5zQtiNBJUC8kl4Bcj6nrHZCMgRf2X5npvXU7xe1tMRH3wPqeWeSU53EFgWSqsOu I5Eua4Ep7ESnoCGIag258eZ+zb6RbzthLKnu0vz1EpFCsGyg0fwiHPEI18/m6zRaua+T249 BPReWurolatq77EbLOoUA== X-UI-Out-Filterresults: notjunk:1; X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:100775 Archived-At: >> When it happens again please tell me the value of >> `debugger-previous-window'. AFAICT this can only happen when that >> window was shown on the "initial frame F1" before. > > Yes it was a window on that frame (window 4 IIRC). I remember that > because this is the reason I did > (setq debugger-previous-window (selected-window)) > to bring the debugger back to my frame. I can't understand what happened here because the only way to set `debugger-previous-window' is via invoking `debug' and then doing unconditionally (setq debugger-window (selected-window)) followed by (setq debugger-previous-window debugger-window)) so the window must have been the selected window when `debug' was called the last time and Emacs should have complained then already. Anyway. I checked in a fix for Emacs 24.5 which should avoid this problem now. If you want to try it immediately please apply: --- a/lisp/emacs-lisp/debug.el +++ b/lisp/emacs-lisp/debug.el @@ -192,7 +192,9 @@ first will be printed into the backtrace buffer." debugger-buffer `((display-buffer-reuse-window display-buffer-in-previous-window) - . (,(when debugger-previous-window + . (,(when (and (window-live-p debugger-previous-window) + (frame-visible-p + (window-frame debugger-previous-window))) `(previous-window . ,debugger-previous-window))))) (setq debugger-window (selected-window)) (if (eq debugger-previous-window debugger-window) martin