From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.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: Mon, 18 Nov 2019 10:44:56 +0100 Message-ID: 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> <83a78u5s8y.fsf@gnu.org> <17cbad77-efb8-9e9e-9a14-99e2e2bc5782@gmx.at> <83v9ri4agk.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="183398"; mail-complaints-to="usenet@blaine.gmane.org" Cc: jonas@bernoul.li, 38181@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Nov 18 10:46:31 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 1iWdc7-000lay-2t for geb-bug-gnu-emacs@m.gmane.org; Mon, 18 Nov 2019 10:46:31 +0100 Original-Received: from localhost ([::1]:59962 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iWdc5-0007NE-Nk for geb-bug-gnu-emacs@m.gmane.org; Mon, 18 Nov 2019 04:46:29 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60428) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iWdbf-0007Kz-5t for bug-gnu-emacs@gnu.org; Mon, 18 Nov 2019 04:46:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iWdbe-0006vB-AT for bug-gnu-emacs@gnu.org; Mon, 18 Nov 2019 04:46:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:34372) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iWdbe-0006v0-7T for bug-gnu-emacs@gnu.org; Mon, 18 Nov 2019 04:46:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iWdbe-0005oq-4f for bug-gnu-emacs@gnu.org; Mon, 18 Nov 2019 04:46:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: martin rudalics Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 18 Nov 2019 09:46: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.157407030919173 (code B ref 38181); Mon, 18 Nov 2019 09:46:02 +0000 Original-Received: (at 38181) by debbugs.gnu.org; 18 Nov 2019 09:45:09 +0000 Original-Received: from localhost ([127.0.0.1]:43183 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iWdam-0004yv-It for submit@debbugs.gnu.org; Mon, 18 Nov 2019 04:45:08 -0500 Original-Received: from mout.gmx.net ([212.227.15.19]:53837) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iWdaj-0004t2-VJ for 38181@debbugs.gnu.org; Mon, 18 Nov 2019 04:45:07 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1574070297; bh=w93Pvvq1MNmJPHCFEMV9vdi7GZstcoKn92mUD7UVMGY=; h=X-UI-Sender-Class:Subject:To:Cc:References:From:Date:In-Reply-To; b=X852GiIfVj0SsIakvftLKdlec0Hlb0SVMMoo0N+na0XZ2XgR9Jf1vZnk5xufdFjuj LK6kIu5Srzoo1Dpv+DlDdPbAkuabL+txvcEczQWZ1gYJ82VUfpqPGNCJayNraAGnCS vU1JL0MyVp3MUULVUKNYNW6iePW/Z2WTTt2WArQg= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from [192.168.1.103] ([212.95.5.110]) by mail.gmx.com (mrgmx005 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MI5Q5-1ibqvO0291-00FEtx; Mon, 18 Nov 2019 10:44:57 +0100 In-Reply-To: <83v9ri4agk.fsf@gnu.org> Content-Language: de-AT X-Provags-ID: V03:K1:7scP1lg9YLRJzvMqPl4Gdcg5syVKstVmNlFJ5XfaK7+kyn1Fj13 6VTb2IFOd7O+49sqxEpCiCcTBg6U2tdZB5jhkXazRbhQtmU7n4WU2aeGq7AjcfCrUWiCNyi /ydYOivEKyWQxH83MQnc0hv77ETD8c9wx21EwiH1KZIe502o6R/rG6rYWYg5m7tkDpnaTwk v6wVU7qdAm+tOKCR3JMZQ== X-UI-Out-Filterresults: notjunk:1;V03:K0:xg+2UHIPtY4=:mIFg7vIwd8iZrunOGpy5a7 QyUhn+pOHYei8v6z9TcVXGV20YRFIVsvET0g2SUXnDaSR/z++dQwVJyReGDTLyg1fQMd+B8wv WGYU5DRzKtUyiaQqNrB9DaOUDzu5Mi3gqCoQFXGq0hzfirqUHLYSX7hiYleIqGUPl3d2kk+lB CvHRlZyset3NSEmpUZQzCbdnfAEUWxionhC5myoQi/wegqOWg2wlZPAsVlh9MEbdRANpLmgAf /xJSg0XtjwVV8OWxi4OEbFYx1jXn3L2CGUPPuK3akFwUeY2pkip7+5KzHvUFI1CRPdCUvpFyU VkpHedq35ZC6WKqTU1DYe373ViM4ENZ6F8D3yx5xiw17DLxA/F17d37z59SHAQl8SGMf4tT7e J1UB3Jz0ipsJWrRlNw7Gx0OzfgUUCsB5rg8n+QcaCX1QlmTOOZlvFD6s/puhEixbBMtLMe2JM gS+98gCfmXmjQPlNOcqZELjTsfZv6pX2W4zoGd8WD7YMYbzDlIJzwVtj1yeQdwyO+QiqRSNWh MeaRxlIxDzZc2acUD3JcQeRDSyEoHHsbVdmpbZFQEest4Hn01kW1aLqoIGzTko+V3FtZMp01g iaSvEJWLZAeD5X5uBz2qJkDMEB9aAczLtHUCfXErRDtFdnrp5YQl2eo/W66yGS5UlNNm5pV5p +UlLcysFVPZpcTZpTk3xaZceVSVAzYyJlnWiHSSNQZfplI7vQrMAF4NIewhsqZ0nGYMGYdvvo E9Pmfyz1wWVIX8Vu0eyXplhWv3Zq86CCBhop9pYL0G0tIe0dmcNmpsPit5nk/qsetER1JORd 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:171897 Archived-At: > Thanks. So the only thing that's missing is that it should call > display_mode_lines, and then look at DESIRED_MODE_LINE_HEIGHT instead > of WINDOW_MODE_LINE_HEIGHT? I suppose so. But please always keep in mind that the window code does not handle problems caused by specifications in the mode and header lines immediately. For example, it will not auto-resize a one-line window when its mode line height is increased to more than its text height. Try with a one-line window and Jonas' (set-face-attribute 'mode-line nil :height 250) >> Still, it will penalize every >> =E2=80=98fit-window-to-buffer=E2=80=99 call (without a redisplay, tho= ugh). > > Why "penalize"? Because 'fit-window-to-buffer' now has to calculate the mode line height which it didn't before and which for the majority of users never changes. martin