From mboxrd@z Thu Jan 1 00:00:00 1970 Path: quimby.gnus.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: list-colors-display shows only one color Date: Tue, 12 Feb 2002 07:41:01 +0200 (IST) Message-ID: NNTP-Posting-Host: quimby2.netfonds.no Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Trace: quimby2.netfonds.no 1013493229 19118 195.204.10.66 (12 Feb 2002 05:53:49 GMT) X-Complaints-To: usenet@quimby2.netfonds.no NNTP-Posting-Date: 12 Feb 2002 05:53:49 GMT Cc: lektu@terra.es, emacs-devel@gnu.org Original-Received: from fencepost.gnu.org ([199.232.76.164]) by quimby2.netfonds.no with esmtp (Exim 3.12 #1 (Debian)) id 16aVsy-0004yG-00 for ; Tue, 12 Feb 2002 06:53:48 +0100 Original-Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian)) id 16aVhf-00045F-00; Tue, 12 Feb 2002 00:42:07 -0500 Original-Received: from is.elta.co.il ([199.203.121.2]) by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian)) id 16aVhX-00044q-00 for ; Tue, 12 Feb 2002 00:42:00 -0500 Original-Received: from is (is [199.203.121.2]) by is.elta.co.il (8.9.3/8.8.8) with SMTP id HAA03260; Tue, 12 Feb 2002 07:41:01 +0200 (IST) X-Sender: eliz@is Original-To: Andreas Schwab In-Reply-To: Errors-To: emacs-devel-admin@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: Xref: quimby.gnus.org gmane.emacs.devel:1020 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:1020 On Mon, 11 Feb 2002, Andreas Schwab wrote: > |> That's the bug, right there: x-display-color-cells should report the > |> true number of colors supported by the display. If it reports 1, many > |> features in color support will start to break down, list-colors-display > |> being the least of them. > > Hmm, (x-display-color-cells) returns 256 for me, although I'm working on > a TrueColor 24-bit display. man DisplayCells says: > > The DisplayCells macro returns the number of entries in > the default colormap. I'm not sure I understand what are you saying. Are you saying that 256 is an incorrect value? On X, x-display-color-cells returns what DisplayCells returns, so Emacs isn't ``guilty'' ;-) > xcolors can display all colors from rgb.txt simultanously, as it seems. The number of colors you have on a 24-bit display is much larger than what rgb.txt shows, but the number of colors that are available in the colormap is typically smaller, so 256 doesn't sound very wrong to me. _______________________________________________ Emacs-devel mailing list Emacs-devel@gnu.org http://mail.gnu.org/mailman/listinfo/emacs-devel