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: Fri, 10 Mar 2017 09:28:53 +0200 Message-ID: <83a88tfv4a.fsf@gnu.org> References: <87zih7n2yt.fsf@pank.eu> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1489131016 4618 195.159.176.226 (10 Mar 2017 07:30:16 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 10 Mar 2017 07:30:16 +0000 (UTC) Cc: 25890@debbugs.gnu.org To: "mail\@yo.eki.do" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Mar 10 08:30:12 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 1cmF04-00005h-Gd for geb-bug-gnu-emacs@m.gmane.org; Fri, 10 Mar 2017 08:30:08 +0100 Original-Received: from localhost ([::1]:37780 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cmF07-0002MT-Gf for geb-bug-gnu-emacs@m.gmane.org; Fri, 10 Mar 2017 02:30:11 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34728) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cmF02-0002LF-5o for bug-gnu-emacs@gnu.org; Fri, 10 Mar 2017 02:30:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cmEzy-0007Js-Qn for bug-gnu-emacs@gnu.org; Fri, 10 Mar 2017 02:30:06 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:50161) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cmEzy-0007Jo-Nc for bug-gnu-emacs@gnu.org; Fri, 10 Mar 2017 02:30:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cmEzy-0002yf-GL for bug-gnu-emacs@gnu.org; Fri, 10 Mar 2017 02:30: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: Fri, 10 Mar 2017 07:30: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.148913096411375 (code B ref 25890); Fri, 10 Mar 2017 07:30:02 +0000 Original-Received: (at 25890) by debbugs.gnu.org; 10 Mar 2017 07:29:24 +0000 Original-Received: from localhost ([127.0.0.1]:48360 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cmEzM-0002xP-IE for submit@debbugs.gnu.org; Fri, 10 Mar 2017 02:29:24 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:43625) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cmEzK-0002xB-Jo for 25890@debbugs.gnu.org; Fri, 10 Mar 2017 02:29:22 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cmEzC-0007F2-Eh for 25890@debbugs.gnu.org; Fri, 10 Mar 2017 02:29:17 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:60034) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cmEzC-0007En-BU; Fri, 10 Mar 2017 02:29:14 -0500 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:3783 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1cmEzB-0006I0-FO; Fri, 10 Mar 2017 02:29:14 -0500 In-reply-to: (mail@yo.eki.do) 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:130419 Archived-At: > From: "mail@yo.eki.do" > Date: Fri, 10 Mar 2017 05:23:35 +0000 > > I'd like to ask a question regarding to the commit 7b00e956. > I quickly scanned the discussion here, but couldn't find any good reason for changing the behavior of > color-rgb-to-hex function without keeping backward compatibility; > why the default value for digits-per-component is 4, not 2? The default was changed to 4 to match how Emacs does color calculations internally. Using 2 will produce subtle bugs, like that one which prompted that change. > This change actually had impact on several packages including mode-icons, and IMO keeping the original > behavior is a better option. I'm sorry to hear that, but you could still use the optional argument to get back the original behavior, right?