From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Miles Bader Newsgroups: gmane.emacs.pretest.bugs,gmane.emacs.devel Subject: Re: Font-lock.el uses strange value for min-colors (Was x-display-color-cells returns wrong number) Date: 02 Mar 2004 15:33:55 +0900 Sender: emacs-pretest-bug-bounces+gebp-emacs-pretest-bug=gmane.org@gnu.org Message-ID: References: <14AB9AB8-6A0E-11D8-99DB-00039363E640@swipnet.se> <2914-Sun29Feb2004201424+0200-eliz@elta.co.il> <20040229220341.GA9343@fencepost> <7494-Mon01Mar2004080015+0200-eliz@elta.co.il> <2914-Mon01Mar2004215520+0200-eliz@elta.co.il> Reply-To: Miles Bader NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1078217511 31109 80.91.224.253 (2 Mar 2004 08:51:51 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 2 Mar 2004 08:51:51 +0000 (UTC) Cc: harder@ifa.au.dk, emacs-pretest-bug@gnu.org, emacs-devel@gnu.org Original-X-From: emacs-pretest-bug-bounces+gebp-emacs-pretest-bug=gmane.org@gnu.org Tue Mar 02 09:51:44 2004 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1Ay5cu-0007If-00 for ; Tue, 02 Mar 2004 09:51:44 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.30) id 1Ay5aw-0001vM-9J for gebp-emacs-pretest-bug@gmane.org; Tue, 02 Mar 2004 03:49:42 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.30) id 1Ay3V7-00042H-9o for emacs-pretest-bug@gnu.org; Tue, 02 Mar 2004 01:35:33 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.30) id 1Ay3UY-0003kg-Rd for emacs-pretest-bug@gnu.org; Tue, 02 Mar 2004 01:35:31 -0500 Original-Received: from [210.143.35.52] (helo=TYO202.gate.nec.co.jp) by monty-python.gnu.org with esmtp (Exim 4.30) id 1Ay3Tx-0003VU-Fm; Tue, 02 Mar 2004 01:34:21 -0500 Original-Received: from mailgate3.nec.co.jp (mailgate53.nec.co.jp [10.7.69.161] (may be forged)) by TYO202.gate.nec.co.jp (8.11.7/3.7W01080315) with ESMTP id i226Y0e04881; Tue, 2 Mar 2004 15:34:02 +0900 (JST) Original-Received: (from root@localhost) by mailgate3.nec.co.jp (8.11.7/3.7W-MAILGATE-NEC) id i226Y0311398; Tue, 2 Mar 2004 15:34:00 +0900 (JST) Original-Received: from edsgm01.lsi.nec.co.jp ([10.50.208.11]) by mailsv3.nec.co.jp (8.11.7/3.7W-MAILSV4-NEC) with ESMTP id i226Xxh27859; Tue, 2 Mar 2004 15:33:59 +0900 (JST) Original-Received: from mcsss2.ucom.lsi.nec.co.jp (localhost [127.0.0.1]) by edsgm01.lsi.nec.co.jp (8.12.10/8.12.10) with ESMTP id i226XvJt021591; Tue, 2 Mar 2004 15:33:57 +0900 (JST) Original-Received: from mcspd15 (mcspd15 [10.30.114.174]) by mcsss2.ucom.lsi.nec.co.jp (8.12.10/8.12.8/EDcg v2.01-mc/1046780839) with ESMTP id i226XtnX017514; Tue, 2 Mar 2004 15:33:56 +0900 (JST) Original-Received: by mcspd15 (Postfix, from userid 31295) id B68CD437; Tue, 2 Mar 2004 15:33:55 +0900 (JST) Original-To: Eli Zaretskii System-Type: i686-pc-linux-gnu Blat: Foop In-Reply-To: Original-Lines: 32 X-BeenThere: emacs-pretest-bug@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-pretest-bug-bounces+gebp-emacs-pretest-bug=gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.pretest.bugs:2298 gmane.emacs.devel:20226 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:20226 Eli Zaretskii writes: > > > Getting reasonable results on X seems like something we should want, I > > > think. Showing only 64 colors sounds like less than optimal behavior. > > > > Huh? > > I'd appreciate if that "Huh?" never saw the light of the day. huh? > > `M-x list-colors-display' (under X) shows for me ... 548 colors. > > That seems reasonable. > > I meant display-color-cells. Looking at the code, it _appears_ that list-colors-display attempts to limit the display to the number of colors supported by the display (though the method it uses is bogus), but apparently that didn't work for some reason because list-colors-display displayed lots of colors for me even when display-color-cells returned a small value on X. Of course now, display-color-cells returns a proper value on X, so no problem. Well, except that the method used by list-colors-display to limit the displayed colors is still bogus, so I suppose the result for people with e.g. an 8-plane pseudo-color display will see non-optimal results; I suspect such displays aren't all that common nowdays however (though in fact, that's what I have at home!). -miles -- `There are more things in heaven and earth, Horatio, Than are dreamt of in your philosophy.'