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: Jason Rumney
Subject: Re: Font-lock.el uses strange value for min-colors (Was x-display-color-cells returns wrong number)
Date: 29 Feb 2004 22:39:21 +0000
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50

"Eli Zaretskii" <address@hidden> writes:

> It sounds like display-color-cells does that on every platform
> except X 

Since color-cells is originally an X concept, I think those other
platforms only do that because of a lack of understanding about what X
really means by color-cells. It does seem like display-planes is more
reliable at least on X and W32 (where it was fixed to mean the same as
X some time ago, since W32 has a different idea of planes), so how
about changing the calculation of min-colors in faces.el to

      (>= (expt 2.0 (display-planes frame)) (car options))

2.0 seems to be required (as opposed to 2) to force floating point in
case of 32 bit displays, this might be a bug in Emacs, perhaps expt
and other math functions should detect integer overflow and use
floating point automatically?





reply via email to

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