From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.devel Subject: RE: list-colors-display: display all color names Date: Tue, 4 Jan 2005 08:37:03 -0800 Message-ID: References: <87brc5a99w.fsf@jurta.org> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1104856688 18147 80.91.229.6 (4 Jan 2005 16:38:08 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 4 Jan 2005 16:38:08 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jan 04 17:37:54 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1Clrgv-0000Cu-00 for ; Tue, 04 Jan 2005 17:37:54 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1Clrs8-00024J-KV for ged-emacs-devel@m.gmane.org; Tue, 04 Jan 2005 11:49:28 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1Clrrv-00021J-0Z for emacs-devel@gnu.org; Tue, 04 Jan 2005 11:49:15 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1Clrrq-0001yc-BK for emacs-devel@gnu.org; Tue, 04 Jan 2005 11:49:12 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1Clrrp-0001y0-KY for emacs-devel@gnu.org; Tue, 04 Jan 2005 11:49:09 -0500 Original-Received: from [141.146.126.230] (helo=agminet03.oracle.com) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1ClrgK-00086N-UP; Tue, 04 Jan 2005 11:37:17 -0500 Original-Received: from agminet03.oracle.com (localhost [127.0.0.1]) by agminet03.oracle.com (Switch-3.1.4/Switch-3.1.0) with ESMTP id j04Gb9po013867; Tue, 4 Jan 2005 08:37:09 -0800 Original-Received: from rgmsgw301.us.oracle.com (rgmsgw301.us.oracle.com [138.1.191.50]) by agminet03.oracle.com (Switch-3.1.4/Switch-3.1.0) with ESMTP id j04Gb7j1013824; Tue, 4 Jan 2005 08:37:07 -0800 Original-Received: from rgmsgw301.us.oracle.com (localhost [127.0.0.1]) by rgmsgw301.us.oracle.com (Switch-3.1.4/Switch-3.1.0) with ESMTP id j04Gb6SQ003908; Tue, 4 Jan 2005 09:37:06 -0700 Original-Received: from dradamslap (dhcp-amer-csvpn-gw2-141-144-82-222.vpn.oracle.com [141.144.82.222]) by rgmsgw301.us.oracle.com (Switch-3.1.4/Switch-3.1.0) with SMTP id j04Gb38G003891 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NO); Tue, 4 Jan 2005 09:37:05 -0700 Original-To: "Juri Linkov" , X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0) In-reply-to: <87brc5a99w.fsf@jurta.org> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 Importance: Normal 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: main.gmane.org gmane.emacs.devel:31830 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:31830 It's possible to use #RRGGBB hex color specifications instead of color names. One reason to replace a color name with #RRGGBB is to use slightly modified RGB values than a color has. Library doremi-frm.el changes colors incrementally that way: http://www.emacswiki.org/elisp/doremi-frm.el. But it might be difficult for users to obtain corresponding hex values. Also, users might want to find the color name corresponding to the known RGB value. Library hexrgb.el has functions that convert between decimal and hex RGB color specs: http://www.emacswiki.org/elisp/hexrgb.el. There are also a couple useful functions in hexl.el and float.el. All I propose now is to add color hex values to the *Colors* buffer. I think that placing them at the right window edge would not be distracting. Good idea. It might also be useful to somehow get the hex code for a color swatch in Customize (e.g. as a tooltip or when you click Show Face).