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#38181: Actual height of mode-line not taken into account Date: Sun, 17 Oct 2021 09:06:13 +0300 Message-ID: <83a6j8gp7u.fsf@gnu.org> 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> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="23958"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 38181@debbugs.gnu.org To: Carlos Pita Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Oct 17 08:07:34 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 1mbzKY-00064I-41 for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 17 Oct 2021 08:07:34 +0200 Original-Received: from localhost ([::1]:57414 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mbzKW-0002Mh-CA for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 17 Oct 2021 02:07:32 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52724) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mbzK2-0002MV-MI for bug-gnu-emacs@gnu.org; Sun, 17 Oct 2021 02:07:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:60153) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mbzK2-0001Ju-DK for bug-gnu-emacs@gnu.org; Sun, 17 Oct 2021 02:07:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mbzK1-0000gt-Ve for bug-gnu-emacs@gnu.org; Sun, 17 Oct 2021 02:07:01 -0400 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 Oct 2021 06:07:01 +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.16344507772597 (code B ref 38181); Sun, 17 Oct 2021 06:07:01 +0000 Original-Received: (at 38181) by debbugs.gnu.org; 17 Oct 2021 06:06:17 +0000 Original-Received: from localhost ([127.0.0.1]:43466 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mbzJJ-0000fp-23 for submit@debbugs.gnu.org; Sun, 17 Oct 2021 02:06:17 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:50760) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mbzJI-0000fe-4F for 38181@debbugs.gnu.org; Sun, 17 Oct 2021 02:06:16 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:45664) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mbzJC-0008T9-If; Sun, 17 Oct 2021 02:06:10 -0400 Original-Received: from [87.69.77.57] (port=1037 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mbzJC-0002cP-4T; Sun, 17 Oct 2021 02:06:10 -0400 In-Reply-To: (message from Carlos Pita on Sat, 16 Oct 2021 18:27:10 -0300) 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:217405 Archived-At: > From: Carlos Pita > Date: Sat, 16 Oct 2021 18:27:10 -0300 > Cc: 38181@debbugs.gnu.org > > 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? > 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.