From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jan =?UTF-8?Q?Dj=C3=A4rv?= Newsgroups: gmane.emacs.bugs Subject: bug#3643: emacs -Q doesn't fit on the user's screen Date: Wed, 20 Jan 2010 09:27:44 +0100 Message-ID: <4B56BE80.6080307@swipnet.se> References: <4B56AE30.4090109@swipnet.se> <878wbtdyfv.fsf@jidanni.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: Quoted-Printable X-Trace: ger.gmane.org 1263977113 9070 80.91.229.12 (20 Jan 2010 08:45:13 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 20 Jan 2010 08:45:13 +0000 (UTC) Cc: rfrancoise@debian.org, 3643@debbugs.gnu.org To: jidanni@jidanni.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Jan 20 09:45:05 2010 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1NXWBU-0001Oy-DT for geb-bug-gnu-emacs@m.gmane.org; Wed, 20 Jan 2010 09:45:04 +0100 Original-Received: from localhost ([127.0.0.1]:60807 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NXWBU-0001Yy-Cx for geb-bug-gnu-emacs@m.gmane.org; Wed, 20 Jan 2010 03:45:04 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NXW7n-0000oC-3m for bug-gnu-emacs@gnu.org; Wed, 20 Jan 2010 03:41:15 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NXW7g-0000m8-4p for bug-gnu-emacs@gnu.org; Wed, 20 Jan 2010 03:41:12 -0500 Original-Received: from [199.232.76.173] (port=56736 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NXW7c-0000lU-V4 for bug-gnu-emacs@gnu.org; Wed, 20 Jan 2010 03:41:05 -0500 Original-Received: from mx20.gnu.org ([199.232.41.8]:48220) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NXW7U-0002uT-S5 for bug-gnu-emacs@gnu.org; Wed, 20 Jan 2010 03:41:03 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NXW6B-0006hO-Qh for bug-gnu-emacs@gnu.org; Wed, 20 Jan 2010 03:39:35 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1NXVuz-0003R0-TN; Wed, 20 Jan 2010 03:28:01 -0500 X-Loop: bug-gnu-emacs@gnu.org Resent-From: Jan =?UTF-8?Q?Dj=C3=A4rv?= Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 20 Jan 2010 08:28:01 +0000 Resent-Message-ID: Resent-Sender: bug-gnu-emacs@gnu.org X-Emacs-PR-Message: followup 3643 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 3643-submit@debbugs.gnu.org id=B3643.126397607113194 (code B ref 3643); Wed, 20 Jan 2010 08:28:01 +0000 Original-Received: (at 3643) by debbugs.gnu.org; 20 Jan 2010 08:27:51 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NXVuo-0003Ql-LL for submit@debbugs.gnu.org; Wed, 20 Jan 2010 03:27:50 -0500 Original-Received: from proxy1.bredband.net ([195.54.101.71]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NXVum-0003Qf-SZ for 3643@debbugs.gnu.org; Wed, 20 Jan 2010 03:27:49 -0500 Original-Received: from ipb2.telenor.se (195.54.127.165) by proxy1.bredband.net (7.3.140.3) id 4AD3E1C0027CDB29 for 3643@debbugs.gnu.org; Wed, 20 Jan 2010 09:27:45 +0100 X-SMTPAUTH-B2: X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ArNAALRMVktV4S1uPGdsb2JhbACBRoIbhFWTQgEBAQE3rAaOKoEtgjNWBA X-IronPort-AV: E=Sophos;i="4.49,308,1262559600"; d="scan'208";a="27914944" Original-Received: from c-6e2de155.25-1-64736c10.cust.bredbandsbolaget.se (HELO coolsville.localdomain) ([85.225.45.110]) by ipb2.telenor.se with ESMTP; 20 Jan 2010 09:27:44 +0100 Original-Received: from [172.20.199.2] (gaffa [172.20.199.2]) by coolsville.localdomain (Postfix) with ESMTP id 2FB877FA01A; Wed, 20 Jan 2010 09:27:44 +0100 (CET) User-Agent: Thunderbird 2.0.0.23 (X11/20090817) In-Reply-To: <878wbtdyfv.fsf@jidanni.org> X-Spam-Score: -2.8 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list X-Spam-Score: -2.8 (--) Resent-Date: Wed, 20 Jan 2010 03:28:01 -0500 X-detected-operating-system: by mx20.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:34541 Archived-At: jidanni@jidanni.org skrev: >>>>>> "JD" =3D=3D Jan Dj=C3=A4rv writes: > JD> That last part may be it though. As the title bar size isn't known= at > JD> frame create time, we can't adjust for it. I'll have to think abou= t > JD> that. > All I know is firefox etc. never was bigger than xwindows. > JD> A better strategy might be if 40 lines doesn't seem to fit, just tr= y 20. > JD> If that doesn't seem to fit, try 10. > Well if it can detect that it can't fit then maybe it can detect how bi= g > it should be. Actually, it can only detect when it is way too big. In the case when it= =20 almost fits, i.e. off by one line or so, it must guess. > OK, I did xwininfo -all in Firefox, just for comparison. It fits > perfectly. Of course this is not a vanilla install of firefox, all I > know is the vertical dimensions of emacs should be no bigger, as this > fits perfectly. The main reason is that Firefox calculates its window height before mappi= ng=20 the window. Emacs on the other hand first maps with tool bar off and lat= er=20 adds that (in lisp) and the menu bar. Font changes in lisp are also appl= ied=20 after the window is shown. Jan D.