From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.bugs,gmane.emacs.pretest.bugs Subject: bug#3081: 23.0.92; x-list-fonts no longer gives correct result - substitutes * for fixed font size Date: Wed, 22 Apr 2009 10:03:30 -0700 Message-ID: <000b01c9c36c$460c3820$c2b22382@us.oracle.com> Reply-To: Drew Adams , 3081@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1240421054 11355 80.91.229.12 (22 Apr 2009 17:24:14 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 22 Apr 2009 17:24:14 +0000 (UTC) To: Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Apr 22 19:25:33 2009 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 1LwgCQ-0002XF-Fi for geb-bug-gnu-emacs@m.gmane.org; Wed, 22 Apr 2009 19:25:30 +0200 Original-Received: from localhost ([127.0.0.1]:57086 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LwgB1-0006rR-Cq for geb-bug-gnu-emacs@m.gmane.org; Wed, 22 Apr 2009 13:24:03 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LwgAx-0006rD-Pc for bug-gnu-emacs@gnu.org; Wed, 22 Apr 2009 13:23:59 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LwgAt-0006qO-Pj for bug-gnu-emacs@gnu.org; Wed, 22 Apr 2009 13:23:59 -0400 Original-Received: from [199.232.76.173] (port=46867 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LwgAt-0006qK-F2 for bug-gnu-emacs@gnu.org; Wed, 22 Apr 2009 13:23:55 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:33984) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LwgAs-0002P6-RV for bug-gnu-emacs@gnu.org; Wed, 22 Apr 2009 13:23:55 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n3MHNqDV006677; Wed, 22 Apr 2009 10:23:53 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id n3MHA5Pv003062; Wed, 22 Apr 2009 10:10:05 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: "Drew Adams" Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Wed, 22 Apr 2009 17:10:04 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: report 3081 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by submit@emacsbugs.donarmstrong.com id=B.1240419833933 (code B ref -1); Wed, 22 Apr 2009 17:10:04 +0000 Original-Received: (at submit) by emacsbugs.donarmstrong.com; 22 Apr 2009 17:03:53 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n3MH3nMQ000926 for ; Wed, 22 Apr 2009 10:03:51 -0700 Original-Received: from mail.gnu.org ([199.232.76.166]:41131 helo=mx10.gnu.org) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1LwfrQ-0006s9-Bw for emacs-pretest-bug@gnu.org; Wed, 22 Apr 2009 13:03:48 -0400 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1LwfrN-00082G-4y for emacs-pretest-bug@gnu.org; Wed, 22 Apr 2009 13:03:47 -0400 Original-Received: from rcsinet12.oracle.com ([148.87.113.124]:41223 helo=rgminet12.oracle.com) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LwfrL-00081W-Kc for emacs-pretest-bug@gnu.org; Wed, 22 Apr 2009 13:03:44 -0400 Original-Received: from rgminet15.oracle.com (rcsinet15.oracle.com [148.87.113.117]) by rgminet12.oracle.com (Switch-3.3.1/Switch-3.3.1) with ESMTP id n3MH3b5c026499 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Wed, 22 Apr 2009 17:03:38 GMT Original-Received: from acsmt701.oracle.com (acsmt701.oracle.com [141.146.40.71]) by rgminet15.oracle.com (Switch-3.3.1/Switch-3.3.1) with ESMTP id n3MH3Z5n014933 for ; Wed, 22 Apr 2009 17:03:36 GMT Original-Received: from dradamslap1 (/130.35.178.194) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Wed, 22 Apr 2009 10:03:34 -0700 X-Mailer: Microsoft Office Outlook 11 Thread-Index: AcnDbELAZBEo/zD8Qh+1Zlf1XKRJgw== X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3350 X-Source-IP: acsmt701.oracle.com [141.146.40.71] X-Auth-Type: Internal IP X-CT-RefId: str=0001.0A01020A.49EF4DE8.0205:SCFMA4539814,ss=1,fgs=0 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 1) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Wed, 22 Apr 2009 13:23:59 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list 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:27393 gmane.emacs.pretest.bugs:24316 Archived-At: I have this defcustom, which I use to choose a small font: (defcustom palette-font (and window-system (or (car (x-list-fonts "-*-Courier-*-*-*-*-5-*-*-*-*-*-iso8859-1" nil nil 1)) ; 1 (car (x-list-fonts "-*-fixed-*-*-*-*-5-*-*-*-*-*-iso8859-1" nil nil 1)) ; 2 (car (x-list-fonts "-*-Terminal-*-*-*-*-5-*-*-*-*-*-iso8859-1" nil nil 1)) ; 3 (car (x-list-fonts "-*-*-*-*-*-*-5-*-*-*-*-*-iso8859-1" nil nil 1)))) ;4 "...") [Ignore the fact that perhaps (display-graphic-p) should be used in place of window-system.] In Emacs 23, the x-list-fonts sexps return these values (in MS Windows XP with the fonts I have on my laptop): 1. ("-outline-Courier-normal-i-normal-normal-5-37-96-96-c-*-iso8859-1") 2. nil 3. nil 4. ("-outline-Souvenir Lt BT-normal-i-normal-normal-5-37-96-96-p-*-iso8859-1") In Emacs 23, these are the values: 1. ("-outline-Courier-bold-normal-normal-mono-*-*-*-*-c-*-iso8859-1") 2. nil 3. nil 4. ("-outline-Lucida Sans Typewriter-bold-normal-normal-sans-*-*-*-*-c-*-iso8859-1") The first difference to notice is #4: a completely different font family is used. Why should this be? Anyway, I don't really have a problem with this. The problem is that the font size is not correct: * instead of a real font size. The whole point of this defcustom is to try to find a default value for the option that provides a tiny font that the user has available. It tries to match various fonts of size 5, until it finds a match. In Emacs 23, this size info seems to be ignored, and the generic * is used. That has the result of using a very large font (for this application, which needs a tiny font). Which defeats the purpose of the defcustom. In GNU Emacs 23.0.92.1 (i386-mingw-nt5.1.2600) of 2009-03-30 on SOFT-MJASON Windowing system distributor `Microsoft Corp.', version 5.1.2600 configured using `configure --with-gcc (3.4)'