GNU bug report logs - #23966
25.1.50; Frame resizing due to tool bar + Gnus

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: Stephen Berman <stephen.berman@HIDDEN>; dated Wed, 13 Jul 2016 12:17:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at 23966 <at> debbugs.gnu.org:


Received: (at 23966) by debbugs.gnu.org; 12 Apr 2018 15:01:50 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Apr 12 11:01:50 2018
Received: from localhost ([127.0.0.1]:48061 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1f6djS-00051j-59
	for submit <at> debbugs.gnu.org; Thu, 12 Apr 2018 11:01:50 -0400
Received: from hermes.netfonds.no ([80.91.224.195]:37411)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <larsi@HIDDEN>) id 1f6djQ-0004zv-DG
 for 23966 <at> debbugs.gnu.org; Thu, 12 Apr 2018 11:01:48 -0400
Received: from 46.67.12.60.tmi.telenormobil.no ([46.67.12.60] helo=corrigan)
 by hermes.netfonds.no with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <larsi@HIDDEN>)
 id 1f6djJ-0003Jt-N0; Thu, 12 Apr 2018 17:01:47 +0200
Received: from larsi by corrigan with local (Exim 4.89)
 (envelope-from <larsi@HIDDEN>)
 id 1f6djD-0004ks-UR; Thu, 12 Apr 2018 17:01:35 +0200
From: Lars Ingebrigtsen <larsi@HIDDEN>
To: Stephen Berman <stephen.berman@HIDDEN>
Subject: Re: bug#23966: 25.1.50; Frame resizing due to tool bar + Gnus
References: <87vb09u40u.fsf@HIDDEN> <57867BB6.1020601@HIDDEN>
 <87r3axtkcf.fsf@HIDDEN> <578754F3.9060800@HIDDEN>
 <87a8hkpmq8.fsf@HIDDEN> <5787CCF5.3000404@HIDDEN>
 <87eg6wghgl.fsf@HIDDEN>
Date: Thu, 12 Apr 2018 17:01:35 +0200
In-Reply-To: <87eg6wghgl.fsf@HIDDEN> (Stephen Berman's message of "Thu, 14
 Jul 2016 21:14:34 +0200")
Message-ID: <874lkgtqnk.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 23966
Cc: martin rudalics <rudalics@HIDDEN>, 23966 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Stephen Berman <stephen.berman@HIDDEN> writes:

>> suppose that just enabling =E2=80=98tool-bar-mode=E2=80=99 is not suffic=
ient to make a
>> gnus tool bar once gnus has started.  Maybe this deficiency is inherent
>> to =E2=80=98tool-bar-mode=E2=80=99 itself.  But it would be interesting =
to find out
>> who's responsible for making such small (8 pixels in your, 35 pixels in
>> my case) tool bars in the first place.
>
> Indeed.

Do you still see this on Emacs master now?  There have been quite a few
pixel-sizing fixes applied to Emacs over the past year...

--=20
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#23966; Package emacs. Full text available.

Message received at 23966 <at> debbugs.gnu.org:


Received: (at 23966) by debbugs.gnu.org; 14 Jul 2016 19:14:44 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Jul 14 15:14:44 2016
Received: from localhost ([127.0.0.1]:51754 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1bNm5s-00040o-1L
	for submit <at> debbugs.gnu.org; Thu, 14 Jul 2016 15:14:44 -0400
Received: from mout.gmx.net ([212.227.15.19]:59210)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <stephen.berman@HIDDEN>) id 1bNm5q-00040Z-Dt
 for 23966 <at> debbugs.gnu.org; Thu, 14 Jul 2016 15:14:42 -0400
Received: from rosalinde ([89.245.72.63]) by mail.gmx.com (mrgmx002) with
 ESMTPSA (Nemesis) id 0MS5Dm-1bpjNJ3WOo-00TCHu; Thu, 14 Jul 2016 21:14:36
 +0200
From: Stephen Berman <stephen.berman@HIDDEN>
To: martin rudalics <rudalics@HIDDEN>
Subject: Re: bug#23966: 25.1.50; Frame resizing due to tool bar + Gnus
References: <87vb09u40u.fsf@HIDDEN> <57867BB6.1020601@HIDDEN>
 <87r3axtkcf.fsf@HIDDEN> <578754F3.9060800@HIDDEN>
 <87a8hkpmq8.fsf@HIDDEN> <5787CCF5.3000404@HIDDEN>
Date: Thu, 14 Jul 2016 21:14:34 +0200
In-Reply-To: <5787CCF5.3000404@HIDDEN> (martin rudalics's message of "Thu, 14
 Jul 2016 19:33:41 +0200")
Message-ID: <87eg6wghgl.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Provags-ID: V03:K0:Xr2ut/jlMwkqYuuZeorE6HLBT+BuD9entOFeJGurmg+M+J7Drfi
 qXAnk/FydDWYLilpsfeIFm25JDrDxlkyb7dkEqSBJ3XMfPX+fdKPCNJF/HDJT6tyZn3+Z5R
 sDjLY84lxm/ce1IwMaqbDMhfcOyrbV3ug8rvadMBGTBrJ2qnJG8ycwIya0UEZnhU3BMuovK
 0HsJhs6A+MdRkhTIFpZOQ==
X-UI-Out-Filterresults: notjunk:1;V01:K0:HnRQSdFH9Xs=:RfSOl3dlPTVXTwk23g0w4q
 i9RGqJKrGcv4riUAIKcAtSbmm6wOhpqDUTT2dy87yIEvs/TWhp0n/a9fDD8AvS9hs0GC3hDVP
 EO3MNWi2iGIfhq0PSnCmCo+uaCF4oczNfhizOvEhYDNkFG8bFnXe3+LOYrBqsHshdngc9pLxu
 caRturranRg7kfwylTQ3Z/tLlPXaQayM6q+K+vg3ePJhDgQPfYvUsQVpqLdpa1PvBcl8Oyt+2
 H38KM11G1R5Vgoqg9lPTaGWtC/I5Mkz0dxXxFJ+/kSoHviR3cZ9MmN6dtbFkd10fZJDmuQpeI
 2RGq7xPN2YPBMVoeyXcK/Ecnuyh26vB5C7Xc9TFqMvMeGUKxiFH5TO3xsiZYGfjJicbukQPFS
 sQmH8MPAFcZSKc/UGcImwUNg5NUtcsWqHdVqOxBgUN6BCjWr+Qh3ebdXBupffIobZB3+DIKMJ
 AUiw7/EeyfUeo0X1sOFcLjGPro8DWDi8qLWpLTzHCo5s7Wnp3rPF1CLpRhpmOlUuIP5OUx4SO
 163PUSmkjw7LoM0GPT1NJHQml4xDn18c+D0Wsd7xgW40yZdjNK6pBLu52QvNW9RqfK4VxqZpb
 s/Fhq8SmsUUxCuRI7R0kntxLYCoKXEuK5/uFhKoruwQF2HXDElaRQa+/SMhxdBVKXWKJXVcw+
 ulJqRN9B1IAAGp5cdX7KySmTqVCtCR7WU+31MQT5YHCgcKFG0hh7w03E3UZjt3FTwx/0IgXpO
 z/8HWSEo2OLoVgY3IzgFhuNVGK7P5wcHxSga3HRccS29suX294TsZ2Cgnjn5EgSQ7Xoq9YIfy
 NLF8mZ5
X-Spam-Score: -2.0 (--)
X-Debbugs-Envelope-To: 23966
Cc: 23966 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.0 (--)

On Thu, 14 Jul 2016 19:33:41 +0200 martin rudalics <rudalics@HIDDEN> wrote:

>>> =E2=80=98frame-height=E2=80=99 is not necessarily a reliable reflection=
 of what you see
>>> on screen.
>>
>> Why not?
>
> Because of rounding.  Tool bar, menu bar and scroll bars do not have
> necessarily sizes that are multiples of a frame's default character
> size.  And often you're losing pixels when the frame gets maximized or
> =E2=80=98frame-resize-pixelwise=E2=80=99 is non-nil during resizing.
>
>> What's more reliable?
>
> Everything that counts in pixels like =E2=80=98frame-pixel-height=E2=80=
=99.

Thanks.

>>> What do you get with my modifications?
>>
>> On emacs-25 with -Q and frame-resize-pixelwise nil:
> [...]
>> Other buffer; frame pixel height: 608  toolbar height: 53
> [...]
>>
>> On master with -Q and frame-resize-pixelwise nil the results were the
>> same except for the third to last line:
>>
>> Other buffer; frame pixel height: 608  toolbar height: 45
>
> Not here.  I get 648 and 44 in both cases.
>
>> On emacs-25 with -Q frame-resize-pixelwise t:
>>
>> Emacs started; frame pixel height: 576  toolbar height: 53
> [...]
>> Final; frame pixel height: 666  toolbar height: 53
>
> So your frame has grown by 90 pixels.  Remarkable.  BTW setting
> =E2=80=98frame-inhibit-implied-resize=E2=80=99 to t would avoid that.

Ah, indeed.  I didn't know about that variable, thanks.

> The problem is not GTK specific.  Lucid and Motif behave similarly.  I

Interesting; I had suspected it was just a GTK issue.

> suppose that just enabling =E2=80=98tool-bar-mode=E2=80=99 is not suffici=
ent to make a
> gnus tool bar once gnus has started.  Maybe this deficiency is inherent
> to =E2=80=98tool-bar-mode=E2=80=99 itself.  But it would be interesting t=
o find out
> who's responsible for making such small (8 pixels in your, 35 pixels in
> my case) tool bars in the first place.

Indeed.

Steve Berman




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#23966; Package emacs. Full text available.

Message received at 23966 <at> debbugs.gnu.org:


Received: (at 23966) by debbugs.gnu.org; 14 Jul 2016 17:33:50 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Jul 14 13:33:50 2016
Received: from localhost ([127.0.0.1]:51707 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1bNkWE-0001Rx-E2
	for submit <at> debbugs.gnu.org; Thu, 14 Jul 2016 13:33:50 -0400
Received: from mout.gmx.net ([212.227.15.15]:61962)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <rudalics@HIDDEN>) id 1bNkWD-0001Rj-0h
 for 23966 <at> debbugs.gnu.org; Thu, 14 Jul 2016 13:33:49 -0400
Received: from [192.168.1.100] ([212.95.7.23]) by mail.gmx.com (mrgmx003) with
 ESMTPSA (Nemesis) id 0M86jp-1bA5Pb0xWb-00vgBH;
 Thu, 14 Jul 2016 19:33:42 +0200
Message-ID: <5787CCF5.3000404@HIDDEN>
Date: Thu, 14 Jul 2016 19:33:41 +0200
From: martin rudalics <rudalics@HIDDEN>
MIME-Version: 1.0
To: Stephen Berman <stephen.berman@HIDDEN>
Subject: Re: bug#23966: 25.1.50; Frame resizing due to tool bar + Gnus
References: <87vb09u40u.fsf@HIDDEN>
 <57867BB6.1020601@HIDDEN>	<87r3axtkcf.fsf@HIDDEN> <578754F3.9060800@HIDDEN>
 <87a8hkpmq8.fsf@HIDDEN>
In-Reply-To: <87a8hkpmq8.fsf@HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: quoted-printable
X-Provags-ID: V03:K0:0THd2luiL3Y+lgaJDDSRkrPtt9RzQC6KUw35CYfJwQPydVJj/ww
 7dOfjFVcpV1+IHZXG83YwO/4lMfqCwo/22QCyh1hHIjqcW2SwAm1oG8uxN9Zz9PVZMcSliU
 4eZv5MgVIhZ1N+Uh/ad0zVS1kOJ6tFKxp4rM6195575jyXBn8OKr3thGppnSIm7e/k+Cj5e
 CSgDrFZvD6V/eSVK+9Lpg==
X-UI-Out-Filterresults: notjunk:1;V01:K0:t/4vvIfdQ4s=:emPPKU5aOh0H63WZWN9Q5L
 WpGtTkwnMvU5MJxcG2KeH1sbIsGf+F1IWqW4DF4P7DXeKUJFE3TdM4/h/OD5y6K+7Vf8T8iWh
 Ma+63aR1/7Zjn3CrXMYZ2qlWw3p+wElC31m6XMsJCMwh3OwZrReMyHTiovkx5a8K6pVszGUpa
 KUkDZ2zSTsmlhAibAJATpYnjEXyG6Z9g/raWOCAtvE47PtURDIeDMWTalOpSVCFFPj76aXc9k
 XDMAJx4PSbl5x5Jr2BABr+jCCcdtFkE4nb1lJefDenzKOfgLWPwtTYLlb9blp0cMHgIWPOtQc
 EZlbgWl0/Z/heDNqyrcOJkuYKvYVZa9Yw0JRYJlfQljvQHmYz1ci/jfEf7VXcIVY8Je27mt2w
 SrtCR5W67gTBw9yJRCiJOd55ZdAylTLd7l27oMgSTR6zeIJ8ATmgjNEdWUh58B3aD9SWwdMo4
 ym48HarMn/qNAZGkWC9yKsGNNCMR8r4vsP1V66GMULaKPo8+5IyXRde8DTY3Z96bSQ81YaGUA
 eI4m/TBpkw949RFW4BqhkOyeGGLh5uXUQ4Oj2BZnavzdmC/cHiOSE6aVrzJHhFQx662XVystm
 FqN7Ij4ZvC9p6g87+PgHgi9CqojiEy+ATRQbhOpb/DQMzBFFxzIRERUrjXt7dxA7cXCo7/ZE8
 Z8KDOJRfgLbPcoxpUuxcAilw0nqf0TM0l0195Wkoh4nyAyEsq36JjrKLfdrM9iYDJykAAluzp
 qbtDElrmK3TXIFdCcZarQlN1HTfKmf3Ta7RnOeqUYdwMBiUWflS1wQkUr3Mblr0wsMdBC4VJw
 bEqgRwYq4zJ2h56T6pLJ2NXKPbB0w==
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 23966
Cc: 23966 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.7 (/)

 >> =E2=80=98frame-height=E2=80=99 is not necessarily a reliable reflecti=
on of what you see
 >> on screen.
 >
 > Why not?

Because of rounding.  Tool bar, menu bar and scroll bars do not have
necessarily sizes that are multiples of a frame's default character
size.  And often you're losing pixels when the frame gets maximized or
=E2=80=98frame-resize-pixelwise=E2=80=99 is non-nil during resizing.

 > What's more reliable?

Everything that counts in pixels like =E2=80=98frame-pixel-height=E2=80=99=
=2E

 >> ... in an emacs -Q of the release version I get
 >
 > I assume you mean from emacs-25?

Yes.

 > With 24.5 I get "Symbol's function
 > definition is void: frame-geometry".

Indeed.

 >> What do you get with my modifications?
 >
 > On emacs-25 with -Q and frame-resize-pixelwise nil:
[...]
 > Other buffer; frame pixel height: 608  toolbar height: 53
[...]
 >
 > On master with -Q and frame-resize-pixelwise nil the results were the
 > same except for the third to last line:
 >
 > Other buffer; frame pixel height: 608  toolbar height: 45

Not here.  I get 648 and 44 in both cases.

 > On emacs-25 with -Q frame-resize-pixelwise t:
 >
 > Emacs started; frame pixel height: 576  toolbar height: 53
[...]
 > Final; frame pixel height: 666  toolbar height: 53

So your frame has grown by 90 pixels.  Remarkable.  BTW setting
=E2=80=98frame-inhibit-implied-resize=E2=80=99 to t would avoid that.

 > On master with -Q and frame-resize-pixelwise t the results were the
 > same except for the last three lines:
 >
 > Other buffer; frame pixel height: 621  toolbar height: 45
 > Back to Summary buffer; frame pixel height: 658  toolbar height: 8
 > Final; frame pixel height: 658  toolbar height: 53

Here all lines are the same, again.

The problem is not GTK specific.  Lucid and Motif behave similarly.  I
suppose that just enabling =E2=80=98tool-bar-mode=E2=80=99 is not suffici=
ent to make a
gnus tool bar once gnus has started.  Maybe this deficiency is inherent
to =E2=80=98tool-bar-mode=E2=80=99 itself.  But it would be interesting t=
o find out
who's responsible for making such small (8 pixels in your, 35 pixels in
my case) tool bars in the first place.

martin





Information forwarded to bug-gnu-emacs@HIDDEN:
bug#23966; Package emacs. Full text available.

Message received at 23966 <at> debbugs.gnu.org:


Received: (at 23966) by debbugs.gnu.org; 14 Jul 2016 09:56:11 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Jul 14 05:56:11 2016
Received: from localhost ([127.0.0.1]:50553 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1bNdNL-0001UY-5O
	for submit <at> debbugs.gnu.org; Thu, 14 Jul 2016 05:56:11 -0400
Received: from mout.gmx.net ([212.227.17.22]:53007)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <stephen.berman@HIDDEN>) id 1bNdNI-0001UK-MY
 for 23966 <at> debbugs.gnu.org; Thu, 14 Jul 2016 05:56:09 -0400
Received: from rosalinde ([89.245.72.63]) by mail.gmx.com (mrgmx103) with
 ESMTPSA (Nemesis) id 0Lkwpt-1anCYn3oFp-00akqM; Thu, 14 Jul 2016 11:56:01
 +0200
From: Stephen Berman <stephen.berman@HIDDEN>
To: martin rudalics <rudalics@HIDDEN>
Subject: Re: bug#23966: 25.1.50; Frame resizing due to tool bar + Gnus
References: <87vb09u40u.fsf@HIDDEN> <57867BB6.1020601@HIDDEN>
 <87r3axtkcf.fsf@HIDDEN> <578754F3.9060800@HIDDEN>
Date: Thu, 14 Jul 2016 11:55:59 +0200
In-Reply-To: <578754F3.9060800@HIDDEN> (martin rudalics's message of "Thu, 14
 Jul 2016 11:01:39 +0200")
Message-ID: <87a8hkpmq8.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Provags-ID: V03:K0:wYDvp21wclCsVtBLeW/hS1226SA8oduSyN6g6wkPC3sY0i2lJzx
 2IuQ6lvv62w0Ym9N4harbJowCRw7922pmhxmwKcy4wHjJhlfEdWVgbl8N70A+VLzu//eOsG
 A86npNgL0ZDYEduVaZhR8WpVq8cgwLZZfQG06wyhyrvOWJ4Lnwa7f9975XnzsZpTWD1Y/PS
 yclAsJnJZfy1ry1Lqf3OA==
X-UI-Out-Filterresults: notjunk:1;V01:K0:tX7vWEqsSfU=:GgHIsxsj5Zh+OAm4ox4ZpI
 BOkiLw5/XqSWZ16WT9dJ01r1athnOW/TIOyzunP/TukLl0ZCGVwxjJjfiKCQb4Zf14SKtotyP
 6vU41P/HWEEwACGPj4ElyM73eUQdulzV7DoJjQOqn30/BJTURxbLbNK4agZSztORbFZ3RuymS
 uyOH9HSyxH5tT1KWILZiLM5/IY6RAnMVPx4fPun5yHXQGuXvRCmvWWj1XpagmnofvAxksiLIM
 8qeugwqCj8UtZtBbL0mUwS6lY/u7i4Q7Sc6KR0O6T032syDfW7KNmC9erFf4mW3UbI4DIvXAH
 UfD3/B5k9tD9cXAOj73wLGXDstQ3ps1lVEzZfBlxq/6L3xgRrKs9DPkil3soamghIk/qqpdK+
 npHf53Qr7i2UzrqEG2n3zcN7KUeYP0pVQzmSe+cOcOlQWSpwSlajesK+Pf1XHKANwArwUlShC
 nfQj5JBKNiobU/2S1GK0vlp8JpT+q0YMJeY+3BgIO7PuppTBbPxe9/SuWXEn5dxipcz7K9fpX
 449UtQ3nY0dZVYIH34RfCd4bDmoImWwHDc9/2W1mMzylEY/ipNrS52w7pEnsvhV9YfLHxryJX
 rROuJ/hzsS8SlZzHJw2sXnCNloW/9YGH8LHtmVbPXhHv/qylDbG8WZ8unBm7SmTybf5sxaEEd
 cDRYhBDOIYYmk2jOVjfUX5GHAl8Gqz1oRrB6B0CXRBEvfKCQ/6bPFGlEV3uWwVvb8kVHuZPwk
 sat8UZUKk7tXQe54xh15CETn9M2BR4BRx+CmdqVrx85IqERtWRyNGbv+sF4dc0R3wzp3TdLLS
 h2yHJjq
X-Spam-Score: -2.0 (--)
X-Debbugs-Envelope-To: 23966
Cc: 23966 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.0 (--)

On Thu, 14 Jul 2016 11:01:39 +0200 martin rudalics <rudalics@HIDDEN> wrote:

> =E2=80=98frame-height=E2=80=99 is not necessarily a reliable reflection o=
f what you see
> on screen.

Why not?  What's more reliable?

>> When the tool bar was enabled in the Gnus Summary buffer, did you see it
>> displayed as I describe in the OP: an empty 8-pixel high strip?
>
> No.  I see a 35-pixel high strip.  With the following definitions
> adapted from yours
[...]
> and `eval-buffer' of these in an emacs -Q of the release version I get

I assume you mean from emacs-25?  With 24.5 I get "Symbol's function
definition is void: frame-geometry".

> Emacs started; frame pixel height: 648  toolbar height: 44
> Gnus started; frame pixel height: 648  toolbar height: 44
> Opening nnfolder server on archive...done
> No new newsgroups
> Checking new news...
> Reading active file via nnnil...done
> Checking new news...done
> No news is good news
> Opening nndoc server on /home/martin/tool-bar-Gnus-frame-bug...done
> Tool bar disabled; frame pixel height: 648  toolbar height: 0
> Entered Summary buffer; frame pixel height: 648  toolbar height: 0
> Tool bar enabled; frame pixel height: 657  toolbar height: 35
> Other buffer; frame pixel height: 648  toolbar height: 44
> Back to Summary buffer; frame pixel height: 657  toolbar height: 35
> Final; frame pixel height: 648  toolbar height: 44
> You can run the command =E2=80=98eval-buffer=E2=80=99 with M-x ev-b RET
> Final; frame pixel height: 648  toolbar height: 44
>
>
> So the "empty strips" here have a height of 35 pixels while the "normal"
> toolbar has 44 pixels.  BTW, before getting the "Tool bar enabled"
> message I briefly see some toolbar contents flashing and getting erased
> immediately thereafter.

I didn't consciously notice that before, but now that you mention it, I
do see that too.

> The entire frame height doesn't change here probably due to rounding and
> size hints.  However, when I set `frame-resize-pixelwise' to t it
> changes as follows:
>
>
> Emacs started; frame pixel height: 648  toolbar height: 44
> Gnus started; frame pixel height: 648  toolbar height: 44
> Opening nnfolder server on archive...done
> No new newsgroups
> Checking new news...
> Reading active file via nnnil...done
> Checking new news...done
> No news is good news
> Opening nndoc server on /home/martin/tool-bar-Gnus-frame-bug...done
> Tool bar disabled; frame pixel height: 648  toolbar height: 0
> Entered Summary buffer; frame pixel height: 648  toolbar height: 0
> Tool bar enabled; frame pixel height: 657  toolbar height: 35
> Other buffer; frame pixel height: 657  toolbar height: 44
> Back to Summary buffer; frame pixel height: 666  toolbar height: 35
> Final; frame pixel height: 666  toolbar height: 44
>
>
> So the pixel height of my frame has increased by 18 (2 times 9 pixels
> from the difference between 44 and 35).
>
> What do you get with my modifications?

On emacs-25 with -Q and frame-resize-pixelwise nil:

Emacs started; frame pixel height: 576  toolbar height: 53
Gnus started; frame pixel height: 576  toolbar height: 53
Reading /home/steve/.newsrc.eld...
Opening nnfolder server on archive...done
No new newsgroups
Checking new news...
Reading active file via nnnil...done
Reading active file from archive via nnfolder...done
Reading active file via nndraft...done
Checking new news...done
Opening nndoc server on /home/steve/tool-bar-Gnus-frame-bug...done
Tool bar disabled; frame pixel height: 576  toolbar height: 0
Entered Summary buffer; frame pixel height: 576  toolbar height: 0
Tool bar enabled; frame pixel height: 621  toolbar height: 8
Other buffer; frame pixel height: 608  toolbar height: 53
Back to Summary buffer; frame pixel height: 645  toolbar height: 8
Final; frame pixel height: 640  toolbar height: 53

On master with -Q and frame-resize-pixelwise nil the results were the
same except for the third to last line:

Other buffer; frame pixel height: 608  toolbar height: 45

On emacs-25 with -Q frame-resize-pixelwise t:

Emacs started; frame pixel height: 576  toolbar height: 53
Gnus started; frame pixel height: 576  toolbar height: 53
Reading /home/steve/.newsrc.eld...
Opening nnfolder server on archive...done
No new newsgroups
Checking new news...
Reading active file via nnnil...done
Reading active file from archive via nnfolder...done
Reading active file via nndraft...done
Checking new news...done
Opening nndoc server on /home/steve/tool-bar-Gnus-frame-bug...done
Tool bar disabled; frame pixel height: 576  toolbar height: 0
Entered Summary buffer; frame pixel height: 576  toolbar height: 0
Tool bar enabled; frame pixel height: 621  toolbar height: 8
Other buffer; frame pixel height: 621  toolbar height: 53
Back to Summary buffer; frame pixel height: 666  toolbar height: 8
Final; frame pixel height: 666  toolbar height: 53

On master with -Q and frame-resize-pixelwise t the results were the
same except for the last three lines:

Other buffer; frame pixel height: 621  toolbar height: 45
Back to Summary buffer; frame pixel height: 658  toolbar height: 8
Final; frame pixel height: 658  toolbar height: 53

Steve Berman




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#23966; Package emacs. Full text available.

Message received at 23966 <at> debbugs.gnu.org:


Received: (at 23966) by debbugs.gnu.org; 14 Jul 2016 09:01:49 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Jul 14 05:01:49 2016
Received: from localhost ([127.0.0.1]:50519 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1bNcWj-0008S9-D0
	for submit <at> debbugs.gnu.org; Thu, 14 Jul 2016 05:01:49 -0400
Received: from mout.gmx.net ([212.227.15.19]:50159)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <rudalics@HIDDEN>) id 1bNcWg-0008Rq-PI
 for 23966 <at> debbugs.gnu.org; Thu, 14 Jul 2016 05:01:47 -0400
Received: from [192.168.1.100] ([212.95.7.23]) by mail.gmx.com (mrgmx002) with
 ESMTPSA (Nemesis) id 0M3igT-1b5ocn1zFp-00rDIj;
 Thu, 14 Jul 2016 11:01:40 +0200
Message-ID: <578754F3.9060800@HIDDEN>
Date: Thu, 14 Jul 2016 11:01:39 +0200
From: martin rudalics <rudalics@HIDDEN>
MIME-Version: 1.0
To: Stephen Berman <stephen.berman@HIDDEN>
Subject: Re: bug#23966: 25.1.50; Frame resizing due to tool bar + Gnus
References: <87vb09u40u.fsf@HIDDEN> <57867BB6.1020601@HIDDEN>
 <87r3axtkcf.fsf@HIDDEN>
In-Reply-To: <87r3axtkcf.fsf@HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: quoted-printable
X-Provags-ID: V03:K0:Pa9/FQGkIkRbKgYrTFrOKbgXm3a3WpSm2eTyxdN2rUcsXZ4xO44
 /qrHc7CI1AuJryj0tZSY5T4AIrVXpVIdHsr3YiJg0tAeIs+SYa36TxnVuxL4iunte7cGNs9
 kloOcpfcAkdMDgyf9SOCzG93ldSEGAgXZSPULDQkLv5MKh1MgPXeyRyLBS87LJ8jdjRzEpL
 UvR2qZA0b+a6xt35yDtJQ==
X-UI-Out-Filterresults: notjunk:1;V01:K0:uxrizLxTsEA=:mC+RraiAa8s+D/ZjjlmbE9
 86hZVbxAu/i4CnOhef7o/QzyQEXx3zSpSY54XylTNvvR+h72xDytdIY1B/R+lQDwJ99S1Otuw
 S+EHpZ++t8S2WHA+skENkX3AEJEsY2mntcYJbIIZsaprFmYTq77bygHosnDQAgfa0BqtW+ErI
 PqZSvBHnTEwOJDD9dgHz+onOqVqUrAT9VAEwIeyXgIBAPmeGxbmYeR+ozZTu25bjjNqEKxKDj
 3zT/p3j4oyrpVHRAnWKXRbO2iC4gsk6wQT+VH+mYKm21jQzqTYvAW1jHA9BNniiNiHAQaX1ey
 9Np6IzT1WiIFFWJ2K2hQ3D5jbjIA9ZpEIfcNP9PL1Nwd3Y3J+z9YWEnp/yauGlPBiCMu0zu4s
 CYhdCQTllXrMCXNFZwObPJ+sqMpEkn4YafoB2tujlKNbg1RY9pVncsbTIqgF+ijgSnRoPC9ne
 HsTywEnTm/A92kytvH433vs2HlqRLGlSlgETp8HNHvZG7O/fP8orgcP4JxX3b8ScGLzLGouv2
 otnhevCasU9T/X7gp8ozropFm85iu+CYc8ZDTB1YnLEEUC9V9Mlr5jEcuMm0SrFTw8j3wBmFW
 V4nxiHc7eEGm5dyw0H5ogMu2YYS9B57b1CTvmXHvWhjX9dYPs95mt4P6pe7ThpMi7ZN7SaXGm
 4KYnv+Jf59J3sK968XQBmaiajYPNF3PZBh07WVophoH7TMpajwvK4OUUvePBSC5LnGKsP/7Si
 vF8r6WQ+th3LUaQnbkA9it45XBwvLYkBPnAVYYNhMCd+LFdjfLkc67cXpiEThCXhadDwp0hgT
 UeRQX9L6B01/GSZx4yZBE5FO4hDTw==
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 23966
Cc: 23966 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.7 (/)

 > I did in fact see this lack of height change, but only once among the
 > probably dozens of times I executed that code before filing the bug
 > report; I was surprised but since I couldn't reproduce it, I thought i=
t
 > was a fluke.  All the other times, *Messages* showed this with emacs-2=
5
 > and master:
 >
 > Emacs started; frame height: 36
 > Gnus started; frame height: 36
 > Reading /home/steve/.newsrc.eld...
 > Opening nnfolder server on archive...done
 > No new newsgroups
 > Checking new news...
 > Reading active file via nnnil...done
 > Reading active file from archive via nnfolder...done
 > Reading active file via nndraft...done
 > Checking new news...done
 > Opening nndoc server on /home/steve/tool-bar-Gnus-frame-bug...done
 > Tool bar disabled; frame height: 36
 > Entered Summary buffer; frame height: 36
 > Tool bar enabled; frame height: 36
 > Other buffer; frame height: 38
 > Back to Summary buffer; frame height: 38

=E2=80=98frame-height=E2=80=99 is not necessarily a reliable reflection o=
f what you see
on screen.

 > With 24.5 the frame height numbers were 35 (five times) followed by 37=

 > (twice).
 >
 > When the tool bar was enabled in the Gnus Summary buffer, did you see =
it
 > displayed as I describe in the OP: an empty 8-pixel high strip?

No.  I see a 35-pixel high strip.  With the following definitions
adapted from yours


(defun gtk-tool-bar-height (&optional frame)
   (let* ((frame (window-normalize-frame frame))
	 (geometry (frame-geometry frame)))
     (cddr (assq 'tool-bar-size geometry))))

(let ((testfile "~/tool-bar-Gnus-frame-bug"))
   (with-temp-file testfile
     (insert "From nobody Wed Jul 13 13:55:54 CEST 2016
To: stephen.berman@HIDDEN
Subject: bug test message
From: Stephen Berman <stephen.berman@HIDDEN>
Date: Wed Jul 13 13:55:54 CEST 2016
Message-ID: <87twg9y16a.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=3Dus-ascii
Lines: 1

test
"))
   (sit-for 0.1) (message "Emacs started; frame pixel height: %d  toolbar=
 height: %d" (frame-pixel-height) (gtk-tool-bar-height))
   (require 'gnus)
   (let ((gnus-select-method '(nnnil "")))
     (sit-for 0.1) (message "Gnus started; frame pixel height: %d  toolba=
r height: %d" (frame-pixel-height) (gtk-tool-bar-height))
     (gnus-1)
     (gnus-group-make-doc-group testfile 'mbox)
     (tool-bar-mode -1)
     (sit-for 0.1) (message "Tool bar disabled; frame pixel height: %d  t=
oolbar height: %d" (frame-pixel-height) (gtk-tool-bar-height))
     (sit-for 1)
     (gnus-group-select-group)
     (sit-for 0.1) (message "Entered Summary buffer; frame pixel height: =
%d  toolbar height: %d" (frame-pixel-height) (gtk-tool-bar-height))
     (sit-for 1)
     ;; Uncommenting these three lines and commenting out the same three
     ;; lines above results in a normal tool bar and no resizing.
     ;; (tool-bar-mode -1)
     ;; (sit-for 0.1) (message "Tool bar disabled; frame pixel height: %d=
  toolbar height: %d" (frame-pixel-height) (gtk-tool-bar-height))
     ;; (sit-for 1)
     (tool-bar-mode 1)
     (sit-for 0.1) (message "Tool bar enabled; frame pixel height: %d  to=
olbar height: %d" (frame-pixel-height) (gtk-tool-bar-height))
     (sit-for 3)
     (switch-to-buffer (other-buffer))
     (sit-for 0.1) (message "Other buffer; frame pixel height: %d  toolba=
r height: %d" (frame-pixel-height) (gtk-tool-bar-height))
     (sit-for 3)
     (switch-to-buffer (other-buffer))
     (sit-for 0.1) (message "Back to Summary buffer; frame pixel height: =
%d  toolbar height: %d" (frame-pixel-height) (gtk-tool-bar-height)))
     (sit-for 3)
   ;; Suppress further messages and clean up in order to repeat the test
   ;; simply by evaluating this sexp.
   (let (message-log-max)
     (gnus-summary-exit-no-update t)
     (goto-char (point-min))
     (gnus-group-kill-group)
     (let ((gnus-expert-user t))
       (gnus-group-quit))
     (delete-file testfile)
     (when (file-exists-p (gnus-dribble-file-name))
       (delete-file (gnus-dribble-file-name))))
   (sit-for 0.1) (message "Final; frame pixel height: %d  toolbar height:=
 %d" (frame-pixel-height) (gtk-tool-bar-height))
   (sit-for 5)
   (switch-to-buffer "*Messages*"))


and `eval-buffer' of these in an emacs -Q of the release version I get


Emacs started; frame pixel height: 648  toolbar height: 44
Gnus started; frame pixel height: 648  toolbar height: 44
Opening nnfolder server on archive...done
No new newsgroups
Checking new news...
Reading active file via nnnil...done
Checking new news...done
No news is good news
Opening nndoc server on /home/martin/tool-bar-Gnus-frame-bug...done
Tool bar disabled; frame pixel height: 648  toolbar height: 0
Entered Summary buffer; frame pixel height: 648  toolbar height: 0
Tool bar enabled; frame pixel height: 657  toolbar height: 35
Other buffer; frame pixel height: 648  toolbar height: 44
Back to Summary buffer; frame pixel height: 657  toolbar height: 35
Final; frame pixel height: 648  toolbar height: 44
You can run the command =E2=80=98eval-buffer=E2=80=99 with M-x ev-b RET
Final; frame pixel height: 648  toolbar height: 44


So the "empty strips" here have a height of 35 pixels while the "normal"
toolbar has 44 pixels.  BTW, before getting the "Tool bar enabled"
message I briefly see some toolbar contents flashing and getting erased
immediately thereafter.

The entire frame height doesn't change here probably due to rounding and
size hints.  However, when I set `frame-resize-pixelwise' to t it
changes as follows:


Emacs started; frame pixel height: 648  toolbar height: 44
Gnus started; frame pixel height: 648  toolbar height: 44
Opening nnfolder server on archive...done
No new newsgroups
Checking new news...
Reading active file via nnnil...done
Checking new news...done
No news is good news
Opening nndoc server on /home/martin/tool-bar-Gnus-frame-bug...done
Tool bar disabled; frame pixel height: 648  toolbar height: 0
Entered Summary buffer; frame pixel height: 648  toolbar height: 0
Tool bar enabled; frame pixel height: 657  toolbar height: 35
Other buffer; frame pixel height: 657  toolbar height: 44
Back to Summary buffer; frame pixel height: 666  toolbar height: 35
Final; frame pixel height: 666  toolbar height: 44


So the pixel height of my frame has increased by 18 (2 times 9 pixels
from the difference between 44 and 35).

What do you get with my modifications?

martin





Information forwarded to bug-gnu-emacs@HIDDEN:
bug#23966; Package emacs. Full text available.

Message received at 23966 <at> debbugs.gnu.org:


Received: (at 23966) by debbugs.gnu.org; 13 Jul 2016 19:21:45 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Jul 13 15:21:45 2016
Received: from localhost ([127.0.0.1]:50147 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1bNPj7-0003iE-DP
	for submit <at> debbugs.gnu.org; Wed, 13 Jul 2016 15:21:45 -0400
Received: from mout.gmx.net ([212.227.15.18]:56096)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <stephen.berman@HIDDEN>) id 1bNPj6-0003hz-97
 for 23966 <at> debbugs.gnu.org; Wed, 13 Jul 2016 15:21:44 -0400
Received: from rosalinde ([89.245.86.246]) by mail.gmx.com (mrgmx002) with
 ESMTPSA (Nemesis) id 0LjIel-1aouWU2iat-00dXX1; Wed, 13 Jul 2016 21:21:37
 +0200
From: Stephen Berman <stephen.berman@HIDDEN>
To: martin rudalics <rudalics@HIDDEN>
Subject: Re: bug#23966: 25.1.50; Frame resizing due to tool bar + Gnus
References: <87vb09u40u.fsf@HIDDEN> <57867BB6.1020601@HIDDEN>
Date: Wed, 13 Jul 2016 21:21:36 +0200
In-Reply-To: <57867BB6.1020601@HIDDEN> (martin rudalics's message of "Wed, 13
 Jul 2016 19:34:46 +0200")
Message-ID: <87r3axtkcf.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Provags-ID: V03:K0:EMPVKEuGrHqoAEXzIB35hcs946pQvPDnyGff4ViuZiWMFFS+sbe
 2H5Ip9jT0uxTiQ0h5tofTZ0KjgB4HWf3YNOoik2WBnmaBLunh9P2pdc7gHAw+yX7jQ1uxdt
 aZ4GD7c+rSx2GMOsuc3lJf9KrqlhA48EMZjAluFMS/iK8jC2Ho+7g1QQM31D55IXjrfENyd
 wdJRkAllPRd7wfLbCCL+A==
X-UI-Out-Filterresults: notjunk:1;V01:K0:TRJzxvGxphA=:WAAs0GgsD0O9+g/bbDkYoE
 7dEJ4AIsdZnQMosK/VLw2oMZn4si/R6A1jWQq9Eumx90RghIztCh+UNARmM8p4f7AggIzEHt0
 SnoGdt2HxxYDNg92MsGwpk3FR8n0wGMDhoK92yG8MAlxYks04HlYEntFiJRn9+I9enCL+9/De
 ynt/ut6Q1X7vP/ySg3g+QNbqzl9KPivC0a8QEzAtPJ66N9aoByNLLHTkNMD0EaKrabKL2voqE
 oZYKvDEoIlOcddrYavrFX2ONqidjWRLN3Cqssn1OC5jwaBubcAPTx+1nhtWskBu7KwiaNTyap
 8v5au/mWhfweLjM06+H5TLXmAfZwJSFdm09oGvIyxX9YEMjJlcQIjfPACP4D4A9yIOT2Gj7Dq
 Zb2a4ozmGMiJsEVyV4Pm6znWrlbnY0ud9UYuMEeGIaWgKOfqyj8IGzePYyPRgIpnGWJAyToFE
 GzT+ChhGaYtQb5gZjMrY4FFWWHwU95uOTu4bMCW4nxkSvQqSwi37dlpw2WRo0WJbD3OGBWoEP
 2vwvEAI50YJYkY45tNE8Z08KNjrEyO5+awqGKEcRJw1gDapvKDZYvCuSeAkzaN8wvA+XpQzRa
 fc6mAU9StiFoN9rCyHyPvA7Atx7jcCAO2URzk6WXRGlRaBfIlEpNPxYipNddc6gC1L4u7TJCG
 AZnkroZzgyczMS/Bn3lW7NLBTEKzlJX0e6FuK6l40Ic/CeRsyAKtdPDHTNAH+X83hhnPHO5do
 hd+H1KtOReEuIwqt448hZx4/KVNgLwra7d0MDfQL/hNRFQ6GVce3HPMnK1MNVh1C/9AdLUNF5
 nZhjVL3
X-Spam-Score: -2.0 (--)
X-Debbugs-Envelope-To: 23966
Cc: 23966 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.0 (--)

On Wed, 13 Jul 2016 19:34:46 +0200 martin rudalics <rudalics@HIDDEN> wrote:

>> To reproduce, start emacs with -Q and evaluate the following sexp in
>> *scratch*:
>
> Here this gets me the following text written to *Messages*:
>
> Emacs started; frame height: 36
> Gnus started; frame height: 36
> Opening nnfolder server on archive...done
> No new newsgroups
> Checking new news...
> Reading active file via nnnil...done
> Checking new news...done
> No news is good news
> Opening nndoc server on /home/martin/tool-bar-Gnus-frame-bug...done
> Tool bar disabled; frame height: 36
> Entered Summary buffer; frame height: 36
> Tool bar enabled; frame height: 36
> Other buffer; frame height: 36
> Back to Summary buffer; frame height: 36
>
> Tested with both release version and current master/trunk.  With GTK
> version 3.4.2 (IIRC).  Is this expected and/or what you get?  In any
> case, the frame has the same height before and after executing this
> form.

I did in fact see this lack of height change, but only once among the
probably dozens of times I executed that code before filing the bug
report; I was surprised but since I couldn't reproduce it, I thought it
was a fluke.  All the other times, *Messages* showed this with emacs-25
and master:

Emacs started; frame height: 36
Gnus started; frame height: 36
Reading /home/steve/.newsrc.eld...
Opening nnfolder server on archive...done
No new newsgroups
Checking new news...
Reading active file via nnnil...done
Reading active file from archive via nnfolder...done
Reading active file via nndraft...done
Checking new news...done
Opening nndoc server on /home/steve/tool-bar-Gnus-frame-bug...done
Tool bar disabled; frame height: 36
Entered Summary buffer; frame height: 36
Tool bar enabled; frame height: 36
Other buffer; frame height: 38
Back to Summary buffer; frame height: 38

With 24.5 the frame height numbers were 35 (five times) followed by 37
(twice).  

When the tool bar was enabled in the Gnus Summary buffer, did you see it
displayed as I describe in the OP: an empty 8-pixel high strip?

Steve Berman




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#23966; Package emacs. Full text available.

Message received at 23966 <at> debbugs.gnu.org:


Received: (at 23966) by debbugs.gnu.org; 13 Jul 2016 17:35:03 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Jul 13 13:35:03 2016
Received: from localhost ([127.0.0.1]:50098 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1bNO3r-0001A4-F8
	for submit <at> debbugs.gnu.org; Wed, 13 Jul 2016 13:35:03 -0400
Received: from mout.gmx.net ([212.227.17.22]:51989)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <rudalics@HIDDEN>) id 1bNO3p-00019Q-I1
 for 23966 <at> debbugs.gnu.org; Wed, 13 Jul 2016 13:35:01 -0400
Received: from [192.168.1.100] ([212.95.7.59]) by mail.gmx.com (mrgmx101) with
 ESMTPSA (Nemesis) id 0MZPer-1bgHqs2Sez-00LEug;
 Wed, 13 Jul 2016 19:34:55 +0200
Message-ID: <57867BB6.1020601@HIDDEN>
Date: Wed, 13 Jul 2016 19:34:46 +0200
From: martin rudalics <rudalics@HIDDEN>
MIME-Version: 1.0
To: Stephen Berman <stephen.berman@HIDDEN>, 23966 <at> debbugs.gnu.org
Subject: Re: bug#23966: 25.1.50; Frame resizing due to tool bar + Gnus
References: <87vb09u40u.fsf@HIDDEN>
In-Reply-To: <87vb09u40u.fsf@HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Provags-ID: V03:K0:kPHs0t2rjWoJxJAN9c1VyyU9fDwULKyGO2lMkJb384vItb2Qnat
 izTbRhLKUziH8JZpE/fYhKNUQ0kvFbmMlOtHSYdqcKMwRrDKV8SQPsl3GgMOw1BfHAw41fJ
 raxEvFtEu8pZg97EHiqCQaeASMO7MnFUMJChCT9K029IfX99y4qnDLeV7ydw/luAzA1tpfi
 lEqy3O89WoQrlLKqP1FRg==
X-UI-Out-Filterresults: notjunk:1;V01:K0:2YQRbo5/s4k=:C0bt4PrKykOde/2xktLQ+X
 Vk0CduOu61sYHg0q8ev8PVkd7P/zIVWlUL7R4axnxvFUwxxSONkxI/DGd2bcUvDNFNkcFVO7V
 HYR6+udcKTQQo7rJO5bp+1nhWkNlMApiSflncuk1dkBjkuzpdZRtfj2b5FgmplTjR732JTMlg
 c3+gGYj/YJs3nQeWg3pvdDuN91ynIWzXTsJAeUSj2SDOuTod8ERRp3IqLIJ7LkaU0CRDB/yd1
 vKf9X5ExjUjAgFAoV6a44Xw0SabCpJO4pEeRDRWaTFE6H3c5kxb/NQLs2NqxLhkwsjlUNN4ng
 arS4zv7PjGxU1c/OHD/fQqTWYLt7GFyKismG/blrrQ66fxL0L9ZVVhlrlRK7lB2hDNqpNKlIH
 GPOv409gpkyk8QaGkgGkTc++aBix+LmtPgdOEXIM7iTQSBeZm5kPSrQkgXOft6PE0G5eVwiLs
 +xJg5kk4UxlrHSosCE2DDy1pJRPE6cda7DakgUpBAy3d2daHYNf5YHkhPRjEj45GnGDngkSTV
 mowNhOEN62EYl7In6ok2K/vuwVpHf9oLnDp9ZjG/J2/4FKbwEBQLG7AfAc4RaE1xGlW9TOp9G
 txD/sA/ZJIACUUuF4ltgm2d++2CiVAvwFws8YxuTgZfeXbFfkvpzY29YKqEXqGO18uSJ3l5MJ
 AEAXm5d2dzmmmOx1d+h4xtrkBdvKjLyCAb2XuqqGGUh1I+EC68qRjzoORNcQXNq+ZbTb4/fM2
 Pdcg9bcVb8CzSUmRG8+VOlA+BD7etGHUBGR04NHS3XeVKdLqfrHdBE2n25Ptxr5XpfstR8YWy
 f+CHo9nXliJ3CnGJLqW06gYxfCBOQ==
X-Spam-Score: -0.1 (/)
X-Debbugs-Envelope-To: 23966
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.1 (/)

 > To reproduce, start emacs with -Q and evaluate the following sexp in
 > *scratch*:

Here this gets me the following text written to *Messages*:

Emacs started; frame height: 36
Gnus started; frame height: 36
Opening nnfolder server on archive...done
No new newsgroups
Checking new news...
Reading active file via nnnil...done
Checking new news...done
No news is good news
Opening nndoc server on /home/martin/tool-bar-Gnus-frame-bug...done
Tool bar disabled; frame height: 36
Entered Summary buffer; frame height: 36
Tool bar enabled; frame height: 36
Other buffer; frame height: 36
Back to Summary buffer; frame height: 36

Tested with both release version and current master/trunk.  With GTK
version 3.4.2 (IIRC).  Is this expected and/or what you get?  In any
case, the frame has the same height before and after executing this
form.

martin




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#23966; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 13 Jul 2016 12:16:54 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Jul 13 08:16:54 2016
Received: from localhost ([127.0.0.1]:49137 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1bNJ5y-0008B4-Ak
	for submit <at> debbugs.gnu.org; Wed, 13 Jul 2016 08:16:54 -0400
Received: from eggs.gnu.org ([208.118.235.92]:42663)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <stephen.berman@HIDDEN>) id 1bNJ5w-0008As-I4
 for submit <at> debbugs.gnu.org; Wed, 13 Jul 2016 08:16:52 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <stephen.berman@HIDDEN>) id 1bNJ5q-0003rh-3I
 for submit <at> debbugs.gnu.org; Wed, 13 Jul 2016 08:16:47 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM
 autolearn=disabled version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:44411)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <stephen.berman@HIDDEN>) id 1bNJ5q-0003rU-04
 for submit <at> debbugs.gnu.org; Wed, 13 Jul 2016 08:16:46 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:33625)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <stephen.berman@HIDDEN>) id 1bNJ5n-0007Lo-IO
 for bug-gnu-emacs@HIDDEN; Wed, 13 Jul 2016 08:16:44 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <stephen.berman@HIDDEN>) id 1bNJ5h-0003qX-Gv
 for bug-gnu-emacs@HIDDEN; Wed, 13 Jul 2016 08:16:41 -0400
Received: from mout.gmx.net ([212.227.17.22]:60871)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <stephen.berman@HIDDEN>) id 1bNJ5h-0003qJ-6o
 for bug-gnu-emacs@HIDDEN; Wed, 13 Jul 2016 08:16:37 -0400
Received: from rosalinde ([89.245.86.246]) by mail.gmx.com (mrgmx102) with
 ESMTPSA (Nemesis) id 0MIyCj-1bPmzz3RqT-002VUd for <bug-gnu-emacs@HIDDEN>;
 Wed, 13 Jul 2016 14:16:35 +0200
From: Stephen Berman <stephen.berman@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: 25.1.50; Frame resizing due to tool bar + Gnus
Date: Wed, 13 Jul 2016 14:16:33 +0200
Message-ID: <87vb09u40u.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Provags-ID: V03:K0:z7N1FR9SK3ZHbrNb0DF1BpmP1IL/AX7fvH1QHncFKA9S3LK1i1S
 jp82bju8HZMpYEJNDI7qSteBXEflfJoNmbu5haVU8nFDVdGaxgTJ3J/EWdMp6UyspDu9BDF
 e0DkOuHsz53uw543OQ54wLSdSb+n6ypbhiOOojqfvwWmM69qZdKHnX81b7FBZIULlWPRWuO
 85vkPP+H7aBfBY4WJ1yhw==
X-UI-Out-Filterresults: notjunk:1;V01:K0:VJfn7UsTBw8=:UyRPgw+dOf2msGeVUO+ZEx
 rm3UPF2DEqTyFKr7CR1nCtJVFlq53uB95TGxdYITEoT4EuCIxzktAijJDJi+nMeTaVaA7smSS
 IPPzce1NkyCjbhNDtiqU/lYs+Hl5+T/9RcVcSO+fjZdEWePjJaJCE9+LEp/YRc49TAV0ed6vo
 ZMtj0Mpu8BVaS6WCCBwIIln0mxoiXrJGu5zYXf2orl/SDmmjitvz3YeRx+4taqJ9Sf8/feCKf
 h7DhTR8iIs9pOQmqkdC+CxS54at89QJUUY4R2UJXnAly9l92nygqIBoqheZAfXcBXf6snDOyC
 6mfaplW1nmDJKKjDgkaV7b6p315K+yL64GKfc83jAYuZT2YQgahUNXMhif2K+EzdyMYyjdoo6
 oboM5+psIb2gUqwKFFP8pIfL3N4dVXrilMYKdQmfsE9wlCwg4TpICxOiJ9MVYD1disS0pKvqS
 Vy5ufJW5CMnMwd4Q1o134TaiFcp7eRNmjVcvB8Fn7PvUZp6gcBsz2sQFZGk+VjxTOgO2qztOC
 s0SbwHj7nRZ5vCHVXdPnoU7kX9jXmW3krqkSULzvHEBFIELlpc/EfLOtDTvFx7qbosocxFY4Y
 lc1P1FWNFr8yG+fsmseZpcf/13ri9nFZOD6TMcOQxYm14R8gkkeKdsLcPhbbxrnAZHTMG4vSn
 4XqECbh7Y9TeQhdh09tnZwgJGuTc5v1sVdj/CPiK6SmGjucnYFChsb/NUVGWuJcOFt5HqC1Tu
 TkMZyQKFx02bKfFyvm1kf+FfI60mEO2sE5Bi4tEwL/h4uutO587GQ5VIVp19uC9bt8G9YGcf/
 gZSJ2vh
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -4.1 (----)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -4.1 (----)

When I disable the tool bar before entering the Gnus Summary buffer and
then re-enable it while in that buffer, it appears as an 8-pixel high
empty strip below the menu bar.  When I switch to another buffer, the
tool bar is displayed normally but the frame height increases by two
lines, and when I switch back to the Gnus Summary buffer the tool bar
again appears as an empty strip and the frame height stays at the new
height; this pattern can be repeated and each time the frame height
increases.  I see the same thing when the tool bar is displayed at the
bottom of the frame; if it is displayed on the left or right side of the
frame, the frame width increases instead of the height.

I see this in builds from emacs-25 and master, as well as in 24.5, all
64-bit GNU/Linux, GTK+ Version 3.14.15 (not built --with-cairo).  In the
24.5 build, when switching back to the Gnus Summary buffer, the console
displays a message like this:

(emacs:4487): Gtk-WARNING **: GtkToolbar 0x313ca90 reported min size 42
and natural size 8 in get_preferred_width(); natural size must be >= min
size

There is no such message with the emacs-25 or master builds.  (In the
latter two builds, the initial frame height is 36 and increases to 38;
in the 24.5 build, the initial height is 35 and increases to 37.)

I haven't seen this issue with any other buffer than the Gnus Summary
buffer.  Moreover, if I disable the tool bar only after entering the
Gnus Summary buffer and then re-enable it there, the tool bar is
displayed in that buffer normally and there is no resizing after
switching away and back.

To reproduce, start emacs with -Q and evaluate the following sexp in
*scratch*:

(let ((testfile "~/tool-bar-Gnus-frame-bug"))
  (with-temp-file testfile
    (insert "From nobody Wed Jul 13 13:55:54 CEST 2016
To: stephen.berman@HIDDEN
Subject: bug test message
From: Stephen Berman <stephen.berman@HIDDEN>
Date: Wed Jul 13 13:55:54 CEST 2016
Message-ID: <87twg9y16a.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Lines: 1

test
"))
  (message "Emacs started; frame height: %d" (frame-height))
  (require 'gnus)
  (let ((gnus-select-method '(nnnil "")))
    (message "Gnus started; frame height: %d" (frame-height))
    (gnus-1)
    (gnus-group-make-doc-group testfile 'mbox)
    (tool-bar-mode -1)
    (message "Tool bar disabled; frame height: %d" (frame-height))
    (sit-for 1)
    (gnus-group-select-group)
    (message "Entered Summary buffer; frame height: %d" (frame-height))
    (sit-for 1)
    ;; Uncommenting these three lines and commenting out the same three
    ;; lines above results in a normal tool bar and no resizing.
    ;; (tool-bar-mode -1)
    ;; (message "Tool bar disabled; frame height: %d" (frame-height))
    ;; (sit-for 1)
    (tool-bar-mode 1)
    (message "Tool bar enabled; frame height: %d" (frame-height))
    (sit-for 2)
    (switch-to-buffer (other-buffer))
    (message "Other buffer; frame height: %d" (frame-height))
    (sit-for 1)
    (switch-to-buffer (other-buffer))
    (message "Back to Summary buffer; frame height: %d" (frame-height)))
    (sit-for 1)
  ;; Suppress further messages and clean up in order to repeat the test
  ;; simply by evaluating this sexp.
  (let (message-log-max)
    (gnus-summary-exit-no-update t)
    (goto-char (point-min))
    (gnus-group-kill-group)
    (let ((gnus-expert-user t))
      (gnus-group-quit))
    (delete-file testfile)
    (when (file-exists-p (gnus-dribble-file-name))
      (delete-file (gnus-dribble-file-name))))
  (switch-to-buffer "*Messages*"))




Acknowledgement sent to Stephen Berman <stephen.berman@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#23966; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Thu, 12 Apr 2018 15:15:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.