From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Carlos Pita Newsgroups: gmane.emacs.bugs Subject: bug#38181: Actual height of mode-line not taken into account Date: Sat, 16 Oct 2021 18:27:10 -0300 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> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="27550"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 38181@debbugs.gnu.org To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Oct 16 23:28:31 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 1mbrED-00071t-Uh for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 16 Oct 2021 23:28:29 +0200 Original-Received: from localhost ([::1]:44830 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mbrEC-0005Fu-6J for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 16 Oct 2021 17:28:28 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:40756) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mbrDn-0005Fl-Kh for bug-gnu-emacs@gnu.org; Sat, 16 Oct 2021 17:28:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:59860) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mbrDl-0005VU-UA for bug-gnu-emacs@gnu.org; Sat, 16 Oct 2021 17:28:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mbrDl-0000Sp-JN for bug-gnu-emacs@gnu.org; Sat, 16 Oct 2021 17:28:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Carlos Pita Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 16 Oct 2021 21:28: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.16344196491745 (code B ref 38181); Sat, 16 Oct 2021 21:28:01 +0000 Original-Received: (at 38181) by debbugs.gnu.org; 16 Oct 2021 21:27:29 +0000 Original-Received: from localhost ([127.0.0.1]:43173 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mbrDF-0000S5-Ln for submit@debbugs.gnu.org; Sat, 16 Oct 2021 17:27:29 -0400 Original-Received: from mail-yb1-f176.google.com ([209.85.219.176]:35614) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mbrDC-0000Rq-Uk for 38181@debbugs.gnu.org; Sat, 16 Oct 2021 17:27:28 -0400 Original-Received: by mail-yb1-f176.google.com with SMTP id z5so1616352ybj.2 for <38181@debbugs.gnu.org>; Sat, 16 Oct 2021 14:27:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=CprVo4WXmUKiwa0ftmH06ljjr85a4ql5mQO/1woyJHs=; b=b21k0YTFSLh+R30gdOzV/A6IRMQlu7n3m4NlVk8FZpsF8dKuBMa9XPdo2NSgM6yTY4 EZKsgD23wBUSqMd7uCrJEKUFCG7tjQbtEy+xBKIa836QjyBpgHzT+zMF9ZelBazOqPXD f4Ny0t+sjTzyTp1UimDeGoZJ+yf9YTNUw/t4v9nGfkX4sFM285jEPngRqPHhr0OZZLG0 un5SLr01d5m2FtkpHkSICEC9XLoe9m6WtRalYJ3X7XK3n8vk/LF/kWUFF09sdLYxY9yl r+lJrNt9dnVhYIpENf94rI4sba24ZEiNpk0yseubjxxZ5ETpe4zDaN8KIVa04mmbj+Rc fWFA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=CprVo4WXmUKiwa0ftmH06ljjr85a4ql5mQO/1woyJHs=; b=O/HMsFE3TBFup/YAep1y3f7mf2tlWWr370l4pvb8/vwkHELAiq/wadEkJnNDvsaihG S5mSPMqbnofUtQQDAXuDaIrnjowPv6dhHrPJvOD5Zn6uws/1vh+XKyX5WW+uO32uV3xx nQfcirSjAK8G7MCRkYJhxuJ5j02SxGVeDv4rolTTahDbxKXsqPpiYZ5Lhdu5KvoK6qSI mSKpIpBQfmraRO8L/QA0J/WzIjkUIqp0LEdtVv0W/XscyKqFs1d4ynTUWRFYlf7d4r7x qZ3arprqAd+EWwMjINTCCLVJs3tJZxsahLyD39OsIPQw1IPAJdTAOlz706DzRn1XlvDt pR3g== X-Gm-Message-State: AOAM533fSlX4A/wXjxN35ogVaSbGLGxgFMAJNCEFKJk29B1rKEXyLTI9 r4lGoTwiYodn4S9CW/pApaH6fD3cOF4Z67nBtHw= X-Google-Smtp-Source: ABdhPJwQHR9uKwA1WzG6ZC6G8g172fN5ChBgTkZM6NN2NIMpM0zUBVoKRMyxzq7M+0vH6RP5ldjb0LZITtE2+dN/O9A= X-Received: by 2002:a25:b4d:: with SMTP id 74mr19170983ybl.443.1634419641438; Sat, 16 Oct 2021 14:27:21 -0700 (PDT) In-Reply-To: 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:217397 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) but there is some flickering because the window is displayed before the fit and then immediately replaced by the fitted version. Although I see no way around that glitch, so it might be the price to pay.