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:15:48 +0200 Message-ID: <83k285j9vv.fsf@gnu.org> References: <87zih7n2yt.fsf@pank.eu> <83r32jpr8b.fsf@gnu.org> <87bmtnryqr.fsf@drachen> <87d1e2tzt5.fsf@pank.eu> <8337eypb5l.fsf@gnu.org> <87r32hs4mt.fsf@gmx.us> <1488637440.20657.0@smtp.gmail.com> <83shmtjeem.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1488644240 13223 195.159.176.226 (4 Mar 2017 16:17:20 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 4 Mar 2017 16:17:20 +0000 (UTC) Cc: 25890@debbugs.gnu.org, simenheg@gmail.com, rasmus@gmx.us To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Mar 04 17:17:14 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 1ckCMq-0002Op-JU for geb-bug-gnu-emacs@m.gmane.org; Sat, 04 Mar 2017 17:17:12 +0100 Original-Received: from localhost ([::1]:35808 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ckCMt-00029e-LN for geb-bug-gnu-emacs@m.gmane.org; Sat, 04 Mar 2017 11:17:15 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35297) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ckCMk-00029K-Gt for bug-gnu-emacs@gnu.org; Sat, 04 Mar 2017 11:17:10 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ckCMg-00069T-RF for bug-gnu-emacs@gnu.org; Sat, 04 Mar 2017 11:17:06 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:41990) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ckCMg-00069E-NG for bug-gnu-emacs@gnu.org; Sat, 04 Mar 2017 11:17:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ckCMg-0000B5-Hg for bug-gnu-emacs@gnu.org; Sat, 04 Mar 2017 11:17: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:17: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.1488644185630 (code B ref 25890); Sat, 04 Mar 2017 16:17:02 +0000 Original-Received: (at 25890) by debbugs.gnu.org; 4 Mar 2017 16:16:25 +0000 Original-Received: from localhost ([127.0.0.1]:40189 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ckCM2-0000A2-15 for submit@debbugs.gnu.org; Sat, 04 Mar 2017 11:16:25 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:44213) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ckCLx-00009n-43 for 25890@debbugs.gnu.org; Sat, 04 Mar 2017 11:16:20 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ckCLo-0005pH-6d for 25890@debbugs.gnu.org; Sat, 04 Mar 2017 11:16:11 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:47825) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ckCLh-0005oD-Ty; Sat, 04 Mar 2017 11:16:01 -0500 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:4416 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1ckCLh-0003Qn-1u; Sat, 04 Mar 2017 11:16:01 -0500 In-reply-to: (message from Lars Ingebrigtsen on Sat, 04 Mar 2017 16:44:28 +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:130190 Archived-At: > From: Lars Ingebrigtsen > Cc: Simen Heggestøyl , > 25890@debbugs.gnu.org, rasmus@gmx.us > Date: Sat, 04 Mar 2017 16:44:28 +0100 > > I haven't followed this discussion closely, but you've changed the way > color-rgb-to-rgb works in an incompatible way? There's no color-rgb-to-rgb. There's color-rgb-to-hex and color-name-to-rgb. And I don't think the changes are incompatible. Please show examples if you think otherwise. > If you want to have a function that does something else, I think it > would make more sense to introduce new functions that does this > "something new" (i.e., 16 bit component parsing instead of HTML-like > color parsing, which is what those functions are supposed to do), and > revert the old functions how they used to work. The changes make the above 2 functions compatible with all the other color calculations in Emacs. IMO it makes no sense to have color.el make assumptions about RGB components that are different from everything else in Emacs, as doing so will only produce subtle bugs such as the one which started this bug report.