GNU bug report logs - #5683
23.1.93; list-colors-display doesn't show all colors

Previous Next

Package: emacs;

Reported by: Markus Prepens <markus.prepens <at> googlemail.com>

Date: Thu, 4 Mar 2010 20:40:02 UTC

Severity: normal

Merged with 10551

Found in version 23.3

Done: Alan Third <alan <at> idiocy.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Eli Zaretskii <eliz <at> gnu.org>
To: Markus Prepens <markus.prepens <at> googlemail.com>
Cc: 5683 <at> debbugs.gnu.org
Subject: bug#5683: 23.1.93; list-colors-display doesn't show all colors
Date: Sat, 06 Mar 2010 11:01:37 +0200
[Please don't drop 5683 <at> debbugs.gnu.org from the list of addressees,
so that the history of this bug is archived on the bug tracker, and
also so others could chime in to this discussion.]

> Date: Fri, 05 Mar 2010 22:57:19 +0100
> From: Markus Prepens <markus.prepens <at> googlemail.com>
> 
> Function defined-colors seems to cause the trouble.  I stepped down the 
> code to xw-defined-colors in file ns-win.el. It uses the list x-colors. 
> It contains only 42 colors.
> 
> x-colors is initialized with the return value of ns-list-colors:
> 
> (defvar x-colors (ns-list-colors)
> 
> What I am wondering about is that ns-list-colors returns a correct list 
> of 794 colors.
> 
> What is wrong with the assignment of (ns-list-colors) to x-colors?

Nothing's wrong.  I suspect that some code modifies x-colors after it
is assigned.  Can you see if evaluating the following form

  (defvar my-x-colors (ns-list-colors))

puts the full 794-color list in my-x-colors?  (To evaluate the
expression, put the cursor immediately after the right parenthesis and
type "C-x C-e".)




This bug report was last modified 3 years and 300 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.