From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#37609: Tool-bar-mode grows the frame's height Date: Wed, 05 May 2021 00:42:40 +0300 Organization: LINKOV.NET Message-ID: <87y2cub2gf.fsf@mail.linkov.net> References: <87bluxihw0.fsf@mail.linkov.net> <507f8fc7-651a-12ea-20e6-bf2092ab5ed1@gmx.at> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="19861"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-linux-gnu) Cc: 37609@debbugs.gnu.org To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue May 04 23:46:25 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 1le2s4-00052D-Bd for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 04 May 2021 23:46:24 +0200 Original-Received: from localhost ([::1]:38162 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1le2s2-0008Le-Fl for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 04 May 2021 17:46:22 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:48684) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1le2ri-0008LO-Be for bug-gnu-emacs@gnu.org; Tue, 04 May 2021 17:46:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:44085) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1le2rh-0005it-Sg for bug-gnu-emacs@gnu.org; Tue, 04 May 2021 17:46:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1le2rh-0000aU-PI for bug-gnu-emacs@gnu.org; Tue, 04 May 2021 17:46:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 04 May 2021 21:46:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 37609 X-GNU-PR-Package: emacs Original-Received: via spool by 37609-submit@debbugs.gnu.org id=B37609.16201647542249 (code B ref 37609); Tue, 04 May 2021 21:46:01 +0000 Original-Received: (at 37609) by debbugs.gnu.org; 4 May 2021 21:45:54 +0000 Original-Received: from localhost ([127.0.0.1]:55631 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1le2ra-0000aD-9M for submit@debbugs.gnu.org; Tue, 04 May 2021 17:45:54 -0400 Original-Received: from relay3-d.mail.gandi.net ([217.70.183.195]:54871) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1le2rZ-0000Zv-1v for 37609@debbugs.gnu.org; Tue, 04 May 2021 17:45:53 -0400 X-Originating-IP: 91.129.102.166 Original-Received: from mail.gandi.net (m91-129-102-166.cust.tele2.ee [91.129.102.166]) (Authenticated sender: juri@linkov.net) by relay3-d.mail.gandi.net (Postfix) with ESMTPSA id EB8E760004; Tue, 4 May 2021 21:45:45 +0000 (UTC) In-Reply-To: <507f8fc7-651a-12ea-20e6-bf2092ab5ed1@gmx.at> (martin rudalics's message of "Tue, 4 May 2021 11:15:58 +0200") 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:205650 Archived-At: > Revisiting after some recent changes: > >> emacs -Q -f tool-bar-mode >> >> that disables tool-bar-mode before it's displayed for the first time, >> and evaluating >> >> (let ((initial (assq 'outer-size (frame-geometry)))) >> (tool-bar-mode 1) >> (tool-bar-mode 0) >> (list (assq 'outer-size (frame-geometry)) initial)) >> >> => ((outer-size 680 . 693) (outer-size 680 . 676)) >> >> indicates growing of the frame's height. > > Here I get with a current Lucid (I suppose you will encounter troubles > building with Motif these days) build > > ((outer-size 764 . 702) (outer-size 764 . 702)) > > whereas on Emacs 27 this was indeed > > ((outer-size 764 . 720) (outer-size 764 . 702)) > > Can you please check again? Now the frame's height doesn't grow but shrinks on GTK: ((outer-size 694 . 690) (outer-size 694 . 738)) >> OTOH, in a new session again with emacs -Q -f tool-bar-mode >> >> (progn >> (tool-bar-mode 1) >> (assq 'outer-size (frame-geometry))) >> >> => (outer-size 680 . 693) > > This gets me > > (outer-size 764 . 720) (outer-size 694 . 690) > but evaluating > > (assq 'outer-size (frame-geometry)) > > once more (it takes time to relate such changes to `frame-geometry') now > gives > > (outer-size 764 . 738) (outer-size 694 . 738) > which should yield the same value of (frame-height) as before (please > check). (frame-height) 36 > On Emacs 27 this was botched because the outer size changed to > > (outer-size 764 . 720) > > only and the frame height dropped from 36 to 35 lines. > >> (progn >> (tool-bar-mode 0) >> (assq 'outer-size (frame-geometry))) >> >> => (outer-size 680 . 693) > > This now gets me > > (outer-size 764 . 702) > > as expected. (outer-size 694 . 690) >> It's strange that the results are the same because visually >> the frame's height grows. > So please have one more look into this issue. Do you think now it's improved?