From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Eli Zaretskii" 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: Sun, 29 Feb 2004 23:25:01 +0200 Sender: emacs-pretest-bug-bounces+gebp-emacs-pretest-bug=gmane.org@gnu.org Message-ID: <2719-Sun29Feb2004232501+0200-eliz@elta.co.il> References: <14AB9AB8-6A0E-11D8-99DB-00039363E640@swipnet.se> <2914-Sun29Feb2004201424+0200-eliz@elta.co.il> <60951CF7-6AED-11D8-8672-00039363E640@swipnet.se> Reply-To: Eli Zaretskii NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1078090068 22923 80.91.224.253 (29 Feb 2004 21:27:48 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 29 Feb 2004 21:27:48 +0000 (UTC) Cc: harder@ifa.au.dk, emacs-devel@gnu.org, emacs-pretest-bug@gnu.org Original-X-From: emacs-pretest-bug-bounces+gebp-emacs-pretest-bug=gmane.org@gnu.org Sun Feb 29 22:27:40 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 1AxYTM-0007eN-00 for ; Sun, 29 Feb 2004 22:27:40 +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 1AxYT7-0003Gl-1T for gebp-emacs-pretest-bug@gmane.org; Sun, 29 Feb 2004 16:27:25 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.30) id 1AxYT1-0003FL-Ap for emacs-pretest-bug@gnu.org; Sun, 29 Feb 2004 16:27:19 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.30) id 1AxYSU-0002yB-KH for emacs-pretest-bug@gnu.org; Sun, 29 Feb 2004 16:27:18 -0500 Original-Received: from [192.114.186.21] (helo=necron.inter.net.il) by monty-python.gnu.org with esmtp (Exim 4.30) id 1AxYRs-0002ED-5y; Sun, 29 Feb 2004 16:26:08 -0500 Original-Received: from zaretski (pns03-195-232.inter.net.il [80.230.195.232]) by necron.inter.net.il (MOS 3.4.4-GR) with ESMTP id AEK16692; Sun, 29 Feb 2004 11:24:16 GMT Original-To: "Jan D." X-Mailer: emacs 21.3.50 (via feedmail 8 I) and Blat ver 1.8.9 In-reply-to: <60951CF7-6AED-11D8-8672-00039363E640@swipnet.se> (jan.h.d@swipnet.se) 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:2252 gmane.emacs.devel:20206 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:20206 > From: "Jan D." > Date: Sun, 29 Feb 2004 20:27:56 +0100 > > It is actually uncommon for any X server to return more than 256 for > DisplayCells, presumably to save memory if a lot of colormaps are > allocated. > > A better way to find out the number of colors that can be displayed > at the same time is (1 << DisplayPlanes(...)). There is no need to > distinguish between visual types if number of colors is calculated this > way. I don't know enough about X to even parse the last sentence, but I do think display-color-cells should return the number of distinct colors Emacs can use. It sounds like display-color-cells does that on every platform except X (MS-Windows, MS-DOS, Unix tty, don't know about the Mac). That function is advertised as one that returns the number of distinct colors, so IMHO it had better do what we say it does.