[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-
Re: Font-lock.el uses strange value for min-colors (Was x-display-color-cells returns wrong number)
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.
> > `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!).
`There are more things in heaven and earth, Horatio,
Than are dreamt of in your philosophy.'
Re: Font-lock.el uses strange value for min-colors (Was x-display-color-cells returns wrong number), Jan D., 2004/03/01
Re: Font-lock.el uses strange value for min-colors (Was x-display-color-cells returns wrong number), Eli Zaretskii, 2004/03/01