From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Heerdegen Newsgroups: gmane.emacs.bugs Subject: bug#12921: 24.2.50; resizing backtrace buffer not persistent (again) Date: Sun, 18 Nov 2012 04:14:46 +0100 Message-ID: <87r4nr4n6h.fsf@web.de> Reply-To: michael_heerdegen@web.de NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1353208517 5380 80.91.229.3 (18 Nov 2012 03:15:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 18 Nov 2012 03:15:17 +0000 (UTC) To: 12921@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Nov 18 04:15:28 2012 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 1TZvLz-0004h1-AV for geb-bug-gnu-emacs@m.gmane.org; Sun, 18 Nov 2012 04:15:27 +0100 Original-Received: from localhost ([::1]:43718 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TZvLp-0005wN-2L for geb-bug-gnu-emacs@m.gmane.org; Sat, 17 Nov 2012 22:15:17 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:46361) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TZvLk-0005vJ-G8 for bug-gnu-emacs@gnu.org; Sat, 17 Nov 2012 22:15:15 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TZvLh-0005z1-BL for bug-gnu-emacs@gnu.org; Sat, 17 Nov 2012 22:15:12 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:41525) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TZvLh-0005yi-8D for bug-gnu-emacs@gnu.org; Sat, 17 Nov 2012 22:15:09 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1TZvMa-0005iz-AG for bug-gnu-emacs@gnu.org; Sat, 17 Nov 2012 22:16:04 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Michael Heerdegen Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 18 Nov 2012 03:16:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 12921 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.135320851921881 (code B ref -1); Sun, 18 Nov 2012 03:16:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 18 Nov 2012 03:15:19 +0000 Original-Received: from localhost ([127.0.0.1]:51776 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TZvLq-0005gr-BC for submit@debbugs.gnu.org; Sat, 17 Nov 2012 22:15:19 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:48897) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TZvLn-0005gj-0S for submit@debbugs.gnu.org; Sat, 17 Nov 2012 22:15:16 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TZvKq-0005ky-Ee for submit@debbugs.gnu.org; Sat, 17 Nov 2012 22:14:19 -0500 Original-Received: from lists.gnu.org ([208.118.235.17]:53285) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TZvKq-0005ku-C3 for submit@debbugs.gnu.org; Sat, 17 Nov 2012 22:14:16 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:55805) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TZvKn-0005oA-9R for bug-gnu-emacs@gnu.org; Sat, 17 Nov 2012 22:14:16 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TZvKk-0005ev-6o for bug-gnu-emacs@gnu.org; Sat, 17 Nov 2012 22:14:13 -0500 Original-Received: from mout.web.de ([212.227.15.3]:63900) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TZvKj-0005dU-TU for bug-gnu-emacs@gnu.org; Sat, 17 Nov 2012 22:14:10 -0500 Original-Received: from drachen.dragon ([82.113.121.80]) by smtp.web.de (mrweb003) with ESMTPA (Nemesis) id 0M7ssy-1TMmAa25Fg-00vNOF for ; Sun, 18 Nov 2012 04:14:08 +0100 X-Provags-ID: V02:K0:vhrLjOQJg9dK7VBtO1zCbIulK2O04Z2O3D2udj2Ksu1 /pF1tp3jInHH2lNF6hs5x2aqmhCRkFLHIjWO8+On8NtLLbJ/7t HPxb4LntTeWuosRomCJKAgniYPJZy+o5LN6voNlRhnlIX+tm5K JVPrhkxcD3i2VJzgzSCJt5iigaqGu8NQ/XWhajyS0ZrCpa1mxV wAeVK8EcW8ATxSzWsu+euP2GIstjmEUO8PVCxdwgtU= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Spam-Score: -4.2 (----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-Spam-Score: -4.2 (----) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.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:67100 Archived-At: Hi, some time ago, Martin Rudalics had written a patch so that when the window displaying *Backtrace* is resized, the effect was persistent. This works in general, but not in every case: In emacs -Q, type M-x debug. The frame gets split vertically. The window below displays *Backtrace*. But dragging the mode-line in the middle doesn't resize the window persistently when you step in the debugger. Resizing is performed here in these lines of `debug': (if (eq debugger-previous-window debugger-window) (when debugger-jumping-flag ;; Try to restore previous height of debugger ;; window. (condition-case nil (window-resize debugger-window (- debugger-previous-window-height (window-total-size debugger-window))) (error nil))) (setq debugger-previous-window debugger-window)) However, in the above case, (eq debugger-previous-window debugger-window) is never true, probably because the vertical splitting into two windows is performed and undone on each step. Would it be harmful to perform resizing unconditionally? This fixes the problem for me, but I'm not sure if it could be harmful in certain situations. OTOH, if the window was created newly when the debugger had been reentered, we already changed the window layout, so forcing a certain size should not be dangerous, in general. Regards, Michael. In GNU Emacs 24.2.50.2 (x86_64-unknown-linux-gnu, GTK+ Version 2.24.10) of 2012-11-17 on drachen Bzr revision: eliz@gnu.org-20121117185106-96kkgf04rybaukwo Windowing system distributor `The X.Org Foundation', version 11.0.10707000 System Description: Debian GNU/Linux testing (wheezy)