From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.bugs Subject: bug#32825: 27.0.50; Deterministic window management Date: Thu, 01 Nov 2018 10:01:33 +0100 Message-ID: <5BDAC0ED.9030405@gmx.at> 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> <87y3adakkh.fsf@mail.linkov.net> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1541062892 21414 195.159.176.226 (1 Nov 2018 09:01:32 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 1 Nov 2018 09:01:32 +0000 (UTC) Cc: Michael Heerdegen , 32825@debbugs.gnu.org To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Nov 01 10:01:28 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 1gI8qx-0005QO-W6 for geb-bug-gnu-emacs@m.gmane.org; Thu, 01 Nov 2018 10:01:24 +0100 Original-Received: from localhost ([::1]:38974 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gI8t4-0005vY-E6 for geb-bug-gnu-emacs@m.gmane.org; Thu, 01 Nov 2018 05:03:34 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42115) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gI8rf-00043D-9H for bug-gnu-emacs@gnu.org; Thu, 01 Nov 2018 05:02:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gI8ra-00033Z-AJ for bug-gnu-emacs@gnu.org; Thu, 01 Nov 2018 05:02:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:53463) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gI8ra-00033R-6T for bug-gnu-emacs@gnu.org; Thu, 01 Nov 2018 05:02:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gI8rZ-0003D4-W0 for bug-gnu-emacs@gnu.org; Thu, 01 Nov 2018 05:02: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: Thu, 01 Nov 2018 09:02: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.154106291512323 (code B ref 32825); Thu, 01 Nov 2018 09:02:01 +0000 Original-Received: (at 32825) by debbugs.gnu.org; 1 Nov 2018 09:01:55 +0000 Original-Received: from localhost ([127.0.0.1]:57721 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gI8rT-0003Ch-0h for submit@debbugs.gnu.org; Thu, 01 Nov 2018 05:01:55 -0400 Original-Received: from mout.gmx.net ([212.227.17.21]:41927) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gI8rR-0003CV-4P for 32825@debbugs.gnu.org; Thu, 01 Nov 2018 05:01:53 -0400 Original-Received: from [192.168.1.101] ([46.125.250.45]) by mail.gmx.com (mrgmx103 [212.227.17.168]) with ESMTPSA (Nemesis) id 0Lhf3N-1fnX7e272f-00mq0g; Thu, 01 Nov 2018 10:01:43 +0100 Original-Received: from [192.168.1.101] ([46.125.250.45]) by mail.gmx.com (mrgmx103 [212.227.17.168]) with ESMTPSA (Nemesis) id 0Lhf3N-1fnX7e272f-00mq0g; Thu, 01 Nov 2018 10:01:43 +0100 In-Reply-To: <87y3adakkh.fsf@mail.linkov.net> X-Provags-ID: V03:K1:gR9Ogw5aVE1mbwus1mxwp0Npr/57WximnwB196rM9kJYlIcaeYi bLPutihAlch9/06jc787QPwoJALL1+Z16puRtonhpZltpZVaGKu9h1IoOpAs79lKPLXjtGN ksn7FqE1K6P/Jox80xHTucWqB+WQomwy98APQhi3mF2wPEo4GBz6UsyFupIVtEaczem6HRw 1CBcFmMPxARxrjd5u6uKw== X-UI-Out-Filterresults: notjunk:1;V01:K0:XZAGxb13g+E=:3BQlOgIFNyDmWt4edgLjlk J0ETMRUyj4R0/EGjeOPoltYo9SfumsjC/TE2Gd23Yu/65lqm+kb69ZSTYtaIsEmRlRGKq7RP/ V9ITMFp0GKCPTdiuCsvhK+z7y9wqzR1DOHi+9E6GC1Um1EthRuA/qhDSwxhnvt5GpIJbR0NE4 CL+va1Pvg/Zpwyiu+Jvop3kjzt4yUHcba90+xmu3Eu66vuyR7J5kYKOSo4OEAGlfcxoQSXazW kFAHCsWr28Ht/YI7Yg8fu5RQ2LZlBHaU2ol0cqb9mJWR9xlALO+f5yFKUwXCNlTNalKoiGx8V QomRE9zZfqxYQ3bvrKRetX1DsKpXeUltkpTdkgPTOgy54Nkbx5MB3Ch99QRPSsE+ygwtsRMdE dcLcG7j+Brwt3tEHNFmnHV5j4RhmPGqOQaXo8y7TcPGcc/3WCjxU8mjEQ1M+w4q2qaJJ8+HMF TP3EhMRz0ZA4dT6MGe4IWpEKFqrkDLUt/nlYZTZhzYyTVIumi6mfltt7UuRGoqkzKg+ps2HZS EXqsvqjRGUULlox5xcLraw9W/IYMHjIq4ER2lf7R16p97ANYhccnOCa5ebBH623h7yHSeWJ3O zovX10Kuu+FIlezR32WQ262o/OtiEQ9yDiPQ4kK1Vm4w61sa0m2zCw6P9nLFiDThw9jYya47O NWz5dF6f+j4u1Azt+WUv/VG1SyqD656Ldq7hUs4vUKMsLB5QVvQz7jNXUaT4901lIx1JXmnn+ 0RzhCsa9MlEzYhQJto0wSOfwyjNy+oDMtmRULNWK3CKDBBnVcZ4UWNq/1hx6vbOCpA6Rb6LG 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:151887 Archived-At: > I think the semantics should be: > > (4) If the height of the new window will be less than 10 lines specifi= ed > 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 = like this? Not really: 'window-min-height' is an option which causes functions to check the height of all windows wrt a potential change. If, after the change, the height of one window would drop below that value, the change is not made. One can make an exeption for a specific window, for example the one that should be resized or newly made, but not for other windows that are probably not related to the change. But I don't fully understand (4): What does "If the height of the new window will be less than 10 lines specified by window-min-height" mean? Does it stand for "if (split-window nil -10) fails" to produce a 10 line window? And what would we do then if the window below the selected one has less than ten lines? >> 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 w= ith a non-nil >> IGNORE argument. In order to have =E2=80=98split-window=E2=80=99= make 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. Why so? What is more declarative than having code say what size the old or new window should have? If we want such a window to always keep some minimum size, we can obviously add an according parameter. martin