From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" 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 08:15:25 -0800 Message-ID: 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> <87d3pvf5s2.fsf@keller.adm.naquadah.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1290615595 5911 80.91.229.12 (24 Nov 2010 16:19:55 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 24 Nov 2010 16:19:55 +0000 (UTC) Cc: 'Lars Magne Ingebrigtsen' , emacs-devel@gnu.org To: "'Julien Danjou'" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Nov 24 17:19:51 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 1PLI4T-0006ix-6h for ged-emacs-devel@m.gmane.org; Wed, 24 Nov 2010 17:19:49 +0100 Original-Received: from localhost ([127.0.0.1]:53297 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PLI4S-0000pD-GV for ged-emacs-devel@m.gmane.org; Wed, 24 Nov 2010 11:19:48 -0500 Original-Received: from [140.186.70.92] (port=39008 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PLI13-0007MF-MT for emacs-devel@gnu.org; Wed, 24 Nov 2010 11:16:39 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PLI0b-0002Ua-ED for emacs-devel@gnu.org; Wed, 24 Nov 2010 11:16:17 -0500 Original-Received: from rcsinet10.oracle.com ([148.87.113.121]:32862) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PLI0b-0002Ty-8y for emacs-devel@gnu.org; Wed, 24 Nov 2010 11:15:49 -0500 Original-Received: from rcsinet13.oracle.com (rcsinet13.oracle.com [148.87.113.125]) by rcsinet10.oracle.com (Switch-3.4.2/Switch-3.4.2) with ESMTP id oAOGFdv6008223 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 24 Nov 2010 16:15:41 GMT Original-Received: from acsmt353.oracle.com (acsmt353.oracle.com [141.146.40.153]) by rcsinet13.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id oAOFiPjC020313; Wed, 24 Nov 2010 16:15:39 GMT Original-Received: from abhmt005.oracle.com by acsmt354.oracle.com with ESMTP id 810506171290615327; Wed, 24 Nov 2010 08:15:27 -0800 Original-Received: from dradamslap1 (/10.159.223.110) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Wed, 24 Nov 2010 08:15:27 -0800 X-Mailer: Microsoft Office Outlook 11 In-Reply-To: <87d3pvf5s2.fsf@keller.adm.naquadah.org> Thread-Index: AcuLtyU5TrzGyl5HRyCSCUIo+y+LUwANcwqg X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5994 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:133119 Archived-At: > > Dunno. > > But you write a lot for someone who do not know. :) I said I do not know whether color-lab.el "doesn't have much to do with hexrgb.el" (Lars). I did not say that I do not know anything. I wrote about what I do know about: hexrgb.el. What did I mean by "dunno" here? Read what followed "dunno": d> Dunno. Such a particular color distance computation is I guess d> complementary to what is in hexrgb.el. But in general that is d> the kind of thing that hexrgb.el does. So wrt particular content: it seems _complementary_. But in general, color difference _is_ the kind of thing that hexrgb.el does. So yes and no - dunno based only on Lars's general description of color-lab.el. > All of this is not present in hexrgb Complementary. > 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. I already made it clear during the discussion of rainbow-mode.el that such overlap is to be expected. These are just standard color conversions. > 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. You replied to my mail, but is this directed at me or someone else? I haven't pointed at any package as something that should not have been done. I haven't pointed at anyone's work because something is not in Emacs (?). "Really unfair", indeed. I simply replied to Yidong's mention of possibly including hexrgb.el (it's OK). And to Lars's indication that color-lab.el was about calculating a color distance and that (he thinks) that has little to do with hexrgb.el. I was going by what Lars described - I have not looked at color-lab.el myself. Whether color-lab.el _in fact_ has anything to do with hexrgb.el (e.g. same or similar subject) I dunno. And even if it does, whether the two should be included separately or merged in some way I dunno. I am not pushing for either inclusion or merger. I am not pushing and I am not pointing. ;-) To be clear, I do not really care whether hexrgb.el, color-lab.el, some combination of them, or both of them are added to Emacs. I tried to reply technically to the question of what hexrgb.el is about. That's all. I wrote hexrgb.el for myself and anyone else who wants to use it. I am glad that someone wrote color-lab.el as well. Heuristically determining readable colors would be useful - I'm glad you're working on it. Whether any of this stuff should be added to Emacs is another story, and not for me to decide.