emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: list-colors-display shows only one color


From: Eli Zaretskii
Subject: Re: list-colors-display shows only one color
Date: Mon, 11 Feb 2002 21:48:25 +0200

> From: Juanma Barranquero <address@hidden>
> Date: Mon, 11 Feb 2002 19:12:33 +0100
> 
> M-x list-colors-display shows only one color ("snow") in my system, a
> Windows XP in 32-bit color mode. Previously it showed the full list.
> 
> (x-display-color-cells) returns 1, BTW.

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.

The change I made simply makes a point of not displaying more colors
than the terminal supports.  That is The Right Thing, IMHO, since
otherwise someone could set internal variables and lists of colors to
preposterous values, and get strange results in list-colors-display.
It is also needed for extended color support on tty's, where the
number of colors in tty-color-alist can be much larger than the
actual number of distinct colors a tty can display.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]