From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: jidanni@jidanni.org Newsgroups: gmane.emacs.bugs Subject: bug#3643: emacs -Q doesn't fit on the user's screen Date: Wed, 20 Jan 2010 15:31:48 +0800 Message-ID: <878wbtdyfv.fsf@jidanni.org> References: <4B56AE30.4090109@swipnet.se> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1263973537 31173 80.91.229.12 (20 Jan 2010 07:45:37 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 20 Jan 2010 07:45:37 +0000 (UTC) Cc: rfrancoise@debian.org, 3643@debbugs.gnu.org To: jan.h.d@swipnet.se Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Jan 20 08:45:28 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 1NXVFM-0003Ab-V5 for geb-bug-gnu-emacs@m.gmane.org; Wed, 20 Jan 2010 08:45:01 +0100 Original-Received: from localhost ([127.0.0.1]:41975 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NXVAT-0000m5-21 for geb-bug-gnu-emacs@m.gmane.org; Wed, 20 Jan 2010 02:39:57 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NXVA7-0000fg-Jc for bug-gnu-emacs@gnu.org; Wed, 20 Jan 2010 02:39:35 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NXVA3-0000fB-Lg for bug-gnu-emacs@gnu.org; Wed, 20 Jan 2010 02:39:35 -0500 Original-Received: from [199.232.76.173] (port=52223 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NXVA3-0000et-D2 for bug-gnu-emacs@gnu.org; Wed, 20 Jan 2010 02:39:31 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:56178) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NXVA3-00063V-0l for bug-gnu-emacs@gnu.org; Wed, 20 Jan 2010 02:39:31 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1NXV2o-0002vQ-0E; Wed, 20 Jan 2010 02:32:02 -0500 X-Loop: bug-gnu-emacs@gnu.org In-Reply-To: <87d48x5n1a.fsf@jidanni.org> Resent-From: jidanni@jidanni.org 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 07:32: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.126397271811238 (code B ref 3643); Wed, 20 Jan 2010 07:32:01 +0000 Original-Received: (at 3643) by debbugs.gnu.org; 20 Jan 2010 07:31:58 +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 1NXV2k-0002vD-3V for submit@debbugs.gnu.org; Wed, 20 Jan 2010 02:31:58 -0500 Original-Received: from caiajhbdcbhh.dreamhost.com ([208.97.132.177] helo=homiemail-a37.g.dreamhost.com) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NXV2h-0002v5-EU for 3643@debbugs.gnu.org; Wed, 20 Jan 2010 02:31:56 -0500 Original-Received: from jidanni.org (218-163-0-126.dynamic.hinet.net [218.163.0.126]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by homiemail-a37.g.dreamhost.com (Postfix) with ESMTP id 7AC634D76E; Tue, 19 Jan 2010 23:31:50 -0800 (PST) X-Spam-Score: -3.1 (---) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list X-Spam-Score: -3.1 (---) Resent-Date: Wed, 20 Jan 2010 02:32:02 -0500 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) 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:34535 Archived-At: >>>>> "JD" =3D=3D Jan Dj=C3=A4rv writes: JD> Just put the cursor on one character in Emacs *scratch* buffer and do JD> C-u C-x =3D JD> That gives you the font. character: ; (59, #o73, #x3b) preferred charset: ascii (ASCII (ISO646 IRV)) code point: 0x3B syntax: < which means: comment category: .:Base, a:ASCII, l:Latin, r:Roman buffer code: #x3B file code: #x3B (encoded by coding system utf-8-unix) display: by this font (glyph code) xft:-unknown-DejaVu Sans Mono-normal-normal-normal-*-14-*-*-*-m-0-iso= 10646-1 (#x1E) Character code properties: customize what to show name: SEMICOLON general-category: Po (Punctuation, Other) There are text properties here: face font-lock-comment-delimiter-face fontified t JD> % xwininfo -all JD> and click in Emacs gives window sizes. xwininfo: Window id: 0x1800016 "emacs-snapshot@jidanni2.jidanni.org" Root window id: 0xff (the root window) (has no name) Parent window id: 0xc17c1b (has no name) 2 children: 0x1800033 (has no name): () 672x680+0+62 +4+98 0x1800017 (has no name): () 1x1+-1+-1 +3+35 Absolute upper-left X: 4 Absolute upper-left Y: 36 Relative upper-left X: 0 Relative upper-left Y: 0 Width: 672 Height: 742 Depth: 24 Visual: 0x21 Visual Class: TrueColor Border width: 0 Class: InputOutput Colormap: 0x20 (installed) Bit Gravity State: NorthWestGravity Window Gravity State: NorthWestGravity Backing Store State: NotUseful Save Under State: no Map State: IsViewable Override Redirect State: no Corners: +4+36 -348+36 -348--10 +4--10 -geometry 80x40+0+12 Bit gravity: NorthWestGravity Window gravity: NorthWestGravity Backing-store hint: NotUseful Backing-planes to be preserved: 0xffffffff Backing pixel: 0 Save-unders: No Someone wants these events: KeyPress KeyRelease ButtonPress ButtonRelease EnterWindow LeaveWindow PointerMotion Exposure VisibilityChange StructureNotify FocusChange PropertyChange ColormapChange Do not propagate these events: Override redirection?: No Window manager hints: Client accepts input or input focus: Yes Initial state is Normal State Normal window size hints: Program supplied minimum size: 48 by 96 Program supplied base size: 32 by 62 Program supplied x resize increment: 8 Program supplied y resize increment: 17 Program supplied minimum size in resize increments: 6 by 5 Program supplied base size in resize increments: 4 by 3 Program supplied window gravity: NorthWestGravity No zoom window size hints defined No window shape defined No border shape defined JD> % xwininfo -frame JD> and click the window manager title bar for Emacs gives size of the ti= tle bar. xwininfo: Window id: 0xc000bf (has no name) Absolute upper-left X: 0 Absolute upper-left Y: 742 Relative upper-left X: 0 Relative upper-left Y: 742 Width: 1024 Height: 26 Depth: 24 Visual: 0x21 Visual Class: TrueColor Border width: 0 Class: InputOutput Colormap: 0x20 (installed) Bit Gravity State: ForgetGravity Window Gravity State: NorthWestGravity Backing Store State: NotUseful Save Under State: no Map State: IsViewable Override Redirect State: yes Corners: +0+742 -0+742 -0-0 +0-0 -geometry 1024x26+0-0 JD> That last part may be it though. As the title bar size isn't known a= t JD> frame create time, we can't adjust for it. I'll have to think about 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 try = 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 big it should be. 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. xwininfo: Window id: 0x1a00039 "WWWOFFLE Index - Last Time Online Pages -= Iceweasel" Root window id: 0xff (the root window) (has no name) Parent window id: 0xc18ec6 (has no name) 2 children: 0x1a000f3 (has no name): () 1020x719+0+0 +4+23 1 child: 0x1a0008f (has no name): () 1020x719+0+0 +4+23 1 child: 0x1a000f2 (has no name): () 1020x604+0+93 +4+116 1 child: 0x1a0019a (has no name): () 1005x589+0+0 +4+116 0x1a0003a (has no name): () 1x1+-1+-1 +3+22 Absolute upper-left X: 4 Absolute upper-left Y: 23 Relative upper-left X: 0 Relative upper-left Y: 0 Width: 1020 Height: 719 Depth: 24 Visual: 0x21 Visual Class: TrueColor Border width: 0 Class: InputOutput Colormap: 0x20 (installed) Bit Gravity State: NorthWestGravity Window Gravity State: NorthWestGravity Backing Store State: NotUseful Save Under State: no Map State: IsViewable Override Redirect State: no Corners: +4+23 -0+23 -0-26 +4-26 -geometry 1020x719+0+-1 Bit gravity: NorthWestGravity Window gravity: NorthWestGravity Backing-store hint: NotUseful Backing-planes to be preserved: 0xffffffff Backing pixel: 0 Save-unders: No Someone wants these events: KeyPress KeyRelease ButtonPress ButtonRelease EnterWindow LeaveWindow PointerMotion Exposure VisibilityChange StructureNotify FocusChange PropertyChange ColormapChange Do not propagate these events: Override redirection?: No Window manager hints: Client accepts input or input focus: Yes Initial state is Normal State Normal window size hints: Program supplied minimum size: 0 by 0 Program supplied window gravity: NorthWestGravity No zoom window size hints defined No window shape defined No border shape defined