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: Mon, 01 Mar 2004 08:00:15 +0200 Sender: emacs-pretest-bug-bounces+gebp-emacs-pretest-bug=gmane.org@gnu.org Message-ID: <7494-Mon01Mar2004080015+0200-eliz@elta.co.il> References: <14AB9AB8-6A0E-11D8-99DB-00039363E640@swipnet.se> <2914-Sun29Feb2004201424+0200-eliz@elta.co.il> <20040229220341.GA9343@fencepost> Reply-To: Eli Zaretskii NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1078121067 31686 80.91.224.253 (1 Mar 2004 06:04:27 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 1 Mar 2004 06:04:27 +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 Mon Mar 01 07:04:21 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 1AxgXM-0002Ru-00 for ; Mon, 01 Mar 2004 07:04:20 +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 1AxgWZ-0002Lx-7i for gebp-emacs-pretest-bug@gmane.org; Mon, 01 Mar 2004 01:03:31 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.30) id 1AxgWR-0002IJ-NN for emacs-pretest-bug@gnu.org; Mon, 01 Mar 2004 01:03:23 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.30) id 1AxgUP-0001YJ-42 for emacs-pretest-bug@gnu.org; Mon, 01 Mar 2004 01:01:50 -0500 Original-Received: from [192.114.186.21] (helo=necron.inter.net.il) by monty-python.gnu.org with esmtp (Exim 4.30) id 1AxgUK-0001Rg-OI; Mon, 01 Mar 2004 01:01:12 -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 AEL00687; Sun, 29 Feb 2004 19:59:30 GMT Original-To: Miles Bader X-Mailer: emacs 21.3.50 (via feedmail 8 I) and Blat ver 1.8.9 In-reply-to: <20040229220341.GA9343@fencepost> (message from Miles Bader on Sun, 29 Feb 2004 17:03:41 -0500) 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:2261 gmane.emacs.devel:20212 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:20212 > Date: Sun, 29 Feb 2004 17:03:41 -0500 > From: Miles Bader > > On Sun, Feb 29, 2004 at 08:14:24PM +0200, Eli Zaretskii wrote: > > However, this sounds like a tip of an iceberg: are you saying that > > list-display-colors will display a list whose length has no simple > > relation to what display-color-cells returns? That sounds bad, > > doesn't it? > > Um, no. [I presume you meant `list-colors-display',] Yes, sorry for the typo. > Perhaps the doc string should be more clear about it [though I suppose > technically it's accurate, as it makes no mention of being exhaustive], but > the default behavior on X is to display a list of `interesting' colors (those > with names). Such a list is more likely to emphasize colors that are > interesting to human eyes, and I doubt that anyone cares whether such it has > any simple relationship to the number of possible colors when its length is > above about a 100 or so -- you can still, obviously, use the #xxx notation to > get any color you want. I know that the list of colors displayed by list-colors-display on X is fixed (see my message earlier in this thread), but I always thought, I don't know why, that the length of that list is near the number returned by display-color-cells. If this is not true, one may ask what is so ``interesting'' about the specific colors we show as opposed to those we don't. For example, when I work on Irix, I generally like to use the Irix-specific colors (that are not shown by list-colors-display, of course) because they are much more pleasant to my eyes. So to me, those unshown colors are much more ``interesting'' than those we show, in that specific case. The importance of list-colors-display is that some people use it to choose colors for their customizations, so the shown colors need to have some resemblance to what Emacs can support. Bottom line is, I think list-colors-display should display colors whose number is close to what Emacs can use on that display, except that it probably shouldn't be too long (so I don't suggest to display 64K colors, for example). Perhaps a short comment to the effect that we are showing only N out of possible M colors would be good there. But this is not the gravest problem with this issue; see my other messages about the value returned by display-color-cells, which I think is the main issue here.