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, 31 Oct 2018 23:10:54 +0200 Organization: LINKOV.NET Message-ID: <87y3adakkh.fsf@mail.linkov.net> References: <874leeaiah.fsf@mail.linkov.net> <5BA9E3B1.9010700@gmx.at> <87bm8lzrfb.fsf@web.de> <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> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1541021750 805 195.159.176.226 (31 Oct 2018 21:35:50 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 31 Oct 2018 21:35:50 +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 Oct 31 22:35:45 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 1gHy9Q-00005n-HU for geb-bug-gnu-emacs@m.gmane.org; Wed, 31 Oct 2018 22:35:44 +0100 Original-Received: from localhost ([::1]:33610 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gHyBV-0004S3-B2 for geb-bug-gnu-emacs@m.gmane.org; Wed, 31 Oct 2018 17:37:55 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53267) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gHyAm-0003o1-6i for bug-gnu-emacs@gnu.org; Wed, 31 Oct 2018 17:37:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gHyAh-0008Ic-TR for bug-gnu-emacs@gnu.org; Wed, 31 Oct 2018 17:37:08 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:53258) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gHyAh-0008IT-Of for bug-gnu-emacs@gnu.org; Wed, 31 Oct 2018 17:37:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gHyAh-0007TW-JZ for bug-gnu-emacs@gnu.org; Wed, 31 Oct 2018 17:37:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 31 Oct 2018 21:37:03 +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.154102178928630 (code B ref 32825); Wed, 31 Oct 2018 21:37:03 +0000 Original-Received: (at 32825) by debbugs.gnu.org; 31 Oct 2018 21:36:29 +0000 Original-Received: from localhost ([127.0.0.1]:57505 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gHyA9-0007Ri-A1 for submit@debbugs.gnu.org; Wed, 31 Oct 2018 17:36:29 -0400 Original-Received: from giant.birch.relay.mailchannels.net ([23.83.209.68]:16047) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gHyA7-0007RW-7T for 32825@debbugs.gnu.org; Wed, 31 Oct 2018 17:36:27 -0400 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 678D05C40EE; Wed, 31 Oct 2018 21:36:25 +0000 (UTC) Original-Received: from pdx1-sub0-mail-a37.g.dreamhost.com (unknown [100.96.36.160]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id 22C355C460A; Wed, 31 Oct 2018 21:36:25 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Original-Received: from pdx1-sub0-mail-a37.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, 31 Oct 2018 21:36:25 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jurta@jurta.org X-MailChannels-Auth-Id: dreamhost X-Quick-Obese: 0d51c86b2b350db8_1541021785247_3559525838 X-MC-Loop-Signature: 1541021785247:553474990 X-MC-Ingress-Time: 1541021785246 Original-Received: from pdx1-sub0-mail-a37.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a37.g.dreamhost.com (Postfix) with ESMTP id DC1967FE49; Wed, 31 Oct 2018 14:36:24 -0700 (PDT) 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:content-transfer-encoding; s=linkov.net; bh=ZJkLj1 uN0NGlURIa4IgqxPSkXEo=; b=UK3wxI/8uK41wZ2Os/KS3U91za+lX07LEPt5yU DIlXiFVMdOjKkbDN53zXTQt8NMUIMNwFBVnjAyE6J/fhmSithXpXZqDersr/5WVE YSmS7tFzSNHhr83Kp081lg3iQ2eqUrjvvzR7MIOZ/peV28qy72NdmUGDJYEqXOvW OEMCw= Original-Received: from mail.jurta.org (m91-129-101-157.cust.tele2.ee [91.129.101.157]) (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-a37.g.dreamhost.com (Postfix) with ESMTPSA id BB0177FE55; Wed, 31 Oct 2018 14:36:22 -0700 (PDT) X-DH-BACKEND: pdx1-sub0-mail-a37 In-Reply-To: <5BD96392.3040008@gmx.at> (martin rudalics's message of "Wed, 31 Oct 2018 09:10:58 +0100") X-VR-OUT-STATUS: OK X-VR-OUT-SCORE: -100 X-VR-OUT-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedtkedrieegucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuggftfghnshhusghstghrihgsvgdpffftgfetoffjqffuvfenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurhephffvufhofhffjgfkfgggtgfgsehtkeertddtreejnecuhfhrohhmpefluhhrihcunfhinhhkohhvuceojhhurhhisehlihhnkhhovhdrnhgvtheqnecukfhppeeluddruddvledruddtuddrudehjeenucfrrghrrghmpehmohguvgepshhmthhppdhhvghlohepmhgrihhlrdhjuhhrthgrrdhorhhgpdhinhgvthepledurdduvdelrddutddurdduheejpdhrvghtuhhrnhdqphgrthhhpefluhhrihcunfhinhhkohhvuceojhhurhhisehlihhnkhhovhdrnhgvtheqpdhmrghilhhfrhhomhepjhhurhhisehlihhnkhhovhdrnhgvthdpnhhrtghpthhtoheprhhuuggrlhhitghssehgmhigrdgrthenucevlhhushhtvghrufhiiigvpedt 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:151872 Archived-At: >> I still don't understand why it's impossible to support such uses? >> >> diff --git a/lisp/emacs-lisp/debug.el b/lisp/emacs-lisp/debug.el >> index 7fc2b41c70..6d72616dbc 100644 >> --- a/lisp/emacs-lisp/debug.el >> +++ b/lisp/emacs-lisp/debug.el >> @@ -239,11 +239,13 @@ debug >> (pop-to-buffer >> debugger-buffer >> `((display-buffer-reuse-window >> - display-buffer-in-previous-window) >> - . (,(when (and (window-live-p debugger-previous-window) >> - (frame-visible-p >> - (window-frame debugger-previous-window))) >> - `(previous-window . ,debugger-previous-window))))) >> + display-buffer-in-previous-window >> + display-buffer-below-selected) >> + . ((window-min-height . 10) > > What would the semantics of that 'window-min-height' entry be? > > (1) When splitting a window, the new window must be at least 10 lines > high. > > (2) When splitting a window, both the old and the new window must be > at least 10 lines high after the split. > > (3) When splitting a window, every window must be at least 10 lines > high after the split. > > And what would we do if before the split a window is less high than 10 > lines? I think the semantics should be: (4) If the height of the new window will be less than 10 lines specified by window-min-height, then display the buffer a window below from the selected window. IIUC, currently 'window-min-height' with the default of 4 lines works lik= e this? > Why can't we just follow the doc-string of 'window-min-height'? > > Applications should never rebind this variable. To resize a > window to a height less than the one specified here, an > application should instead call =E2=80=98window-resize=E2=80=99 with= a non-nil > IGNORE argument. In order to have =E2=80=98split-window=E2=80=99 ma= ke a window > shorter, explicitly specify the SIZE argument of that function. How then the code will look like? I guess it will be quite complex and not declarative.