From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#45737: 27.1.50; Assertion failure in window_box_height Date: Sat, 09 Jan 2021 21:02:09 +0200 Message-ID: <83h7nqgci6.fsf@gnu.org> References: <2fcf7ec9-8b85-e81f-6ae3-9d08abda8b3f@gmx.at> <8335zaig4t.fsf@gnu.org> <8d247025-528e-00a7-b92a-c59c775f6968@gmx.at> <83zh1igwt0.fsf@gnu.org> <48610ec3-59d8-575f-4360-598077630266@gmx.at> <83pn2egfuj.fsf@gnu.org> <9f684e70-0195-e2a1-fccf-bed4b2e8ad1c@gmx.at> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="19558"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 45737@debbugs.gnu.org To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Jan 09 20:03:15 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kyJW7-0004yT-35 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 09 Jan 2021 20:03:15 +0100 Original-Received: from localhost ([::1]:50876 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kyJW6-00014o-5S for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 09 Jan 2021 14:03:14 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57864) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kyJVu-00014i-C5 for bug-gnu-emacs@gnu.org; Sat, 09 Jan 2021 14:03:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:41074) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kyJVu-0002lG-4Y for bug-gnu-emacs@gnu.org; Sat, 09 Jan 2021 14:03:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kyJVu-0005RI-0K for bug-gnu-emacs@gnu.org; Sat, 09 Jan 2021 14:03:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 09 Jan 2021 19:03:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 45737 X-GNU-PR-Package: emacs Original-Received: via spool by 45737-submit@debbugs.gnu.org id=B45737.161021893220846 (code B ref 45737); Sat, 09 Jan 2021 19:03:01 +0000 Original-Received: (at 45737) by debbugs.gnu.org; 9 Jan 2021 19:02:12 +0000 Original-Received: from localhost ([127.0.0.1]:52620 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kyJV6-0005QA-CS for submit@debbugs.gnu.org; Sat, 09 Jan 2021 14:02:12 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:36278) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kyJV4-0005Pw-0z for 45737@debbugs.gnu.org; Sat, 09 Jan 2021 14:02:11 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:35913) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kyJUy-0002VV-Q4; Sat, 09 Jan 2021 14:02:04 -0500 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:1359 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kyJUy-0003ma-5D; Sat, 09 Jan 2021 14:02:04 -0500 In-Reply-To: <9f684e70-0195-e2a1-fccf-bed4b2e8ad1c@gmx.at> (message from martin rudalics on Sat, 9 Jan 2021 19:48:32 +0100) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:197571 Archived-At: > Cc: 45737@debbugs.gnu.org > From: martin rudalics > Date: Sat, 9 Jan 2021 19:48:32 +0100 > > > Can you help me understand why this would mean zero-height windows? > > What I had in mind was to constraint resizing so that the min-window > > is always at least 1-line high. > > It depends on what you have in mind with "constraint resizing". > > - We can constraint the frame size via size hints so a user can never > make the frame smaller than needed to make all its windows visible. > Whether this works with other window managers depends to be seen, is > not general practice with practically all other applications I know of > and, as mentioned before, doesn't really work on Windows. And we > would have to make it optional to avoid offending any users. > > - Otherwise we'd have to constraint the size of normal windows since > 'window-safe-min-height' gives them always at least one frame line and > if a frame contains two windows above each other and shrinks to two > lines, these lines will be filled up already. So the display engine > and/or the windows code would have to "skip" these windows to allow > showing the minibuffer window instead. For me skipping a window is > tantamount to giving it "zero height". I'm okay with the frame resetting itself back to a safe size, if the WM cannot be hinted. The main point is not to reduce the frame size to dimensions that don't allow us to keep a mini-window of at least one line.