From: jidanni@jidanni.org
To: jan.h.d@swipnet.se
Cc: rfrancoise@debian.org, 3643@debbugs.gnu.org
Subject: bug#3643: emacs -Q doesn't fit on the user's screen
Date: Wed, 20 Jan 2010 15:31:48 +0800 [thread overview]
Message-ID: <878wbtdyfv.fsf@jidanni.org> (raw)
In-Reply-To: <87d48x5n1a.fsf@jidanni.org>
>>>>> "JD" == Jan Djärv <jan.h.d@swipnet.se> writes:
JD> Just put the cursor on one character in Emacs *scratch* buffer and do
JD> C-u C-x =
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-iso10646-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 title 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 at
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
next prev parent reply other threads:[~2010-01-20 7:31 UTC|newest]
Thread overview: 43+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <87636liaoo.fsf@tochka.ru>
2009-06-21 20:50 ` bug#3643: minibuffer beyond end of screen in emacs23 jidanni
2010-01-15 12:14 ` bug#3643: emacs -Q doesn't fit on the user's screen jidanni
2010-01-15 15:31 ` Jan Djärv
2010-01-15 17:08 ` Jan Djärv
2010-01-16 1:10 ` jidanni
2010-01-20 3:57 ` jidanni
2010-01-20 6:26 ` Jan Djärv
2010-01-20 6:49 ` jidanni
2010-01-20 7:18 ` Jan Djärv
2010-01-20 6:53 ` jidanni
2010-01-20 7:31 ` jidanni [this message]
2010-01-20 8:27 ` Jan Djärv
2010-01-20 9:27 ` martin rudalics
2010-01-20 9:58 ` Jan Djärv
2010-01-20 10:59 ` martin rudalics
2010-01-20 11:14 ` Jan Djärv
2010-01-21 14:12 ` Stefan Monnier
2010-01-25 7:52 ` Jan Djärv
2010-01-21 23:53 ` jidanni
2010-01-25 23:05 ` jidanni
2010-01-26 6:56 ` Jan Djärv
2010-01-27 5:17 ` jidanni
2010-01-27 6:21 ` Jan Djärv
2010-01-28 2:23 ` Chong Yidong
2010-01-28 7:18 ` Jan Djärv
2010-01-28 19:06 ` Stefan Monnier
2010-01-29 16:36 ` Chong Yidong
2010-01-29 18:52 ` Stefan Monnier
2010-01-27 6:52 ` jidanni
2010-01-27 9:00 ` Jan Djärv
2010-01-27 10:15 ` jidanni
2010-01-29 10:50 ` bug#3643: Bug#567083: " jidanni
2010-01-29 11:23 ` jidanni
2010-01-29 12:14 ` Evgeny M. Zubok
2010-01-29 12:33 ` jidanni
2010-02-21 9:45 ` jidanni
2010-01-12 23:07 bug#3643: " jidanni
2010-01-13 7:37 ` Yavor Doganov
2010-01-13 7:42 ` Jan D.
2010-01-13 8:49 ` Romain Francoise
2010-01-13 21:14 ` jidanni
2010-01-13 11:24 ` Jan D.
2010-01-14 3:48 ` jidanni
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=878wbtdyfv.fsf@jidanni.org \
--to=jidanni@jidanni.org \
--cc=3643@debbugs.gnu.org \
--cc=jan.h.d@swipnet.se \
--cc=rfrancoise@debian.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).