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 04:26:51 -0300 Message-ID: References: <87eeyd3ul0.fsf@bernoul.li> <2a0bf8c7-69df-0532-c6d8-5315ee9fee28@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="3637"; 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 Fri Oct 15 09:28:11 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 1mbHdS-0000pl-7q for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 15 Oct 2021 09:28:10 +0200 Original-Received: from localhost ([::1]:58442 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mbHdR-0005ao-3e for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 15 Oct 2021 03:28:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41142) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mbHdK-0005a1-8i for bug-gnu-emacs@gnu.org; Fri, 15 Oct 2021 03:28:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:54635) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mbHdJ-00048o-QV for bug-gnu-emacs@gnu.org; Fri, 15 Oct 2021 03:28:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mbHdJ-0000B1-NB for bug-gnu-emacs@gnu.org; Fri, 15 Oct 2021 03: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: Fri, 15 Oct 2021 07: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.1634282834621 (code B ref 38181); Fri, 15 Oct 2021 07:28:01 +0000 Original-Received: (at 38181) by debbugs.gnu.org; 15 Oct 2021 07:27:14 +0000 Original-Received: from localhost ([127.0.0.1]:37948 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mbHcY-00009x-J9 for submit@debbugs.gnu.org; Fri, 15 Oct 2021 03:27:14 -0400 Original-Received: from mail-yb1-f176.google.com ([209.85.219.176]:36633) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mbHcW-00009e-3S for 38181@debbugs.gnu.org; Fri, 15 Oct 2021 03:27:13 -0400 Original-Received: by mail-yb1-f176.google.com with SMTP id g6so20613839ybb.3 for <38181@debbugs.gnu.org>; Fri, 15 Oct 2021 00:27: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 :cc; bh=81uw6jExUcy2OBI7uhOOLKlGhfCFN6XQ5AAtitjWdGk=; b=iDvNzlt5Lh8hM0KfPvkc6zNc2nEmbZkBP3FtKej+9SbJNVaibZVTWj5DlVQFQPHKwY uH3SyhLKm9k6CSx/84ujpJ4ku+xoKNyb/ATtiKxxq7zBrpG+O112Hx2n+nomaIKn/wsr CvMKuhfq9TUULxjO1U3P0oRXavU3dwujYMZziu55mS0vbkOliI49PD0rbMSUWalD3ZaE 7JSgjUs9qDh1+MroBurokFVLph5NDwyshwPed7vhHy5xYSQVgPbxzN28Tl/DMIbAwGv/ HVI+eXa/2Co/X+mJY5dmPr1lLe40SR+WKK/QjIixi66Ir8GodFOV6ENJhMefaV4BlOBW A2jg== 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=81uw6jExUcy2OBI7uhOOLKlGhfCFN6XQ5AAtitjWdGk=; b=VYpCqX5euMyAgvbyJcvFlQEuzqSFFa0lg9zaOA0lIu2GxfOdeUkV2J7BxWG9iQ1hrW oHX0sY+YZj+h5GXxEubUOlHLoez+3aIIGrnwJIcOlVyOFheqczwY7I109fw1Av3K8hKJ lYNqnZT5HO+jltU9sTDAzM8urnD5qS1nzUP0d958hmtgDKZIo9v06FDJ3jDZyYE6Pf0U D9AxxLtrS+7zDTjhDf4wQK7xyu3mBSlzW25wr7HSZtd6EnTBdQy3l3MOQgOD/4d+/Bt+ q6ew/mcqhv0SWSJv3QCKrRvPyYWFNS7ixsRai13dlyokrzJIxgpgWGvQNws/FeBYSlQb 10jw== X-Gm-Message-State: AOAM530OBXlfRjP39Jpz/n8tRRyXXtYbaTDSLzbe/TvrIHLEL9oGMqbt iQhnikUHOM/VTJQVii9usHyrtwE35BiZyn5Xm6hmvjlJCyDnkw== X-Google-Smtp-Source: ABdhPJxVlpmApzmyN+MiM4FGKnCO6IA+276l5Foxfvp8DKG9btHrWh/i6SyLaMADa7xSWiL9sTaQhhHZjQp7ApTpwuY= X-Received: by 2002:a25:b4d:: with SMTP id 74mr10408734ybl.443.1634282826567; Fri, 15 Oct 2021 00:27:06 -0700 (PDT) In-Reply-To: <2a0bf8c7-69df-0532-c6d8-5315ee9fee28@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:217292 Archived-At: Hi Martin, > If the underlying scenario is that you first fit a window to its buffer > and then enlarge the height of that window's mode-line, there's not much > we can do here currently. It's like fitting a window to its buffer and > then adding a header line or a horizontal scroll bar to that window. I can't say I understand the details discussed here but I'm not quite sure your description fits the situation. The workaround since this bug was first reported has been: immediately before fit-window-to-buffer execute an advice that forces a redisplay, then deactivate the advice. But the problem I'm seeing now is that the first time org-set-tags-command is executed its popup is correctly sized (with said workaround in place, of course), but further executions show a popup with the wrong geometry that trims part of the text off. If I remove the "just once" clause in the workaround, so that the redisplay is forced after each fit-window-to-buffer execution, then the layout is correct every time. It goes without saying that org-set-tags-command is ultimately triggering the execution of fit-window-to-buffer, but that stuff you probably know much better than me. Thing is, there was no enlargement of the modeline in-between, as far as I can understand and see nothing changed in this regard between the first and the second execution of org-set-tags-command. Best regards, Carlos