From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Gaute Amundsen Newsgroups: gmane.emacs.help Subject: Re: Strange font / frame size problem makes emacs unusable. Date: Sun, 25 Apr 2010 21:43:02 +0200 Message-ID: <1272224582.9877.259.camel@totiki> References: <1272142428.9877.47.camel@totiki> <0DD48519-2441-471E-AF01-6EF5CAA00644@Web.DE> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1272224668 25570 80.91.229.12 (25 Apr 2010 19:44:28 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 25 Apr 2010 19:44:28 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Peter Dyballa Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Apr 25 21:44:27 2010 connect(): No such file or directory Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1O67kg-0002DZ-Nv for geh-help-gnu-emacs@m.gmane.org; Sun, 25 Apr 2010 21:44:27 +0200 Original-Received: from localhost ([127.0.0.1]:56311 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O67kf-0000xO-Ui for geh-help-gnu-emacs@m.gmane.org; Sun, 25 Apr 2010 15:44:25 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O67jx-0000oP-Kp for help-gnu-emacs@gnu.org; Sun, 25 Apr 2010 15:43:41 -0400 Original-Received: from [140.186.70.92] (port=60160 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O67jv-0000nh-TD for help-gnu-emacs@gnu.org; Sun, 25 Apr 2010 15:43:40 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O67ju-0000KD-Bw for help-gnu-emacs@gnu.org; Sun, 25 Apr 2010 15:43:39 -0400 Original-Received: from smtp.domeneshop.no ([194.63.248.54]:33430) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O67ju-0000K2-3n for help-gnu-emacs@gnu.org; Sun, 25 Apr 2010 15:43:38 -0400 Original-Received: from ti0189a340-dhcp0466.bb.online.no ([88.91.9.213] helo=[10.0.0.5]) by smtp.domeneshop.no with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1O67jr-0004kw-SE; Sun, 25 Apr 2010 21:43:36 +0200 In-Reply-To: <0DD48519-2441-471E-AF01-6EF5CAA00644@Web.DE> X-Mailer: Evolution 2.28.1 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:72825 Archived-At: On Sun, 2010-04-25 at 10:28 +0200, Peter Dyballa wrote: > Am 24.04.2010 um 22:53 schrieb Gaute Amundsen: > > > Any ideas are appreciated. > > > Font switching happens. Possible cause: GNU Emacs has an internal > default, X11 has a different X resource, GTK has its own settings. In > this sequence, presumingly, one overrides the elder. GTK makes, IMO, > things complicated since it customises compound ideas, comprised of > simple elements. Well, it's not just fonts, is it? The buffer starts one line high, even when the fonts are tiny, and that last screenshot where two lines fills the screen is supposedly 11pt. fonts. Come to think of it I should also mention that it looks like that last shot, briefly during startup. I also notice now, that startup seems slower than it ought to be. Takes around 12 seconds, while -nw is ~1 sec. Cpu maxes out for some seconds there as well. Hm.. not my specialty, but playing around with strace... # strace -c emacs (emacs:25774): GLib-WARNING **: g_set_prgname() called multiple times % time seconds usecs/call calls errors syscall ------ ----------- ----------- --------- --------- ---------------- 42.18 0.004471 1 3660 poll 39.57 0.004195 1 4724 2022 read 11.28 0.001196 2 532 getdents64 ... # strace -c emacs -nw % time seconds usecs/call calls errors syscall ------ ----------- ----------- --------- --------- ---------------- 66.73 0.000379 2 172 close 13.56 0.000077 0 946 864 stat64 6.87 0.000039 0 151 read ... I figure a lot of those read errors must be from blocks like this. --- SIGIO (I/O possible) @ 0 (0) --- sigreturn() = ? (mask now []) read(3, "\1<\377\2L\0\0\0\0\0N\0N\0|\0 \0\341\1\1\0\22\0\0\0N\0N\0| \0"..., 4096) = 396 read(3, 0x9f10018, 4096) = -1 EAGAIN (Resource temporarily unavailable) read(3, 0x9f10018, 4096) = -1 EAGAIN (Resource temporarily unavailable) poll([{fd=3, events=POLLIN|POLLOUT}], 1, -1) = 1 ([{fd=3, revents=POLLOUT}]) writev(3, [{"2\30\21\0\1\0<\0", 8}, {"-misc-fixed-medium-r-normal--161"..., 60}, {"", 0}], 3) = 68 poll([{fd=3, events=POLLIN}], 1, -1) = 1 ([{fd=3, revents=POLLIN}]) --- SIGIO (I/O possible) @ 0 (0) --- Something about fonts..., but I have to work on that.. > Check documentation, and check whether you have forgotten to migrate > ~/.Xdefaults and ~/.emacs.d/gtkrc or ~/.gtkrc, whichever gets used... I have none of the those anywhere on the system. You don't think I should try to narrow down where the cause might be a bit more before I start reading docs? Seems to me I could read docs for a week to cover the possible territory at this point.. :) tried emacs -QD but no change. emacs -fn lucidasans-24 looks more sensible during startup, but then just the same behavior. Hm.. lucida is not an option in the "default font" dialog, but is one of the hits in xlsfonts | grep -i sans. Well, some new angles to work on anyway. Thanks :) Gaute