From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: MON KEY Newsgroups: gmane.emacs.bugs Subject: bug#5829: 23.1.94; variable `hfy-rgb-load-path' in lisp/hfy-cmap.el missing "etc/rgb.txt" Date: Sat, 3 Apr 2010 15:41:16 -0400 Message-ID: References: <87iq88h1r5.fsf@home.jasonrumney.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: dough.gmane.org 1270324571 15364 80.91.229.12 (3 Apr 2010 19:56:11 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 3 Apr 2010 19:56:11 +0000 (UTC) Cc: 5829@debbugs.gnu.org To: Jason Rumney Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Apr 03 21:56:05 2010 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1Ny9Rp-0001Uv-Ls for geb-bug-gnu-emacs@m.gmane.org; Sat, 03 Apr 2010 21:56:01 +0200 Original-Received: from localhost ([127.0.0.1]:42559 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ny9Rp-0005EK-3S for geb-bug-gnu-emacs@m.gmane.org; Sat, 03 Apr 2010 15:56:01 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Ny9Rk-0005CQ-6R for bug-gnu-emacs@gnu.org; Sat, 03 Apr 2010 15:55:56 -0400 Original-Received: from [140.186.70.92] (port=48105 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ny9Rj-0005AX-0b for bug-gnu-emacs@gnu.org; Sat, 03 Apr 2010 15:55:55 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Ny9Rh-0007sf-HV for bug-gnu-emacs@gnu.org; Sat, 03 Apr 2010 15:55:54 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:38184) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Ny9Rh-0007sU-Fm for bug-gnu-emacs@gnu.org; Sat, 03 Apr 2010 15:55:53 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1Ny9EI-0004zM-Hp; Sat, 03 Apr 2010 15:42:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: MON KEY Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 03 Apr 2010 19:42:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 5829 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 5829-submit@debbugs.gnu.org id=B5829.127032368319170 (code B ref 5829); Sat, 03 Apr 2010 19:42:02 +0000 Original-Received: (at 5829) by debbugs.gnu.org; 3 Apr 2010 19:41:23 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Ny9Df-0004z9-4m for submit@debbugs.gnu.org; Sat, 03 Apr 2010 15:41:23 -0400 Original-Received: from mail-gx0-f212.google.com ([209.85.217.212]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Ny9Dd-0004z2-33 for 5829@debbugs.gnu.org; Sat, 03 Apr 2010 15:41:21 -0400 Original-Received: by gxk4 with SMTP id 4so2147082gxk.5 for <5829@debbugs.gnu.org>; Sat, 03 Apr 2010 12:41:16 -0700 (PDT) Original-Received: by 10.150.91.6 with HTTP; Sat, 3 Apr 2010 12:41:16 -0700 (PDT) In-Reply-To: <87iq88h1r5.fsf@home.jasonrumney.net> X-Google-Sender-Auth: e9435edadb92d9a9 Original-Received: by 10.151.133.18 with SMTP id k18mr281044ybn.101.1270323676540; Sat, 03 Apr 2010 12:41:16 -0700 (PDT) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Sat, 03 Apr 2010 15:42:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) 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: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:35899 Archived-At: On Sat, Apr 3, 2010 at 1:41 PM, Jason Rumney wrote: > > Why does hfy-cmap need to use rbg.txt instead of color-name-rgb-alist? > Indeed. I don't disagree. There is also that nice big list of rgb values in :FILE src/w32fns.c Maybe a better question is to ask why: (length color-name-rgb-alist) ;=>657 (length hfy-fallback-colour-map) ;=>752 (length w32-color-map) ;=> 783 (assoc-string "deepskyblue" color-name-rgb-alist) ;=> ("deepskyblue" 0 49087 65535) (assoc-string "deep sky blue" color-name-rgb-alist) ;=> nil (assoc-string "deepskyblue" hfy-fallback-colour-map) ;=> nil (assoc-string "deep sky blue" hfy-fallback-colour-map) ;=> ("deep sky blue" 0 49087 65535) (assoc-string "deepskyblue" w32-color-map) ;=>nil (assoc-string "deep sky blue" w32-color-map) ;=> ("deep sky blue" . 16760576) (xw-color-values "deep sky blue") ;=> (0 49087 65535) (xw-color-values "deep sky blue") ;=> (0 49087 65535) FWIW I have no opinion whatsoever as to whether this is good or bad w/re to hfy-cmap/htmlfontify.el/W32 compatibility. I do however find it frustrating that there are so may _different_ disparate `color specs' (re)provided throughout various Emacs packages (as distributed and otherwise) -- i don't believe this is necessarily a W32 specific problem. I'm sure we're all guilty of duplicating pre-existing code already provided, but this one just seems to continually resurface. Come to think of it hasn't color spec code duplication been discussed recently on emacs-devel? /s_P\