[Top][All Lists]
[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?
- x-display-color-cells returns wrong number, Jesper Harder, 2004/02/28
- Re: x-display-color-cells returns wrong number, Jan D., 2004/02/28
- Re: x-display-color-cells returns wrong number, Jesper Harder, 2004/02/28
- Font-lock.el uses strange value for min-colors (Was x-display-color-cells returns wrong number), Jan D., 2004/02/29
- Re: Font-lock.el uses strange value for min-colors (Was x-display-color-cells returns wrong number), Eli Zaretskii, 2004/02/29
- Re: Font-lock.el uses strange value for min-colors (Was x-display-color-cells returns wrong number), Jan D., 2004/02/29
- Re: Font-lock.el uses strange value for min-colors (Was x-display-color-cells returns wrong number), Eli Zaretskii, 2004/02/29
- Re: Font-lock.el uses strange value for min-colors (Was x-display-color-cells returns wrong number), Jan D., 2004/02/29
- Re: Font-lock.el uses strange value for min-colors (Was x-display-color-cells returns wrong number),
Jason Rumney <=
- Re: Font-lock.el uses strange value for min-colors (Was x-display-color-cells returns wrong number), Miles Bader, 2004/02/29
- Re: Font-lock.el uses strange value for min-colors, Jesper Harder, 2004/02/29
- Re: Font-lock.el uses strange value for min-colors, Eli Zaretskii, 2004/02/29
- Re: Font-lock.el uses strange value for min-colors (Was x-display-color-cells returns wrong number), Luc Teirlinck, 2004/02/29
- Re: Font-lock.el uses strange value for min-colors (Was x-display-color-cells returns wrong number), Jan D., 2004/02/29
- Re: Font-lock.el uses strange value for min-colors (Was x-display-color-cells returns wrong number), Luc Teirlinck, 2004/02/29
- Re: Font-lock.el uses strange value for min-colors (Was x-display-color-cells returns wrong number), Jan D., 2004/02/29
- Re: Font-lock.el uses strange value for min-colors (Was x-display-color-cells returns wrong number), Luc Teirlinck, 2004/02/29