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: Fri, 15 Oct 2021 06:07:54 -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> 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="31610"; mail-complaints-to="usenet@ciao.gmane.io" To: martin rudalics , 38181@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Oct 15 11:16:21 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 1mbJK9-00082M-9Y for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 15 Oct 2021 11:16:21 +0200 Original-Received: from localhost ([::1]:37634 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mbJK7-00020T-Er for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 15 Oct 2021 05:16:19 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:34250) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mbJD4-0007TB-VE for bug-gnu-emacs@gnu.org; Fri, 15 Oct 2021 05:09:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:54765) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mbJD4-0003tl-M9 for bug-gnu-emacs@gnu.org; Fri, 15 Oct 2021 05:09:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mbJD4-0002ng-Bm for bug-gnu-emacs@gnu.org; Fri, 15 Oct 2021 05:09:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Carlos Pita Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 15 Oct 2021 09:09: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.163428889410704 (code B ref 38181); Fri, 15 Oct 2021 09:09:02 +0000 Original-Received: (at 38181) by debbugs.gnu.org; 15 Oct 2021 09:08:14 +0000 Original-Received: from localhost ([127.0.0.1]:38078 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mbJCH-0002ma-W7 for submit@debbugs.gnu.org; Fri, 15 Oct 2021 05:08:14 -0400 Original-Received: from mail-yb1-f182.google.com ([209.85.219.182]:34621) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mbJCG-0002mO-K7 for 38181@debbugs.gnu.org; Fri, 15 Oct 2021 05:08:13 -0400 Original-Received: by mail-yb1-f182.google.com with SMTP id q189so21200637ybq.1 for <38181@debbugs.gnu.org>; Fri, 15 Oct 2021 02:08:12 -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; bh=0daV2KZvFJCySNPUJQogXta/zzlBOqSvyotWXW6cyS4=; b=J6v6utM3e6gwpEdnJf6GxeziqCFLy1CS++ZdQzzGVGF54A+YmginLHkUUCVNv3rQRn egFBvOYUqLoc9tKxjh67X5D/9xIe03Nyjw79WIi/Ulx8B5RJ9Pv+YQXek1TwowAkQpMf Xzw95cSBRnFLxSk5ZTJnHWGJ5FIsAgLA+gXzYP8wv/UpThV5dSKoYRmIOtNNYnmiw5RK QLASz7nbA0IHMV7hYihyH2OXjx5MqJzPdsNCX086T8OGE+uZnQZgk7rXzY+y/o91ZXrk yv4pH8+B8cysbftaW4ol648a1WFXFLmNLzZdIlSVU1DU4ew4D4DX75TfmvznJabyRJ1L 4sAQ== 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; bh=0daV2KZvFJCySNPUJQogXta/zzlBOqSvyotWXW6cyS4=; b=GlUIl9ZdHZrDwoKSdCeSFkXTfVuHK/2dtu1E4rgQvLOZa33iXYy+8H8XIHXaku7AAr jPjLUb+rIDSxu1qWVVE/tN77ewas+hUfvfB//wis32WrmMlnvZyZQbo8K7wFgx7bk0v4 lKPUWOA/PVAMTqa+JkKb8bQikt5t1atZAkHQaIPXFiBsOyHz+D1Wi4Mo64Lr3eA2/mbw 9PbBEru0q5iMalwqHNE/n95ios3O1UIPCsIP/b8WoNllD2WddnFFUfci9ExxfyLVcZQx n820tFNPpFZOECQ4G3/KECr5jfDNIkR9LdoL3zOoMQxDau9K8wfTPhKb3tzWzyDH3/c8 +Brw== X-Gm-Message-State: AOAM5323mN2JEUc1cf0lc+o/CSOJio9mCt/9SdnyUS+FQMMIRPwHimey 7rWfuymFOp3SjARFEo1xcLzY0BYZCcKDqFSodpE= X-Google-Smtp-Source: ABdhPJzptSupEvG4PuEzeLeGeI6DeWIPz5Vr7k7izEFhXeDA2MTclT5rjyJSybOkS5MkC/5ohTNpGvMaA/ey+BKVZqE= X-Received: by 2002:a25:49c3:: with SMTP id w186mr12037308yba.429.1634288887123; Fri, 15 Oct 2021 02:08:07 -0700 (PDT) In-Reply-To: <776a35b7-1920-2987-88ae-6dcab958a8e4@gmx.at> 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:217297 Archived-At: > > 2. redisplay fit redisplay fit redisplay ... > Sorry. I still don't understand the purpose of the last redisplay here. It's not the last, it's a repeating sequence, I left the dangling redisplay instead of ending it in a fit because I was explaining my unfortunate choice of words when I said "after", but it's formally the same, the point being that the first redisplay is not enough. > Does > > 2. redisplay fit redisplay fit ... > > fail? What are the values returned by 'window-mode-line-height' after > each redisplay? As far as I can see this works, as I said before. In the example provided by Jonas window-mode-line-height is 29 immediately after calling set-face-attribute, but after setting mode-line-format it's always 60, no matter if I call redisplay or fit or none of them or in what order. But even if the reported height is the same, the layout is not, omitting the (previous) redisplay always crops the text. Best regards, Carlos