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: Wed, 05 Dec 2018 00:24:16 +0200 Organization: LINKOV.NET Message-ID: <87r2ex6icv.fsf@mail.linkov.net> References: <874leeaiah.fsf@mail.linkov.net> <5BAA76CF.8010808@gmx.at> <878t3nublx.fsf@mail.linkov.net> <87wor7uqgb.fsf@web.de> <87o9bhkeih.fsf@mail.linkov.net> <87h8h9hk4w.fsf@web.de> <87d0rvb7xg.fsf@mail.linkov.net> <87sh0rkucr.fsf@web.de> <87d0rvqf5r.fsf@mail.linkov.net> <87k1m3krvm.fsf@web.de> <87o9bf13b4.fsf@mail.linkov.net> <87d0rvkq01.fsf@web.de> <5BD57C2B.7020109@gmx.at> <87tvl3rvks.fsf@mail.linkov.net> <5BD96392.3040008@gmx.at> <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> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1543968794 27640 195.159.176.226 (5 Dec 2018 00:13:14 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 5 Dec 2018 00:13:14 +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 Wed Dec 05 01:13:09 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 1gUKoP-00073n-5n for geb-bug-gnu-emacs@m.gmane.org; Wed, 05 Dec 2018 01:13:09 +0100 Original-Received: from localhost ([::1]:59453 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gUKqV-0005FD-No for geb-bug-gnu-emacs@m.gmane.org; Tue, 04 Dec 2018 19:15:19 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56933) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gUKqK-0005BJ-D2 for bug-gnu-emacs@gnu.org; Tue, 04 Dec 2018 19:15:09 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gUKqE-0002Gr-Oz for bug-gnu-emacs@gnu.org; Tue, 04 Dec 2018 19:15:07 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:56896) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gUKqE-0002F8-5D for bug-gnu-emacs@gnu.org; Tue, 04 Dec 2018 19:15:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gUKqD-0001rw-Qy for bug-gnu-emacs@gnu.org; Tue, 04 Dec 2018 19:15:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 05 Dec 2018 00:15:01 +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.15439688537068 (code B ref 32825); Wed, 05 Dec 2018 00:15:01 +0000 Original-Received: (at 32825) by debbugs.gnu.org; 5 Dec 2018 00:14:13 +0000 Original-Received: from localhost ([127.0.0.1]:32912 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gUKpR-0001pw-Lw for submit@debbugs.gnu.org; Tue, 04 Dec 2018 19:14:13 -0500 Original-Received: from golden.birch.relay.mailchannels.net ([23.83.209.73]:55619) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gUKpQ-0001po-D7 for 32825@debbugs.gnu.org; Tue, 04 Dec 2018 19:14:13 -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 2301942CFD; Wed, 5 Dec 2018 00:14:11 +0000 (UTC) Original-Received: from pdx1-sub0-mail-a54.g.dreamhost.com (unknown [100.96.26.166]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id C9C1242CED; Wed, 5 Dec 2018 00:14:10 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Original-Received: from pdx1-sub0-mail-a54.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); Wed, 05 Dec 2018 00:14:11 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jurta@jurta.org X-MailChannels-Auth-Id: dreamhost X-Suffer-Bubble: 06d095cf2dc4e9a7_1543968850994_300805400 X-MC-Loop-Signature: 1543968850994:589450718 X-MC-Ingress-Time: 1543968850994 Original-Received: from pdx1-sub0-mail-a54.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a54.g.dreamhost.com (Postfix) with ESMTP id 6B4757FF21; Tue, 4 Dec 2018 16:14:10 -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=DITOlNiD+wb0E/kkFCxWWRSpxqI=; b= ImUpY2sg4KMcniOSnCbfbaRu+5GGLscC1zRUng4horrtkSeFPH/GsAkbprKiOE4z 9f6izGn2ZgGrmsozSO1c/h/wzRPpMGutY0LkXvQgs3n0K1IjJ7x6FbNR+7o1uCYc TGkvFSKz2GkyO/wdwq/ii3o+etERJgjmSN/3jcugwYI= Original-Received: from mail.jurta.org (m91-129-103-7.cust.tele2.ee [91.129.103.7]) (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-a54.g.dreamhost.com (Postfix) with ESMTPSA id 0FC757FF22; Tue, 4 Dec 2018 16:14:07 -0800 (PST) X-DH-BACKEND: pdx1-sub0-mail-a54 In-Reply-To: <5C063BA5.8080603@gmx.at> (martin rudalics's message of "Tue, 04 Dec 2018 09:32:37 +0100") X-VR-OUT-STATUS: OK X-VR-OUT-SCORE: -100 X-VR-OUT-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedtkedrudefgedgudelucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuggftfghnshhusghstghrihgsvgdpffftgfetoffjqffuvfenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurhephffvufhofhffjgfkfgggtgesthdtredttdertdenucfhrhhomheplfhurhhiucfnihhnkhhovhcuoehjuhhriheslhhinhhkohhvrdhnvghtqeenucfkphepledurdduvdelrddutdefrdejnecurfgrrhgrmhepmhhouggvpehsmhhtphdphhgvlhhopehmrghilhdrjhhurhhtrgdrohhrghdpihhnvghtpeeluddruddvledruddtfedrjedprhgvthhurhhnqdhprghthheplfhurhhiucfnihhnkhhovhcuoehjuhhriheslhhinhhkohhvrdhnvghtqedpmhgrihhlfhhrohhmpehjuhhriheslhhinhhkohhvrdhnvghtpdhnrhgtphhtthhopehruhgurghlihgtshesghhmgidrrghtnecuvehluhhsthgvrhfuihiivgeptd 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:153088 Archived-At: >> Another reason why this urgently needs to be fixed using >> 'display-buffer-below-selected' with 'window-height' is that >> for example visiting a gpg file that fails to decrypt displays >> the *Backtrace* buffer with (file-error "Opening input file" "Can't decrypt" >> in another window that hides another essential buffer *Error* >> (with explanation of the error raised while decrypting) >> displayed in the same window. But using 'display-buffer-below-selected' >> both essential buffers will be displayed in separate windows. > > So what should we do? I earlier proposed a 'min-height' entry like in > the code below. Thanks, I tried and it works well. > Would that suffice? If so, would we use the same for > 'display-buffer-pop-up-window' and 'display-buffer-at-bottom'? I don't know about display-buffer-pop-up-window, but for display-buffer-at-bottom where the height depends on the number of lines in the displayed buffer like e.g. *Completions* this is not needed. > Should we check the window below (if we "use" but do not "reuse" it) > if it's high enough? I think we should provide exact semantics for > any such 'min-height' entry so we can easily tell which action > functions should check it. I think the semantics of 'min-height' should be a minimal height of the displayed window wherever it can be displayed.