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: Wed, 31 Oct 2018 09:10:58 +0100 Message-ID: <5BD96392.3040008@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> 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 1540973409 9442 195.159.176.226 (31 Oct 2018 08:10:09 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 31 Oct 2018 08:10:09 +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 Wed Oct 31 09:10:05 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 1gHlZk-0002L5-MX for geb-bug-gnu-emacs@m.gmane.org; Wed, 31 Oct 2018 09:10:04 +0100 Original-Received: from localhost ([::1]:57927 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gHlbq-0003DJ-Qa for geb-bug-gnu-emacs@m.gmane.org; Wed, 31 Oct 2018 04:12:14 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60796) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gHlbi-0003DC-Me for bug-gnu-emacs@gnu.org; Wed, 31 Oct 2018 04:12:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gHlbe-0005iD-OQ for bug-gnu-emacs@gnu.org; Wed, 31 Oct 2018 04:12:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:51972) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gHlbe-0005hv-Jv for bug-gnu-emacs@gnu.org; Wed, 31 Oct 2018 04:12:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gHlbe-00036w-9D for bug-gnu-emacs@gnu.org; Wed, 31 Oct 2018 04:12: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: Wed, 31 Oct 2018 08:12: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.154097348011898 (code B ref 32825); Wed, 31 Oct 2018 08:12:02 +0000 Original-Received: (at 32825) by debbugs.gnu.org; 31 Oct 2018 08:11:20 +0000 Original-Received: from localhost ([127.0.0.1]:56227 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gHlax-00035q-LU for submit@debbugs.gnu.org; Wed, 31 Oct 2018 04:11:19 -0400 Original-Received: from mout.gmx.net ([212.227.15.15]:50787) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gHlav-00035X-DK for 32825@debbugs.gnu.org; Wed, 31 Oct 2018 04:11:17 -0400 Original-Received: from [192.168.1.101] ([213.162.73.82]) by mail.gmx.com (mrgmx003 [212.227.17.190]) with ESMTPSA (Nemesis) id 0M54L0-1fM7IC1yCE-00zIEu; Wed, 31 Oct 2018 09:11:06 +0100 Original-Received: from [192.168.1.101] ([213.162.73.82]) by mail.gmx.com (mrgmx003 [212.227.17.190]) with ESMTPSA (Nemesis) id 0M54L0-1fM7IC1yCE-00zIEu; Wed, 31 Oct 2018 09:11:06 +0100 In-Reply-To: <87tvl3rvks.fsf@mail.linkov.net> X-Provags-ID: V03:K1:tNC1WG+teRkak4fLoMpCv0SoByaP6SoOIjxRBT0dsi5XdZcKBu7 0Bw26pzDJ/68+WSCjFNKfe22UJuCX8ibE2UqylYmB2aggBvwjWs0b5EL4J9kXbTBUYF1AUc 3Thq1u1gO32xKF88Y3mVmGtwATDczTbZe0OADFpDGWbA1l54kjoR81VqmK13NUBWyaqx3rc JlxjrK/9VM/CTC6SfMSFQ== X-UI-Out-Filterresults: notjunk:1;V01:K0:TqxrhtCKy7w=:g8vnJqJP3H0kflsWBBfpDh RN3Meh0xpHs5AUu0J/AdpbdWVFxuDPsUBvS+ejIZ/zzkWShQqDCeUYwHCG+ucvf9BFQl0+axW DV0LiWEGWuKhZOWY5qRjLc0/jRlrbvp4SqiQTa0G2J9c/rwZ4TefnEaIfQTeqwKzKoIVy9M/G uxPmZ3dScGDs9S3u+9mtdVDBZLRNrxh0MOl4jSAgR6Ppvz8Lj6iou84NhrFaJ0zafX8gUmGuf WZZUGkc6pQ9tekQSORULPvU0GL2JigzKypa/ZKp0qjP+fegAgBZ26oqn+zMmlnh1K3gZf1dMH QGfK2PwxWovhnSuy/r8Ep2IB0Nrzllst9ojB7sUthVRH0JXkPmbZIW0B/IcjdKnhHZsP+bpKI Y6y9MaRe/kFKZC0VDZHNz+rPB2igrdNK0cWbOXY3oFe6XQih5BJ9+hYM0dgc8mzvDjxCaJnUw CnXjKdlylEWXKuOw6nahLkBMc1urSw6rqRNUfSxexQfAUMCBPMAKUlbqvE/vlVWjukX+IAP2F VXLIhwR3Hm3cB/Fin8NxW6mvxN/3/xouidaOhUOb3U+g4Y3JaFRePcooputrF3PtnPxnIYsBJ BJyUJnAZg2RQM+783UM8pmwOmsLxGCjk6+Jg4SsdpCrAkkZ7UeuaPq+fAAO0JiOeLX9s8E4nh SacSYEwcNKkEn0vOAM9jaymBle39xVc4h+mDIya+e7JzTbJPd/g6d/lmfBxB3QCr+llGa6r8J h/OKEhNbt6bGUgfh9Nn+2kl0MCILm70fqma/6y/+E4eFE55DY3gm/wOi07XxcfPkif4a5PFp 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:151857 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? 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 mak= e a window shorter, explicitly specify the SIZE argument of that function. > + ,@(when (and (window-live-p debugger-previous-window) > + (frame-visible-p > + (window-frame debugger-previous-window))) > + `((previous-window . ,debugger-previous-window)))))) > (setq debugger-window (selected-window)) > (if (eq debugger-previous-window debugger-window) > (when debugger-jumping-flag martin