From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#38181: Actual height of mode-line not taken into account Date: Sun, 17 Nov 2019 19:26:21 +0200 Message-ID: <83a78u5s8y.fsf@gnu.org> References: <87eeyd3ul0.fsf@bernoul.li> <83d0dt2qt6.fsf@gnu.org> <83r2290w24.fsf@gnu.org> <83pnhs6wwp.fsf@gnu.org> <83k1806qca.fsf@gnu.org> <8336en7giv.fsf@gnu.org> <81264049-4f88-fae7-6448-e0ac5d977268@gmx.at> Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="31543"; mail-complaints-to="usenet@blaine.gmane.org" Cc: jonas@bernoul.li, 38181@debbugs.gnu.org To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Nov 17 18:27:13 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iWOKN-00082L-Fm for geb-bug-gnu-emacs@m.gmane.org; Sun, 17 Nov 2019 18:27:11 +0100 Original-Received: from localhost ([::1]:55200 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iWOKM-0008JJ-C1 for geb-bug-gnu-emacs@m.gmane.org; Sun, 17 Nov 2019 12:27:10 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39608) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iWOKF-0008Hy-Rd for bug-gnu-emacs@gnu.org; Sun, 17 Nov 2019 12:27:05 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iWOKE-0000gE-Sf for bug-gnu-emacs@gnu.org; Sun, 17 Nov 2019 12:27:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:33705) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iWOKE-0000g7-PY for bug-gnu-emacs@gnu.org; Sun, 17 Nov 2019 12:27:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iWOKE-0002x0-IQ for bug-gnu-emacs@gnu.org; Sun, 17 Nov 2019 12:27: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: Sun, 17 Nov 2019 17:27:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 38181 X-GNU-PR-Package: emacs Original-Received: via spool by 38181-submit@debbugs.gnu.org id=B38181.157401159511306 (code B ref 38181); Sun, 17 Nov 2019 17:27:02 +0000 Original-Received: (at 38181) by debbugs.gnu.org; 17 Nov 2019 17:26:35 +0000 Original-Received: from localhost ([127.0.0.1]:42526 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iWOJm-0002wH-Rb for submit@debbugs.gnu.org; Sun, 17 Nov 2019 12:26:35 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:58702) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iWOJe-0002vx-La for 38181@debbugs.gnu.org; Sun, 17 Nov 2019 12:26:33 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:36741) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1iWOJZ-00009y-Hq; Sun, 17 Nov 2019 12:26:21 -0500 Original-Received: from [176.228.60.248] (port=4774 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1iWOJY-0003IW-I4; Sun, 17 Nov 2019 12:26:21 -0500 In-reply-to: <81264049-4f88-fae7-6448-e0ac5d977268@gmx.at> (message from martin rudalics on Sun, 17 Nov 2019 09:55:47 +0100) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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: 209.51.188.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:171827 Archived-At: > Cc: jonas@bernoul.li, 38181@debbugs.gnu.org > From: martin rudalics > Date: Sun, 17 Nov 2019 09:55:47 +0100 > > > But I thought we'd established that mode-line height calculation is > > not the culprit, the culprit is the fact that a window's height is not > > recomputed when the mode-line height changes. Did I misunderstand? > > I don't think we contradicted each other's sayings here. To > recapitulate what we found out so far: > > (1) To operate correctly in the user's sense, 'fit-window-to-buffer' > has to know the height of the mode line of the window it operates > on as it will be shown by the next redisplay. I didn't see where fit-window-to-buffer looks at the height of the mode line. What did I miss? > (2) When users or applications (maybe implicitly) change the mode line > appearance, they have no generally established way to tell Emacs > that this happened. The display engine has to find out by herself > but then it's already too late for telling 'fit-window-to-buffer'. Suppose we had a Lisp-callable function which would return the height of the mode line of a window as per the current mode-line-format for that window -- would that make the solution possible/easier?