From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Julien Danjou Newsgroups: gmane.emacs.devel Subject: Re: /srv/bzr/emacs/trunk r102478: shr.el (shr-tag-color-check):Convert colors to hexadecimal with shr-color->hexadecimal. Date: Wed, 24 Nov 2010 10:08:13 +0100 Message-ID: <87d3pvf5s2.fsf@keller.adm.naquadah.org> References: <961v6bom3j.fsf@fencepost.gnu.org> <87eiabdc04.fsf@stupidchicken.com> <87ipznhhe3.fsf@keller.adm.naquadah.org> <87mxoz7mml.fsf@stupidchicken.com> <874ob71y6v.fsf@stupidchicken.com> <4A76DA00C61D4637AC671E53FB7A4FCB@us.oracle.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1290589725 6555 80.91.229.12 (24 Nov 2010 09:08:45 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 24 Nov 2010 09:08:45 +0000 (UTC) Cc: 'Lars Magne Ingebrigtsen' , emacs-devel@gnu.org To: "Drew Adams" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Nov 24 10:08:40 2010 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PLBL8-0000L0-2R for ged-emacs-devel@m.gmane.org; Wed, 24 Nov 2010 10:08:37 +0100 Original-Received: from localhost ([127.0.0.1]:52230 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PLBL6-0005Gb-R4 for ged-emacs-devel@m.gmane.org; Wed, 24 Nov 2010 04:08:32 -0500 Original-Received: from [140.186.70.92] (port=34288 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PLBKw-0005ED-4M for emacs-devel@gnu.org; Wed, 24 Nov 2010 04:08:23 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PLBKu-0003xp-Qw for emacs-devel@gnu.org; Wed, 24 Nov 2010 04:08:21 -0500 Original-Received: from prometheus.naquadah.org ([212.85.154.174]:50309 helo=mx1.naquadah.org) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PLBKu-0003xK-MP for emacs-devel@gnu.org; Wed, 24 Nov 2010 04:08:20 -0500 Original-Received: by mx1.naquadah.org (Postfix, from userid 8) id D00985C1AC; Wed, 24 Nov 2010 10:08:15 +0100 (CET) Original-Received: from keller.adm.naquadah.org (unknown [IPv6:2a01:e35:2e39:e900:222:faff:fe9d:ce44]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.naquadah.org (Postfix) with ESMTPSA id DA8AC5C1A4; Wed, 24 Nov 2010 10:08:13 +0100 (CET) Original-Received: from jd by keller.adm.naquadah.org with local (Exim 4.72) (envelope-from ) id 1PLBKn-0002Nk-2E; Wed, 24 Nov 2010 10:08:13 +0100 Mail-Followup-To: "Drew Adams" , "'Lars Magne Ingebrigtsen'" , In-Reply-To: <4A76DA00C61D4637AC671E53FB7A4FCB@us.oracle.com> (Drew Adams's message of "Tue, 23 Nov 2010 16:12:32 -0800") User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/24.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:133112 Archived-At: On Wed, Nov 24 2010, Drew Adams wrote: > Dunno. But you write a lot for someone who do not know. :) > You seem to be describing something oriented toward a particular applicat= ion: > "just distant enough to improve readability" or some such. It would not = be > off-topic for hexrgb to include such a color-distance metric. I just hav= en't > needed that so I haven't added it. Color-lab has been built upon a specific need, which resulted in the CIE Delta E 2000 formula to be implemented. Some helper functions dealing with colors have been written, like CIE XYZ and CIE Lab conversion in the process. All of this is not present in hexrgb, and hexrgb is not present in Emacs. I admit: color-lab has 50 SLOC for 2 functions (rgb->hsl and rgb->hsv) which are in hexrgb, but they are even not used at all by the CIE code. So I think it's really unfair to stand up and point at this package like it's something that should not have been done. Now if you want to merge hexrgb and color-lab, why not, but stop pointing at other people work because some is not included in Emacs. I can't do anything about it. --=20 Julien Danjou // =E1=90=B0 http://julien.danjou.info