From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?ISO-8859-15?Q?Jan_Dj=E4rv?= Newsgroups: gmane.emacs.devel Subject: Re: [Fwd: Frame Height Different for Default Frame and Additional Frames] Date: Thu, 11 Oct 2007 08:15:12 +0200 Message-ID: <470DBF70.9000700@swipnet.se> References: <002501c8044b$fcc95390$6100000a@intermedinc.internal> <4701F8AC.6070900@gmx.at> <470A9D22.2040709@gmx.at> <470BF1BF.3000609@gmx.at> <470C695D.5010906@swipnet.se> <470C766C.1010503@gmx.at> <470C81BC.70909@swipnet.se> <470D38E9.1040802@gmx.at> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1192083360 5872 80.91.229.12 (11 Oct 2007 06:16:00 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 11 Oct 2007 06:16:00 +0000 (UTC) Cc: rms@gnu.org, emacs-devel@gnu.org To: martin rudalics Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Oct 11 08:15:59 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IfrKw-0000Ag-JL for ged-emacs-devel@m.gmane.org; Thu, 11 Oct 2007 08:15:58 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IfrKq-0007Iy-HI for ged-emacs-devel@m.gmane.org; Thu, 11 Oct 2007 02:15:52 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IfrKn-0007It-2J for emacs-devel@gnu.org; Thu, 11 Oct 2007 02:15:49 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IfrKk-0007FX-Hh for emacs-devel@gnu.org; Thu, 11 Oct 2007 02:15:47 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IfrKk-0007F5-9p for emacs-devel@gnu.org; Thu, 11 Oct 2007 02:15:46 -0400 Original-Received: from av7-2-sn3.vrr.skanova.net ([81.228.9.182]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IfrKg-0005D3-7n; Thu, 11 Oct 2007 02:15:42 -0400 Original-Received: by av7-2-sn3.vrr.skanova.net (Postfix, from userid 502) id D576B37F75; Thu, 11 Oct 2007 08:14:33 +0200 (CEST) Original-Received: from smtp3-1-sn3.vrr.skanova.net (smtp3-1-sn3.vrr.skanova.net [81.228.9.101]) by av7-2-sn3.vrr.skanova.net (Postfix) with ESMTP id 4766F37F75; Thu, 11 Oct 2007 08:14:32 +0200 (CEST) Original-Received: from husetbladh.homeip.net (90-231-102-24-no59.tbcn.telia.com [90.231.102.24]) by smtp3-1-sn3.vrr.skanova.net (Postfix) with ESMTP id CE0FC37E46; Thu, 11 Oct 2007 08:15:37 +0200 (CEST) User-Agent: Thunderbird 2.0.0.6 (X11/20070728) In-Reply-To: <470D38E9.1040802@gmx.at> X-Detected-Kernel: Linux 2.4-2.6 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:80588 Archived-At: martin rudalics skrev: > > I think the bug is because frame parameters for the first frame is > > applied after the frame already has been created, but for frames created > > later, they are applied before the frame gets created. > > IIUC the value of `tool-bar-mode' is known only after the first frame > has been created. Hence we can either remove the adjustment code for the > native tool-bar or add an entry to PROBLEMS. Is there a third way? > > The obvious (but more difficult) would be to read all startup lisp before creating the first frame. Or create an initial frame (like a splash screen), and then replace it with a proper "editing" frame. What I had in mind was a modeless frame with the Gnu logo and one line of text from *Messages* at the borrom. When startup is complete, then create a proper frame with tool bars, menus and such. Of course there are special cases to handle, like debug on startup, errors in ~/.emacs and such. Another way is to forcibly resize the frame after all startup code has been read and the value of `tool-bar-mode' is known. I think Emacs used to do that before. But it looks ugly. Jan D.