From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: [Fwd: Frame Height Different for Default Frame and Additional Frames] Date: Fri, 28 Dec 2007 08:56:12 -0500 Message-ID: References: <002501c8044b$fcc95390$6100000a@intermedinc.internal> <4701F8AC.6070900@gmx.at> <470A9D22.2040709@gmx.at> <470BF1BF.3000609@gmx.at> <470C695D.5010906@swipnet.se> <470DE439.1030603@gmx.at> <470E655E.10905@swipnet.se> <4773F8BA.4090009@gmx.at> Reply-To: rms@gnu.org NNTP-Posting-Host: lo.gmane.org Content-Type: text/plain; charset=ISO-8859-15 X-Trace: ger.gmane.org 1198850365 8304 80.91.229.12 (28 Dec 2007 13:59:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 28 Dec 2007 13:59:25 +0000 (UTC) Cc: jan.h.d@swipnet.se, emacs-devel@gnu.org To: martin rudalics Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Dec 28 14:59:37 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 1J8FkM-0005ls-2a for ged-emacs-devel@m.gmane.org; Fri, 28 Dec 2007 14:59:34 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1J8Fk1-0007er-27 for ged-emacs-devel@m.gmane.org; Fri, 28 Dec 2007 08:59:13 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1J8Fh8-0006Xk-Ck for emacs-devel@gnu.org; Fri, 28 Dec 2007 08:56:14 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1J8Fh7-0006XN-PI for emacs-devel@gnu.org; Fri, 28 Dec 2007 08:56:13 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1J8Fh7-0006XH-L6 for emacs-devel@gnu.org; Fri, 28 Dec 2007 08:56:13 -0500 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1J8Fh7-0001hk-97 for emacs-devel@gnu.org; Fri, 28 Dec 2007 08:56:13 -0500 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.60) (envelope-from ) id 1J8Fh6-0002VJ-LK; Fri, 28 Dec 2007 08:56:12 -0500 In-reply-to: <4773F8BA.4090009@gmx.at> (message from martin rudalics on Thu, 27 Dec 2007 20:10:50 +0100) X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) 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:85549 Archived-At: Perhaps I have misunderstood the nature of the problem. I thought the problem was that the height in default-frame-alist was being ignored entirely for the first frame, from these words: > Yes they do. It looks like default-frame-alist is ignored for the first frame. My experience is that it is not ignored. You're now talking about a completely different problem: Commenting out the following stretch from frame.c fixes the bug for me. /* 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. */ .... I think that change causes another bug. The height in lines of an Emacs frame is not supposed to include the tool bar. If you create a frame and specify 40 lines, you should get 40 lines of text, plus a tool bar. The size of the initial frame seems correct because initial frames get the same height regardless of whether they have a tool-bar or not (if they didn't we'd probably have another bug). Could you explain that precisely? Perhaps that special feature for -g and the initial frame needs to be implemented in a different place.