From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.devel Subject: Re: How to restore the layout? Date: Thu, 04 Jul 2013 11:35:03 +0200 Message-ID: <51D541C7.8060208@gmx.at> References: <51C5AA68.4000204@alice.it> <83r4fmdsw5.fsf@gnu.org> <85k3ldtion.fsf@member.fsf.org> <4E4C522D-DBCC-4133-A764-82C9CCE81E2D@swipnet.se> <8913208E-7FE2-41F5-AC93-000108413C47@swipnet.se> <51D126A4.50402@gmx.at> <51D2ADC1.5060902@gmx.at> <51D3EE80.9000304@gmx.at> <51D41C42.4000107@gmx.at> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1372930516 31980 80.91.229.3 (4 Jul 2013 09:35:16 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 4 Jul 2013 09:35:16 +0000 (UTC) Cc: Emacs developers To: Juanma Barranquero Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jul 04 11:35:16 2013 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UufwX-0002OV-C6 for ged-emacs-devel@m.gmane.org; Thu, 04 Jul 2013 11:35:13 +0200 Original-Received: from localhost ([::1]:60287 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UufwW-0004dG-VY for ged-emacs-devel@m.gmane.org; Thu, 04 Jul 2013 05:35:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39402) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UufwT-0004cx-20 for emacs-devel@gnu.org; Thu, 04 Jul 2013 05:35:11 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UufwR-0003UR-Ta for emacs-devel@gnu.org; Thu, 04 Jul 2013 05:35:08 -0400 Original-Received: from mout.gmx.net ([212.227.17.22]:49499) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UufwR-0003Tu-If for emacs-devel@gnu.org; Thu, 04 Jul 2013 05:35:07 -0400 Original-Received: from [62.47.32.80] ([62.47.32.80]) by mail.gmx.com (mrgmx002) with ESMTPA (Nemesis) id 0LdYxu-1UV06k086E-00inEm; Thu, 04 Jul 2013 11:35:04 +0200 In-Reply-To: X-Provags-ID: V03:K0:r/KZuIWg1CfD6r5lH84oRcJbEfwC+s3QPtadc6KziB3pVbJCm9k BeC2XSj5aixvDIf4RJb5VEgg/ZG5KhHiBpqhc8G9j5QiaBNkO/D6hjll+YiYm/nbQ4sckht gK1nJeuMmBOblJQ9QHmB8+hmXhc2ldi2MgOu4tRhrgRkxSMNkKGWaQUgsz4achsT/5S4nDI IdRG/7RVAWYdMtvZq/Tlg== X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 212.227.17.22 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:161515 Archived-At: > And yet, I find very hard to believe that, when toolbars are enabled, this code > > (let ((params '((width . 60) (height . 25)))) > (make-frame params) > (modify-frame-parameters (make-frame) params)) > > is allowed to create two frames of different height. That's the very > model of a modern major bug. It could be also related to this part of x_figure_window_size: /* This used to be done _before_ calling x_figure_window_size, but since the height is reset here, this was really a no-op. I assume that moving it here does what Gerd intended (although he no longer can remember what that was... ++KFS, 2003-03-25. */ /* Add the tool-bar height to the initial frame height so that the user gets a text display area of the size he specified with -g or via .Xdefaults. Later changes of the tool-bar height don't change the frame size. This is done so that users can create tall Emacs frames without having to guess how tall the tool-bar will get. */ if (toolbar_p && FRAME_TOOL_BAR_HEIGHT (f)) So maybe you should file a bug report, at least to find out whether this happens on all platforms. martin