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: Sat, 04 Mar 2017 18:10:26 +0200 Message-ID: <83lgslja4t.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>>>>> <<<<<56bad9de-8111-4962-a9e9-2dbf0084e004@default>>>>> <<<<<83wpc6la28.fsf@gnu.org>>>>> <<<<2cfd6280-34de-4751-b35f-ec7d47a16595@default>>>> <<<<83pohyky8i.fsf@gnu.org>>>> <<>> <<<83o9xikvop.fsf@gnu.org>>> <<1b96dc61-19bb-486b-a408-c3b3c15e113b@default>> <<83lgsll9ey.fsf@gnu.org>> <59441882-425e-4962-8760-70c505d991dd@default> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1488643876 13433 195.159.176.226 (4 Mar 2017 16:11:16 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 4 Mar 2017 16:11:16 +0000 (UTC) Cc: michael_heerdegen@web.de, 25890@debbugs.gnu.org, rasmus@gmx.us To: Drew Adams Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Mar 04 17:11: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 1ckCGw-0002Nn-1s for geb-bug-gnu-emacs@m.gmane.org; Sat, 04 Mar 2017 17:11:06 +0100 Original-Received: from localhost ([::1]:35801 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ckCH2-0001d0-86 for geb-bug-gnu-emacs@m.gmane.org; Sat, 04 Mar 2017 11:11:12 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34472) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ckCGv-0001ch-U4 for bug-gnu-emacs@gnu.org; Sat, 04 Mar 2017 11:11:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ckCGs-000499-NL for bug-gnu-emacs@gnu.org; Sat, 04 Mar 2017 11:11:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:41985) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ckCGs-00048y-K2 for bug-gnu-emacs@gnu.org; Sat, 04 Mar 2017 11:11:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ckCGs-0008TS-CL for bug-gnu-emacs@gnu.org; Sat, 04 Mar 2017 11:11:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 04 Mar 2017 16:11:02 +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.148864385432561 (code B ref 25890); Sat, 04 Mar 2017 16:11:02 +0000 Original-Received: (at 25890) by debbugs.gnu.org; 4 Mar 2017 16:10:54 +0000 Original-Received: from localhost ([127.0.0.1]:40184 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ckCGk-0008T7-C1 for submit@debbugs.gnu.org; Sat, 04 Mar 2017 11:10:54 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:43398) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ckCGj-0008Su-05 for 25890@debbugs.gnu.org; Sat, 04 Mar 2017 11:10:53 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ckCGc-0003oc-LK for 25890@debbugs.gnu.org; Sat, 04 Mar 2017 11:10:47 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:47760) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ckCGW-0003g8-RY; Sat, 04 Mar 2017 11:10:40 -0500 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:4414 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1ckCGV-00030H-Sd; Sat, 04 Mar 2017 11:10:40 -0500 In-reply-to: <59441882-425e-4962-8760-70c505d991dd@default> (message from Drew Adams on Sat, 4 Mar 2017 07:38:51 -0800 (PST)) 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:130189 Archived-At: > Date: Sat, 4 Mar 2017 07:38:51 -0800 (PST) > From: Drew Adams > Cc: michael_heerdegen@web.de, 25890@debbugs.gnu.org, rasmus@gmx.us > > > It should instead produce the most-significant digits. > > Why? Because that's how colors are interpreted on X, which is where Emacs takes its ideas of how to process these specs. See, for example, this man page: https://linux.die.net/man/3/xparsecolor (Emacs on X uses XParseColor internally in the implementation of color-values.) If you do it differently, sooner or later the results will clash with what Emacs does, and yield subtly wrong values. I will now bail out of this discussion. I have nothing more to say about this issue. If you don't want to change hexrgb.el, that's your prerogative.