From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Tom Tromey Newsgroups: gmane.emacs.bugs Subject: bug#41544: 26.3; Possible incorrect results from color-distance Date: Fri, 29 May 2020 11:52:08 -0600 Message-ID: <87r1v2aat3.fsf@tromey.com> References: <5C4A633D-8222-4439-BE37-9B8674F1DA6D@acm.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="47703"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: Tom Tromey , Simon Pugnet , 41544@debbugs.gnu.org To: Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri May 29 19:53:13 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jejBw-000CHM-Rl for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 29 May 2020 19:53:13 +0200 Original-Received: from localhost ([::1]:35690 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jejBv-0004q8-CN for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 29 May 2020 13:53:11 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:48550) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jejBl-0004p7-Vq for bug-gnu-emacs@gnu.org; Fri, 29 May 2020 13:53:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:44628) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jejBl-0001JT-Lv for bug-gnu-emacs@gnu.org; Fri, 29 May 2020 13:53:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jejBl-0002CY-KZ for bug-gnu-emacs@gnu.org; Fri, 29 May 2020 13:53:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Tom Tromey Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 29 May 2020 17:53:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41544 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 41544-submit@debbugs.gnu.org id=B41544.15907747348404 (code B ref 41544); Fri, 29 May 2020 17:53:01 +0000 Original-Received: (at 41544) by debbugs.gnu.org; 29 May 2020 17:52:14 +0000 Original-Received: from localhost ([127.0.0.1]:56174 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jejAz-0002BU-Mf for submit@debbugs.gnu.org; Fri, 29 May 2020 13:52:13 -0400 Original-Received: from gateway31.websitewelcome.com ([192.185.143.47]:49310) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jejAx-0002BM-Lj for 41544@debbugs.gnu.org; Fri, 29 May 2020 13:52:12 -0400 Original-Received: from cm11.websitewelcome.com (cm11.websitewelcome.com [100.42.49.5]) by gateway31.websitewelcome.com (Postfix) with ESMTP id E924C8B24 for <41544@debbugs.gnu.org>; Fri, 29 May 2020 12:52:10 -0500 (CDT) Original-Received: from box5379.bluehost.com ([162.241.216.53]) by cmsmtp with SMTP id ejAwji4G3Sl8qejAwjxJcZ; Fri, 29 May 2020 12:52:10 -0500 X-Authority-Reason: nr=8 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tromey.com; s=default; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=2+/rdbBHYCebM5YSAUsg/EWrBF3LOO92jaxFrFE8f90=; b=dpkkbiunmgP46ms1jDa9SMQrOe mtQsfTmLcoM/RTWQo6brDvS+3FjC4oLh3+oDHxIYEEEAbabxAMl5NvkJa6SX0Kmz9vb7IijIIAz7E 9dag0/4jyNRr7weS1dpj3/Bbg; Original-Received: from 174-16-104-48.hlrn.qwest.net ([174.16.104.48]:49074 helo=murgatroyd) by box5379.bluehost.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.92) (envelope-from ) id 1jejAw-000ru1-D5; Fri, 29 May 2020 11:52:10 -0600 X-Attribution: Tom In-Reply-To: ("Mattias =?UTF-8?Q?Engdeg=C3=A5rd?="'s message of "Fri, 29 May 2020 17:17:41 +0200") X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - box5379.bluehost.com X-AntiAbuse: Original Domain - debbugs.gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - tromey.com X-BWhitelist: no X-Source-IP: 174.16.104.48 X-Source-L: No X-Exim-ID: 1jejAw-000ru1-D5 X-Source-Sender: 174-16-104-48.hlrn.qwest.net (murgatroyd) [174.16.104.48]:49074 X-Source-Auth: tom+tromey.com X-Email-Count: 3 X-Source-Cap: ZWx5bnJvYmk7ZWx5bnJvYmk7Ym94NTM3OS5ibHVlaG9zdC5jb20= X-Local-Domain: yes X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:181195 Archived-At: Mattias> Try the attached patch. A couple of constants used for Mattias> comparison were recomputed, but since they mostly appeared to Mattias> have been picked out of thin air, I didn't bother attempting a Mattias> very precise translation. Thank you for doing this. I wasn't sure whether Emacs would accept a patch changing the return value in this way. However, my main concern is just whether it still picks reasonably contrasting colors when editing CSS. If it does, then that's good enough for me. thanks, Tom