From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.bugs Subject: bug#45737: 27.1.50; Assertion failure in window_box_height Date: Sat, 9 Jan 2021 18:06:53 +0100 Message-ID: <48610ec3-59d8-575f-4360-598077630266@gmx.at> References: <2fcf7ec9-8b85-e81f-6ae3-9d08abda8b3f@gmx.at> <8335zaig4t.fsf@gnu.org> <8d247025-528e-00a7-b92a-c59c775f6968@gmx.at> <83zh1igwt0.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="5054"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 45737@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Jan 09 18:08:18 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 1kyHis-0001Cm-6g for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 09 Jan 2021 18:08:18 +0100 Original-Received: from localhost ([::1]:35830 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kyHip-0001ul-Er for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 09 Jan 2021 12:08:15 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38908) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kyHic-0001uO-99 for bug-gnu-emacs@gnu.org; Sat, 09 Jan 2021 12:08:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:40971) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kyHic-0003e1-27 for bug-gnu-emacs@gnu.org; Sat, 09 Jan 2021 12:08:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kyHib-0002cA-Rm for bug-gnu-emacs@gnu.org; Sat, 09 Jan 2021 12:08:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: martin rudalics Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 09 Jan 2021 17:08: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.16102120239952 (code B ref 45737); Sat, 09 Jan 2021 17:08:01 +0000 Original-Received: (at 45737) by debbugs.gnu.org; 9 Jan 2021 17:07:03 +0000 Original-Received: from localhost ([127.0.0.1]:52511 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kyHhf-0002aS-Dh for submit@debbugs.gnu.org; Sat, 09 Jan 2021 12:07:03 -0500 Original-Received: from mout.gmx.net ([212.227.15.18]:55051) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kyHhd-0002Zp-0B for 45737@debbugs.gnu.org; Sat, 09 Jan 2021 12:07:01 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1610212014; bh=l61uqUuSxvwp2Wvqu55xXqOM8IAwQD8hCiNae2JubeE=; h=X-UI-Sender-Class:Subject:To:Cc:References:From:Date:In-Reply-To; b=g3HRz8Pj2zkdI9f7nVaKNHy7HZBWQLs1EjEHEfYtcr4mBBpkV2pL+E42BgUk0d0S3 YfDzLqnDEJKPyF/Ve5HWVXH4+SY26vJucGP+6BxqFjeOk325rsxMhEypIi3YJffeaU rcO43do+zUaYh5tMqDF0ZPDN1yKUrJW6Q/5vRx/I= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from [192.168.1.100] ([46.125.249.80]) by mail.gmx.com (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1N7i8O-1juc3Q1mDK-014oWx; Sat, 09 Jan 2021 18:06:54 +0100 In-Reply-To: <83zh1igwt0.fsf@gnu.org> Content-Language: en-US X-Provags-ID: V03:K1:m+3uEHp7Ms3/PcbCvEAQyQIVABMG7a8TOHo3Bl4JPtqcxZogA6V XHG7AR2wmmBr8Q1YMobuT1FgSJT3sJRjDNGaBzdwJndKKT2V/vu0rSsrZHzeDsYkVoLnATk 7C5mrEWaRmnu+zzrtQ39u/WkVfMn9ov4joCkr7m3K59L9shezp+558UurXBMhMdA9Z9gOSD +CrDHB4Y4evRt1/HFc1AQ== X-UI-Out-Filterresults: notjunk:1;V03:K0:PPh9Y1liuLQ=:Sf8GCpio0bg4SkAFy64W3q f/7AKNOfFUqie1FIamkVXjrTCX807WnPpx7sF6JLyxoFjhtvA1V1KhNqSwR6L/yYKlK4OLFx2 N6JNj4qXCYSZw7GUPHoZpSXQ46H0ZnT2NHS971ZuAWshHEDkjTjXGMIR7u21SPIrqKExhQDsW f11CrCntvN4Beoe7xWArkyCrJaPDc3/yLM6d80o406Tt7JQoojwavBWo2K9aDjMIqfZqspmdS zLkGsyMLVVkJoocnWmm6D2peu9B3/qDrfxgLWmQshp/f8dAiv09oePwGD8fI4nZgBRPK8Ang0 bNsf+lP++QItTuYpHZShcHh/VuRozAc8iOpEUjIf6Ln6wdE8H1aiSnW8rQVTDyFLTBQxU69jD d1K3xnqCemBBQWg1txQhkiK29w1RuSrMGFchbNy5SDPYot+xBGza9Tb/HMwUbBGIZbN+0t+ey OSOACyp+qDxIOgRds0hrfXMZ/ZQc64VLSs6xFeDcQFm5PuxgKxQT8yo5BVLV4yC8h+84fdBCk LZ1ILz2evzvmi5IAWXGgfGsewFf2OowbKTKUdJp1tgkE0875X5wmagwNFRQx64OyMbToo1wyB z+guuybjrFgpLIE8kQPXlx/CdNhHrZKFUi3SJWoIk9vCjNe7srHrnrWg4KLRxH8Y9fG4XqXVm lDcCkaP1xM4FtBMtANtWJWoBiVu/JCijqgPomQF/AOxZtrX4nf2j3/D7/m7SK5PrGbNOydVfp NkTAJ7sUHWxUvHXQxiTdHaz90fTNoTAtCJwJeWVa3JTj6IX9xrlRmbSJgSm+9BHtYesDKbef 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:197556 Archived-At: > So the frame will resize as result dragging by mouse, but the > mini-window will not be visible? Right. With our gtk size hints, for example, we set #define FRAME_TEXT_LINES_TO_PIXEL_HEIGHT(f, lines) \ ((lines) * FRAME_LINE_HEIGHT (f) \ + FRAME_TOP_MARGIN_HEIGHT (f) \ + FRAME_SCROLL_BAR_HEIGHT (f) \ + 2 * FRAME_INTERNAL_BORDER_WIDTH (f)) base_height = FRAME_TEXT_LINES_TO_PIXEL_HEIGHT (f, 1) + FRAME_MENUBAR_HEIGHT (f) + FRAME_TOOLBAR_HEIGHT (f); so we pretend that tab, menu and scroll bar, internal border and one text line remain visible. With the earlier recipe I get one text line for the topmost normal window(s). With (progn (ruler-mode) (tab-line-mode) (horizontal-scroll-bar-mode) (split-window (split-window) nil t) (split-window) (split-window (split-window nil nil t) nil t)) the smallest frame shows the normal windows with a tab line and a ruler, apparently stealing the space from the scroll bar. The mini window never shows up in practice. > If that is the effect, then I'm okay with installing this on emacs-27, > but I wonder whether we could do better on master, so as to ensure > that at least one screen line of the mini-window is still visible? That would be better indeed. But I suppose this would require to implement zero-height windows, something you didn't like when we discussed it about a year ago. Alternatively, we (maybe) could set our size hints in a way that all windows can be shown but maybe people wouldn't like it and on Windows there's no way to do that without frames snapping back. > Btw, is this issue new in Emacs 27, or did it exist before? New because tab lines didn't exist before Emacs 27. And I couldn't reproduce it with the ruler - maybe because it never wanted to write something into the echo area. martin