From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#32825: 27.0.50; Deterministic window management Date: Sun, 23 Dec 2018 01:45:17 +0200 Organization: LINKOV.NET Message-ID: <87y38h5do2.fsf@mail.linkov.net> References: <874leeaiah.fsf@mail.linkov.net> <87y3adakkh.fsf@mail.linkov.net> <5BDAC0ED.9030405@gmx.at> <87h8h0juwn.fsf@mail.linkov.net> <5BDC0E38.5020901@gmx.at> <87bm62p5ea.fsf@mail.linkov.net> <5C063BA5.8080603@gmx.at> <87r2ex6icv.fsf@mail.linkov.net> <5C07974B.4060408@gmx.at> <5C081F39.7040305@gmx.at> <8736rb32ms.fsf@mail.linkov.net> <5C0B91BE.4040401@gmx.at> <87bm5v1rx4.fsf@mail.linkov.net> <5C0CD187.9060807@gmx.at> <87ftv6jkfq.fsf@mail.linkov.net> <87efaq5h5v.fsf@web.de> <87ftv5j58t.fsf@mail.linkov.net> <87a7lc98f6.fsf@web.de> <5C0F7680.8000506@gmx.at> <87imznda4g.fsf@mail.linkov.net> <5C1CAF1F.8010408@gmx.at> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1545522370 23445 195.159.176.226 (22 Dec 2018 23:46:10 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 22 Dec 2018 23:46:10 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu) Cc: Michael Heerdegen , 32825@debbugs.gnu.org To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Dec 23 00:46:06 2018 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 1gaqy5-00060b-ME for geb-bug-gnu-emacs@m.gmane.org; Sun, 23 Dec 2018 00:46:05 +0100 Original-Received: from localhost ([::1]:46020 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gar0C-0005U3-JD for geb-bug-gnu-emacs@m.gmane.org; Sat, 22 Dec 2018 18:48:16 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33699) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gar03-0005Ty-Ak for bug-gnu-emacs@gnu.org; Sat, 22 Dec 2018 18:48:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gaqzy-00005R-Ch for bug-gnu-emacs@gnu.org; Sat, 22 Dec 2018 18:48:07 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:56068) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gaqzy-00005N-95 for bug-gnu-emacs@gnu.org; Sat, 22 Dec 2018 18:48:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gaqzy-0007o0-5q for bug-gnu-emacs@gnu.org; Sat, 22 Dec 2018 18:48:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 22 Dec 2018 23:48:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 32825 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 32825-submit@debbugs.gnu.org id=B32825.154552242629937 (code B ref 32825); Sat, 22 Dec 2018 23:48:02 +0000 Original-Received: (at 32825) by debbugs.gnu.org; 22 Dec 2018 23:47:06 +0000 Original-Received: from localhost ([127.0.0.1]:60326 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gaqz4-0007mm-5o for submit@debbugs.gnu.org; Sat, 22 Dec 2018 18:47:06 -0500 Original-Received: from ladybird.maple.relay.mailchannels.net ([23.83.214.98]:49461) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gaqz2-0007mT-O1 for 32825@debbugs.gnu.org; Sat, 22 Dec 2018 18:47:05 -0500 X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Original-Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id A74815C3BB6; Sat, 22 Dec 2018 23:47:03 +0000 (UTC) Original-Received: from pdx1-sub0-mail-a66.g.dreamhost.com (unknown [100.96.19.74]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id 620A25C3CCD; Sat, 22 Dec 2018 23:47:03 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Original-Received: from pdx1-sub0-mail-a66.g.dreamhost.com (pop.dreamhost.com [64.90.62.162]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/5.16.2); Sat, 22 Dec 2018 23:47:03 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jurta@jurta.org X-MailChannels-Auth-Id: dreamhost X-Cellar-Whistle: 26b8cf8c137ad85f_1545522423501_1824482300 X-MC-Loop-Signature: 1545522423501:2394908466 X-MC-Ingress-Time: 1545522423501 Original-Received: from pdx1-sub0-mail-a66.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a66.g.dreamhost.com (Postfix) with ESMTP id 274818070A; Sat, 22 Dec 2018 15:47:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=linkov.net; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; s=linkov.net; bh=A+D6bqJspyT0C2Dw+qx64GH15rU=; b= 1chX/c8OBt9oa+klcDap88VvbgfYWWBaUSDJRLAljQKRum4NgAJFmRgPiKs2WRCa 0syTtCNVZwp5yYZWBGrQbiwlXmFzSNWRNjCfEiVukXjm6o5m1vaudPjAGUP0dWTn frhGnLN8WmDbGDH17hQc4K8rAq/Swz7D89s99rVkeeU= Original-Received: from mail.jurta.org (m91-129-106-79.cust.tele2.ee [91.129.106.79]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: jurta@jurta.org) by pdx1-sub0-mail-a66.g.dreamhost.com (Postfix) with ESMTPSA id 97F97806FC; Sat, 22 Dec 2018 15:46:59 -0800 (PST) X-DH-BACKEND: pdx1-sub0-mail-a66 In-Reply-To: <5C1CAF1F.8010408@gmx.at> (martin rudalics's message of "Fri, 21 Dec 2018 10:15:11 +0100") X-VR-OUT-STATUS: OK X-VR-OUT-SCORE: -100 X-VR-OUT-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedtkedrudejjedgudejkecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucggtfgfnhhsuhgsshgtrhhisggvpdfftffgtefojffquffvnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefhvffuohhfffgjkfgfgggtsehttdertddtredtnecuhfhrohhmpefluhhrihcunfhinhhkohhvuceojhhurhhisehlihhnkhhovhdrnhgvtheqnecukfhppeeluddruddvledruddtiedrjeelnecurfgrrhgrmhepmhhouggvpehsmhhtphdphhgvlhhopehmrghilhdrjhhurhhtrgdrohhrghdpihhnvghtpeeluddruddvledruddtiedrjeelpdhrvghtuhhrnhdqphgrthhhpefluhhrihcunfhinhhkohhvuceojhhurhhisehlihhnkhhovhdrnhgvtheqpdhmrghilhhfrhhomhepjhhurhhisehlihhnkhhovhdrnhgvthdpnhhrtghpthhtoheprhhuuggrlhhitghssehgmhigrdgrthenucevlhhushhtvghrufhiiigvpedv 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:153766 Archived-At: >> Please note that if there is no suitable window with at least 10 lines high, >> it still displays the *Backtrace* buffer in random windows, every time >> in another window because it doesn't remember a previous window. > > For starters, users can customize the number of lines by supplying a > 'window-min-height' entry. They can also provide an additional action > function like 'display-buffer-below-selected' as fallback. And > finally we could try what I suggested earlier: Fill the *Backtrace* > buffer first and pop to it afterwards using 'fit-window-to-buffer'. > The attached untested patch tries to do that. Thanks, this is much better. Maybe then window-min-height should be dynamically calculated like (window-min-height . ,(with-current-buffer debugger-buffer (count-lines (point-min) (point-max))))