emacs-pretest-bug
[Top][All Lists]
Advanced

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

Re: Font-lock.el uses strange value for min-colors (Was x-display-color-


From: Miles Bader
Subject: Re: Font-lock.el uses strange value for min-colors (Was x-display-color-cells returns wrong number)
Date: 02 Mar 2004 15:33:55 +0900

Eli Zaretskii <address@hidden> writes:
> > > Getting reasonable results on X seems like something we should want, I
> > > think.  Showing only 64 colors sounds like less than optimal behavior.
> > 
> > Huh?
> 
> I'd appreciate if that "Huh?" never saw the light of the day.

huh?

> > `M-x list-colors-display' (under X)  shows for me ... 548 colors.
> > That seems reasonable.
> 
> I meant display-color-cells.

Looking at the code, it _appears_ that list-colors-display attempts to
limit the display to the number of colors supported by the display
(though the method it uses is bogus), but apparently that didn't work
for some reason because list-colors-display displayed lots of colors for
me even when display-color-cells returned a small value on X.

Of course now, display-color-cells returns a proper value on X, so no
problem.  Well, except that the method used by list-colors-display to
limit the displayed colors is still bogus, so I suppose the result for
people with e.g. an 8-plane pseudo-color display will see non-optimal
results; I suspect such displays aren't all that common nowdays however
(though in fact, that's what I have at home!).

-miles
-- 
`There are more things in heaven and earth, Horatio,
 Than are dreamt of in your philosophy.'




reply via email to

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