From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stephen Berman Newsgroups: gmane.emacs.devel,gmane.emacs.pretest.bugs Subject: Re: 23.0.60; Still font problems Date: Thu, 15 May 2008 10:32:28 +0200 Message-ID: <878wycc6hv.fsf@escher.local.home> References: <8351-Wed14May2008175244+0100-jpff@codemist.co.uk> <1393-Thu15May2008080518+0100-jpff@codemist.co.uk> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1210840411 8590 80.91.229.12 (15 May 2008 08:33:31 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 15 May 2008 08:33:31 +0000 (UTC) Cc: emacs-pretest-bug@gnu.org To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu May 15 10:34:07 2008 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 1JwYu8-0003gP-Pp for ged-emacs-devel@m.gmane.org; Thu, 15 May 2008 10:33:37 +0200 Original-Received: from localhost ([127.0.0.1]:47066 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JwYtP-00051a-CP for ged-emacs-devel@m.gmane.org; Thu, 15 May 2008 04:32:51 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JwYtH-0004zZ-Gl for emacs-devel@gnu.org; Thu, 15 May 2008 04:32:43 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JwYtE-0004yj-C5 for emacs-devel@gnu.org; Thu, 15 May 2008 04:32:42 -0400 Original-Received: from [199.232.76.173] (port=59572 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JwYtE-0004yg-8E for emacs-devel@gnu.org; Thu, 15 May 2008 04:32:40 -0400 Original-Received: from main.gmane.org ([80.91.229.2]:48634 helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JwYtD-0005Po-Lb for emacs-devel@gnu.org; Thu, 15 May 2008 04:32:40 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1JwYtB-0003QD-87 for emacs-devel@gnu.org; Thu, 15 May 2008 08:32:37 +0000 Original-Received: from i5387d237.versanet.de ([83.135.210.55]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 15 May 2008 08:32:37 +0000 Original-Received: from Stephen.Berman by i5387d237.versanet.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 15 May 2008 08:32:37 +0000 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 69 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: i5387d237.versanet.de User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) 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:97192 gmane.emacs.pretest.bugs:22332 Archived-At: On Thu, 15 May 2008 16:38:05 +0900 Kenichi Handa wrote: > In article <1393-Thu15May2008080518+0100-jpff@codemist.co.uk>, jpff writes: >> In part. After i fixed the typo in src/emacs-icon.h on line 21 it >> compiles. I can run with the default (and very ugly) font, > > I don't understand why the default font is very ugly. Emacs > by default tries these: > > -adobe-courier-medium-r-*-*-*-120-*-*-*-*-iso8859-1 > -misc-fixed-medium-r-normal-*-*-140-*-*-c-*-iso8859-1 > -*-*-medium-r-normal-*-*-140-*-*-c-*-iso8859-1 > -*-*-medium-r-*-*-*-*-*-*-c-*-iso8859-1 > -*-fixed-*-*-*-*-*-140-*-*-c-*-iso8859-1 > fixed > > Do you mean that Emacs finds none of them? > >> but the mechanism I have been using for years to set a >> better font fails. > >> emacs -lsp 2 -fn "-adobe-courier-bold-r-normal--*-120-*-*-m-*-iso8859-1" -geometry 84x45+64+10 >> Font `-adobe-courier-bold-r-normal--*-120-*-*-m-*-iso8859-1' is not defined > >> Using xlsfonts I see >> -adobe-courier-bold-r-normal--12-120-75-75-m-70-iso8859-1 >> -adobe-courier-bold-r-normal--17-120-100-100-m-100-iso8859-1 > >> amongst others. For emacs 22 this command works, so something has >> changed incompatibly > > When I start Emacs as you do, it starts without an error and > uses this font: > -adobe-courier-bold-r-normal--17-120-100-100-m-100-iso8859-1 > > So, I don't understand why it doesn't work for you. Please > rebuild Emacs and run Emacs under gdb as below: > % cd .../emacs/src > % rm xfont.o > % make CFLAGS=-g > % gdb emacs > (gdb) br xfont_list > (gdb) run -fn "-adobe-courier-bold-r-normal--*-120-*-*-m-*-iso8859-1" > and when it stops at xfont_list, check the argument `spec' by > (gdb) pr spec > and step the code one line by one to find what is wrong. I observe what the OP reported also on my system, so I tried what you suggest, and this is the result: (gdb) br xfont_list Breakpoint 3 at 0x81c9e11: file xfont.c, line 308. (gdb) run -Q -fn "-adobe-courier-bold-r-normal--*-120-*-*-m-*-iso8859-1" Starting program: /Users/steve/cvsroot/emacs/src/emacs -Q -fn "-adobe-courier-bold-r-normal--*-120-*-*-m-*-iso8859-1" [Thread debugging using libthread_db enabled] [New Thread 0xb6e958d0 (LWP 16947)] [Switching to Thread 0xb6e958d0 (LWP 16947)] Breakpoint 3, xfont_list (frame=141326084, spec=138016964) at xfont.c:308 308 FRAME_PTR f = XFRAME (frame); (gdb) pr spec The history is empty. I suppose this is also why, when I type `M-x set-frame-font', I get no completions -- TAB returns "[No match]", and `M-: (x-list-fonts "-adobe-courier-bold-r-normal--*-120-*-*-m-*-iso8859-1")' returns nil. Steve Berman