From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.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: Fri, 15 Oct 2021 10:35:25 +0200 Message-ID: <67bcd8c4-2028-46bb-7971-244304bb7c0a@gmx.at> References: <87eeyd3ul0.fsf@bernoul.li> <2a0bf8c7-69df-0532-c6d8-5315ee9fee28@gmx.at> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="37077"; 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 Fri Oct 15 11:25:08 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 1mbJSd-0009V1-LK for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 15 Oct 2021 11:25:07 +0200 Original-Received: from localhost ([::1]:35818 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mbJSc-00035H-DZ for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 15 Oct 2021 05:25:06 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55710) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mbIhA-0000kA-78 for bug-gnu-emacs@gnu.org; Fri, 15 Oct 2021 04:36:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:54726) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mbIh8-0001RW-3R for bug-gnu-emacs@gnu.org; Fri, 15 Oct 2021 04:36:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mbIh7-0001xN-RI for bug-gnu-emacs@gnu.org; Fri, 15 Oct 2021 04:36:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: martin rudalics Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 15 Oct 2021 08:36: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.16342869357483 (code B ref 38181); Fri, 15 Oct 2021 08:36:01 +0000 Original-Received: (at 38181) by debbugs.gnu.org; 15 Oct 2021 08:35:35 +0000 Original-Received: from localhost ([127.0.0.1]:38039 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mbIgh-0001wd-4r for submit@debbugs.gnu.org; Fri, 15 Oct 2021 04:35:35 -0400 Original-Received: from mout.gmx.net ([212.227.15.15]:51363) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mbIgf-0001wN-HG for 38181@debbugs.gnu.org; Fri, 15 Oct 2021 04:35:34 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1634286926; bh=hDSKIsd/7dQsEpXgwuio7mY1ZqKSvgnsV9kAInES5bU=; h=X-UI-Sender-Class:Subject:To:Cc:References:From:Date:In-Reply-To; b=VK/3SS1sXRR9G0i9RuKyl8pLN4rzUV510EL9igyXTlMJEIWnLvBJR/ccb7V45Pnie sve6898IkwZsX3ImYxVFnDuOJa7vBnhqpspIIzfX4l5gmK0R2nCbqY1U1HeBefHqcL 38eQ6YB9JfBVvLqx1rqw7Rb9Ltmo0qRe0/3EocTY= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from [192.168.1.102] ([213.142.96.142]) by mail.gmx.net (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MFKKh-1mUMg30rxR-00FnJd; Fri, 15 Oct 2021 10:35:26 +0200 In-Reply-To: Content-Language: en-US X-Provags-ID: V03:K1:FcvQR/7yD5qH/sfac5PUeMfN6a/VmDQwBy7F/jcydMTAZQH0NAR 0CbQ79HwLaQ66z4WNw1JMmsINz9PS96aCz5uJqB0OmHDKZbnv0kunamKrBFQE3KQgmJzVlD gY08ov7oW+aaWsDuDb+Pal96QwRUau4X0mhFkqLzlqMP8gQhOT8769tGdMJdG+o1uJ0Ciuf cvwXhEXmKYYQA5un8Jf6A== X-UI-Out-Filterresults: notjunk:1;V03:K0:XS2ccv3wu/o=:2nwdiE0Mqxh73E6WsmWwOC YbtO593XCQTHL8YU5x4mWRWll0M9AkgJH9DmVyS4O2BXdEoWicKx5+MEYR3dGvZ7cKx1xyS9w p+iBtKCTzALUo3xD2ANoaqRc1a0SbHStpiwIeII5iyHwv06RomUzZgr48/9isQf7HyVIHrxpY No8d2Fz+ZneZMpGyoZvAIcJ7TU3tVZbetcv9ywPLU0X0jm0R199lMn5ON3wAWFQDpfnaf5aez Qg70UAzCClDFb3+O9UU/NFTuAW79qz4Xs/tqDzbDi1THcaaXPBaxAEwwmdf8v3tmpaOffL59q 08vujnFk/Ro1CpdmY7ZrnbxNJh9CHfeE3bRp0PrAnrbOkK0ABTy8Ugf6qyTGYKEe84uI3K94y BEoO1IAQDfCtGiyqiSdsMuUoMYXaD8ISly87TM3jDbsFFJGAUK/NBgt3T2kOX/X4Q0Ha2Spy2 EZWUz99na2ZnjeEFu7xEhImkMv/7WZAQP69smXksev6UBseHKqmI9gS5ddijkMk4N0Z6zvweY Tz8neYrmqjWNGZyt9Gu1KL67EA1F3y3rWn8esmGaTXwAfGIltVnF5bom2VQ+zzGQgWU+xa8Ox /pRtxoQb8g9qAejgppZ/0VZgFjeRgfiuhb4R4Hrn2PE30VHTasy1RZJzjTh0WLSAjRQV6E28X tEYABeHG61ByFIvcSaTH80ZJmvQmkiqn7FFFtU3c/1XEbVMWqW00NwKumI2Y5L4lFumUQVz6l QAcu/8wNVc9uA4mSu4e8XqbQRGvEXl9TO/tnkToweJiXuHYhTAE2iYmaKUdyLJ4HtG8PC2bc 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:217302 Archived-At: > 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. I'm not sure I follow. What is the purpose of "the redisplay is forced after each fit-window-to-buffer execution"? If you want a new mode line height to be taken into account by 'fit-window-to-buffer', you probably should do any such redisplay _before_ executing 'fit-window-to-buffer'. Or what am I missing? martin