Subject: bug#23966: 25.1.50; Frame resizing due to tool bar + Gnus

From: Stephen Berman <[email-masked]>
Date: Fri, 13 Apr 2018 11:16:12 +0200

On Thu, 12 Apr 2018 17:01:35 +0200 Lars Ingebrigtsen <[email-masked]> wrote:

> Stephen Berman <[email-masked]> writes:
>
>>> suppose that just enabling ‘tool-bar-mode’ is not sufficient to make a
>>> gnus tool bar once gnus has started.  Maybe this deficiency is inherent
>>> to ‘tool-bar-mode’ 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...

Yes, with (a gtk3 build of) current master I still get frame resizing
both with my original recipe and with Martin's pixelwise adjustment.
For the latter, here are the outputs

with frame-resize-pixelwise nil:

Emacs started; frame pixel height: 648  toolbar height: 42
Gnus started; frame pixel height: 648  toolbar height: 42
Opening nnfolder server on archive...done
Subscribe newsgroup: nnfolder+archive:sent
Subscribe newsgroup: nnfolder+archive:emacs-personal
2 new newsgroups have arrived
Checking new news...
Reading active file via nnnil...done
Reading active file from archive via nnfolder...done
Checking new news...done
Opening nndoc server on /home/steve/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: 683  toolbar height: 7
Other buffer; frame pixel height: 666  toolbar height: 42
Back to Summary buffer; frame pixel height: 701  toolbar height: 7
Final; frame pixel height: 684  toolbar height: 42

and with frame-resize-pixelwise t:

Emacs started; frame pixel height: 648  toolbar height: 42
Gnus started; frame pixel height: 648  toolbar height: 42
Opening nnfolder server on archive...done
Subscribe newsgroup: nnfolder+archive:sent
Subscribe newsgroup: nnfolder+archive:emacs-personal
2 new newsgroups have arrived
Checking new news...
Reading active file via nnnil...done
Reading active file from archive via nnfolder...done
Checking new news...done
Opening nndoc server on /home/steve/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: 683  toolbar height: 7
Other buffer; frame pixel height: 683  toolbar height: 42
Back to Summary buffer; frame pixel height: 718  toolbar height: 7
Final; frame pixel height: 718  toolbar height: 42

Steve Berman