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#38181: Actual height of mode-line not taken into account Date: Sun, 17 Oct 2021 10:34:35 +0200 Message-ID: References: <87eeyd3ul0.fsf@bernoul.li> <2a0bf8c7-69df-0532-c6d8-5315ee9fee28@gmx.at> <67bcd8c4-2028-46bb-7971-244304bb7c0a@gmx.at> <776a35b7-1920-2987-88ae-6dcab958a8e4@gmx.at> <0dff07fa-b56f-1227-9f17-94e9b9b4c296@gmx.at> <83a6j8gp7u.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="7589"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 38181@debbugs.gnu.org To: Eli Zaretskii , Carlos Pita Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Oct 17 10:35:59 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 1mc1eB-0001oW-6W for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 17 Oct 2021 10:35:59 +0200 Original-Received: from localhost ([::1]:35056 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mc1e9-0007KS-2c for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 17 Oct 2021 04:35:57 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35766) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mc1dH-0007He-I0 for bug-gnu-emacs@gnu.org; Sun, 17 Oct 2021 04:35:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:60244) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mc1dH-0005Lu-8g for bug-gnu-emacs@gnu.org; Sun, 17 Oct 2021 04:35:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mc1dH-0004Hi-0Q for bug-gnu-emacs@gnu.org; Sun, 17 Oct 2021 04:35:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: martin rudalics Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 17 Oct 2021 08:35: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.163445968416416 (code B ref 38181); Sun, 17 Oct 2021 08:35:02 +0000 Original-Received: (at 38181) by debbugs.gnu.org; 17 Oct 2021 08:34:44 +0000 Original-Received: from localhost ([127.0.0.1]:43552 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mc1cy-0004Gi-Dq for submit@debbugs.gnu.org; Sun, 17 Oct 2021 04:34:44 -0400 Original-Received: from mout.gmx.net ([212.227.17.20]:54267) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mc1cx-0004GU-6g for 38181@debbugs.gnu.org; Sun, 17 Oct 2021 04:34:43 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1634459677; bh=ONudAk01Ukt3LJCAWOy2klZspORPc4b1Nyv8RpFUxls=; h=X-UI-Sender-Class:Subject:To:Cc:References:From:Date:In-Reply-To; b=VoUJOHgTsafRomEVAuCgLgem4AsWZ9GSd1dyBIs1dy77pcZQ4AkMvRn24cnSvVqe/ NrsuOBVZoNeI1I0BhEwoiRUkjYkfaLPyqeJF++AJI27s8sSqGpH39raJyZVT0YOOJ1 oq8UEGdfJQpyOp4sQMUOpgKy8hO0BtHHaSFKu/Eg= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from [192.168.1.102] ([213.142.97.130]) by mail.gmx.net (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MpUUm-1n5a9Q3AB2-00psUY; Sun, 17 Oct 2021 10:34:36 +0200 In-Reply-To: <83a6j8gp7u.fsf@gnu.org> Content-Language: en-US X-Provags-ID: V03:K1:R0UBzwkEvuG8hHY+zwwG4vTaVx2EwQE6nooolZUSruai6C5VpNU 6o2kTUnHXmmjwiMXyhdsHHRdSTMPgaCk4z2gubcPl8qRMjQFbw6WuHYrNjt3+nvWu9w4STc wkagkKDIQwbVRcXutSvXCCXh0UxqyckjqDnyLWGo93NuCq7zCdkhzSmpMWyvLSzuoilgXsP QrtbW3F+Na49HtkDo+vOw== X-UI-Out-Filterresults: notjunk:1;V03:K0:XxFbb5+7p7g=:6aelcAqOTLrccQjEQpBASS lrwUuQxZy3SspT3zEQowZoML+RsBhZ8WZtvYGv00ZL3ynCWruXZ3mK/4icN+nJkekRe6rrJAD kKVcQkJGaJ2YoedmhkdMmcwBqDVGMrl7nk0Yisgr2+et98ninVGdh18aiPWM0Kp9fIqYLd0hm q9mFtYmEq+PjhbmCBWVT8bWGGnNQMjuf3K4Cx0pDqlNE8fwzno5COB5xLHE7XbFvtAZjG+QXh ehY1Za7LHEwrh4G+yLH1Dg1+ywSZ9vMF/svevTqHHgx+LdqVNp5bAHOzNGISSN/U+So4G8Asy RryUX4/M12kHIps68gfvZEQCD4y6dsD12fWv7Mlpyd1U52cqWThekBfeQTTeN7/wBPk60qXY4 w+4v26aUZtYbrDCMcrUoCjqacrojp+IdUqR5xXZ5jt5sRpMzWD/NoabVuobZ2RjrS6YwMvPTB f6Xhs3zKv0knJd3Vr2z7IsCDLg8w35F8oZeWMA7MECY/m5W9kph76cK3oIMzTiAnND2+0dz1b dsVVtJe3Rx8s9aTuqBop3yLKMKWAE3eKvkcGcKai1Pa8XOq6WGHDnfDNAqJMAdctG4+ErNkOC nDKH/aXItjiXTp4gsf9ObeEXqByeMc86kQXGr38U3WDKyDyrSIjcb8W1bsofBBH6e8SudzdB4 qvybVeMs/sjzWC11SD7Nj6OpD54aSzSTJb7YTFIcDT1UVi6iro8Z2e+peueBLzO2YkQdHUeDO 0in+5z3GL/Tzs91GNKSY0oxII3xMiE2LDRIl9vTP4ir7fjISV5ywyPFqvHMNyQbZLgdXww2p 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:217413 Archived-At: >> In practice this seems to nicely cover the relevant cases: >> >> (defun my-redisplay-hack (&rest _) >> (when mode-line-format >> (redisplay t))) >> (advice-add #'split-window :after #'my-redisplay-hack) > > I wonder how this fixes anything, since split-window already triggers > redisplay. Martin, do you understand the difference? There is no difference in the use cases posted here. The results will change only when a window is reused and then fit to its buffer. >> but there is some flickering because the window is displayed before >> the fit and then immediately replaced by the fitted version. > > Which means there are two redisplay cycles, and the first one (which > produces incorrect display) is the one from your hack. So once again, > I wonder why that call to 'redisplay' is needed. Where "incorrect redisplay" stands for "window that has not been yet fit to its buffer". martin