From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#25890: `color-values` gives wrong value Date: Wed, 01 Mar 2017 05:43:36 +0200 Message-ID: <83lgspoe53.fsf@gnu.org> References: <87zih7n2yt.fsf@pank.eu> <83r32jpr8b.fsf@gnu.org> <87bmtnryqr.fsf@drachen> <87d1e2tzt5.fsf@pank.eu> <8337eypb5l.fsf@gnu.org> <87vartx4qd.fsf@drachen> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1488339916 31500 195.159.176.226 (1 Mar 2017 03:45:16 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 1 Mar 2017 03:45:16 +0000 (UTC) Cc: 25890@debbugs.gnu.org, rasmus@gmx.us To: Michael Heerdegen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Mar 01 04:45:09 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1civCO-0007Nj-8d for geb-bug-gnu-emacs@m.gmane.org; Wed, 01 Mar 2017 04:45:08 +0100 Original-Received: from localhost ([::1]:38222 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1civCU-0007yo-4L for geb-bug-gnu-emacs@m.gmane.org; Tue, 28 Feb 2017 22:45:14 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38189) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1civCM-0007xY-Dl for bug-gnu-emacs@gnu.org; Tue, 28 Feb 2017 22:45:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1civCJ-0007uQ-DR for bug-gnu-emacs@gnu.org; Tue, 28 Feb 2017 22:45:06 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:34368) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1civCJ-0007uK-A7 for bug-gnu-emacs@gnu.org; Tue, 28 Feb 2017 22:45:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1civCJ-0006Qp-4j for bug-gnu-emacs@gnu.org; Tue, 28 Feb 2017 22:45:03 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 01 Mar 2017 03:45:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 25890 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 25890-submit@debbugs.gnu.org id=B25890.148833985024547 (code B ref 25890); Wed, 01 Mar 2017 03:45:03 +0000 Original-Received: (at 25890) by debbugs.gnu.org; 1 Mar 2017 03:44:10 +0000 Original-Received: from localhost ([127.0.0.1]:60795 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1civBR-0006Nr-NY for submit@debbugs.gnu.org; Tue, 28 Feb 2017 22:44:09 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:47093) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1civBP-0006Na-Vj for 25890@debbugs.gnu.org; Tue, 28 Feb 2017 22:44:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1civBH-0007jK-JV for 25890@debbugs.gnu.org; Tue, 28 Feb 2017 22:44:02 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:57999) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1civBH-0007jG-Fi; Tue, 28 Feb 2017 22:43:59 -0500 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:4684 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1civBG-0000Xw-7H; Tue, 28 Feb 2017 22:43:58 -0500 In-reply-to: <87vartx4qd.fsf@drachen> (message from Michael Heerdegen on Wed, 01 Mar 2017 00:42:02 +0100) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:129974 Archived-At: > From: Michael Heerdegen > Cc: Rasmus , 25890@debbugs.gnu.org > Date: Wed, 01 Mar 2017 00:42:02 +0100 > > With that patch, for me in the recipe of bug #24273, it makes a > difference; now > > (color-name-to-rgb "#ffffff") > ==> > (0.9961089494163424 0.9961089494163424 0.9961089494163424) > > and > > (color-name-to-rgb "white") > ==> > (1.0 1.0 1.0) That's what should happen, yes. > For the recipe of this bug report, the values are the same as without > the patch. > > I guess this is what you expected. Yes, expected. color-values were not affected by the change, it's just that color.el is now consistent with what color-values returns. > But is it ok that "#ffffff" is not equivalent to "white"? Yes. There's no other way, really, on systems where "white" has 3 16-bit components with all bits set, when color-values is called.