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

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

bug#39590: 25.2; Inconsistent color-values return values


From: Eli Zaretskii
Subject: bug#39590: 25.2; Inconsistent color-values return values
Date: Thu, 13 Feb 2020 17:46:18 +0200

> From: В.Санников
>  <address@hidden>
> Date: Thu, 13 Feb 2020 16:43:00 +0300
> 
>      (color-values "white")
> 
> returns "(65535 65535 65535)" while
> 
>      (color-values "#ffffff")
> 
> returns "(65280 65280 65280)" which is very surprising, confused and
> inconsistent for me. Moreover, this leads to
> 
>      (color-name-to-rgb "white")
> 
> returns "(1.00390625 1.00390625 1.00390625)" which is looks wrong
> because color components must be in [0; 1]

This was changed for Emacs 27, which I think behaves as you want.
Please try the latest emacs-27 branch of the Emacs Git repository.





reply via email to

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