Subject: Re: bug#22298: 25.1.50; Enabling tool-bar-mode caused frame size setting failure

From: CHENG Gao <[email-masked]>
Date: Mon, 11 Jan 2016 20:03:24 +0800

,----
| Here, Emacs use its standard frame size whereas it should use the newly
| specified size (155x38).
`----

You are right.

,----
| (when window-system
|    (set-frame-position (selected-frame) 0 0)
|    (set-frame-size (selected-frame) 156 41 nil))
| 
| (sleep-for 3)
| 
| (when window-system
|    (tool-bar-mode nil))
`----

I added sleep-for to check startup process, and I can see frame size is
resized correctly, and then shrink back by tool-bar-mode. So
tool-bar-mode does not use newly set size but standard frame size.