From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Jonas Bernoulli Newsgroups: gmane.emacs.bugs Subject: bug#38181: Actual height of mode-line not taken into account Date: Sun, 17 Nov 2019 17:17:36 +0100 Message-ID: <87mucua34v.fsf@bernoul.li> References: <87eeyd3ul0.fsf@bernoul.li> <83d0dt2qt6.fsf@gnu.org> <87a78xnrp0.fsf@bernoul.li> <835zjl2mzs.fsf@gnu.org> <87eey8og08.fsf@bernoul.li> <83o8xc6wsn.fsf@gnu.org> <87bltbooqq.fsf@bernoul.li> <838sof7qxy.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="21514"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: mu4e 1.1.0; emacs 27.0.50 Cc: 38181@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Nov 17 17:18:27 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 1iWNFr-0005Sv-G4 for geb-bug-gnu-emacs@m.gmane.org; Sun, 17 Nov 2019 17:18:27 +0100 Original-Received: from localhost ([::1]:54560 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iWNFq-0000XV-7f for geb-bug-gnu-emacs@m.gmane.org; Sun, 17 Nov 2019 11:18:26 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:34062) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iWNFT-0000Vw-C0 for bug-gnu-emacs@gnu.org; Sun, 17 Nov 2019 11:18:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iWNFS-00039v-DM for bug-gnu-emacs@gnu.org; Sun, 17 Nov 2019 11:18:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:33630) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iWNFS-00039p-AO for bug-gnu-emacs@gnu.org; Sun, 17 Nov 2019 11:18:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iWNFS-0005mn-3E for bug-gnu-emacs@gnu.org; Sun, 17 Nov 2019 11:18:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Jonas Bernoulli Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 17 Nov 2019 16:18: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.157400746122206 (code B ref 38181); Sun, 17 Nov 2019 16:18:02 +0000 Original-Received: (at 38181) by debbugs.gnu.org; 17 Nov 2019 16:17:41 +0000 Original-Received: from localhost ([127.0.0.1]:42450 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iWNF6-0005m6-Uq for submit@debbugs.gnu.org; Sun, 17 Nov 2019 11:17:41 -0500 Original-Received: from mail.hostpark.net ([212.243.197.30]:48520) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iWNF5-0005lx-3l for 38181@debbugs.gnu.org; Sun, 17 Nov 2019 11:17:39 -0500 Original-Received: from localhost (localhost [127.0.0.1]) by mail.hostpark.net (Postfix) with ESMTP id B1DEB16620; Sun, 17 Nov 2019 17:17:37 +0100 (CET) X-Virus-Scanned: by Hostpark/NetZone Mailprotection at hostpark.net Original-Received: from mail.hostpark.net ([127.0.0.1]) by localhost (mail1.hostpark.net [127.0.0.1]) (amavisd-new, port 10124) with ESMTP id BZJGF0NolHKc; Sun, 17 Nov 2019 17:17:37 +0100 (CET) Original-Received: from customer (localhost [127.0.0.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.hostpark.net (Postfix) with ESMTPSA id 426501660F; Sun, 17 Nov 2019 17:17:37 +0100 (CET) In-reply-to: <838sof7qxy.fsf@gnu.org> 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:171814 Archived-At: Eli Zaretskii writes: > The problem is that > this data is recalculated only when the window is redisplayed, so > without the call to 'redisplay' we use stale data until the next > redisplay cycle. > > However, if all the mode lines have the same height, then the problem > shouldn't have happened, and so now I wonder what am I missing. I think the culprit is that we are not reusing some existing window to display a new buffer but actually split an existing window in two and then display the new buffer in the new window which never had its mode- line height calculated. > If > you simulate the situation where the mode line changes, while keeping > its height (even if that height is unusually large), does the problem > with fit-window-to-buffer still happen? No, if the mode-line (height) can be "reused", then there is no problem.