From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Eli Zaretskii" Newsgroups: gmane.emacs.devel Subject: Re: list-colors-display: display all color names Date: Tue, 04 Jan 2005 23:09:47 +0200 Message-ID: <01c4f2a1$Blat.v2.2.2$dde14140@zahav.net.il> References: <87d5wwsuly.fsf@jurta.org> <87brc5a99w.fsf@jurta.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: deer.gmane.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7BIT X-Trace: sea.gmane.org 1104873191 5681 80.91.229.6 (4 Jan 2005 21:13:11 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 4 Jan 2005 21:13:11 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jan 04 22:13:01 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 1ClvzB-0000wr-00 for ; Tue, 04 Jan 2005 22:13:01 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1ClwAO-0003bN-NB for ged-emacs-devel@m.gmane.org; Tue, 04 Jan 2005 16:24:36 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1ClwAF-0003av-3N for emacs-devel@gnu.org; Tue, 04 Jan 2005 16:24:27 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1ClwAD-0003a2-86 for emacs-devel@gnu.org; Tue, 04 Jan 2005 16:24:25 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1ClwAD-0003Zz-60 for emacs-devel@gnu.org; Tue, 04 Jan 2005 16:24:25 -0500 Original-Received: from [192.114.186.24] (helo=legolas.inter.net.il) by monty-python.gnu.org with esmtp (Exim 4.34) id 1ClvyV-00073R-4y for emacs-devel@gnu.org; Tue, 04 Jan 2005 16:12:19 -0500 Original-Received: from zaretski (IGLD-83-130-250-9.inter.net.il [83.130.250.9]) by legolas.inter.net.il (MOS 3.5.6-GR) with ESMTP id DLO89980 (AUTH halo1); Tue, 4 Jan 2005 23:11:59 +0200 (IST) Original-To: Juri Linkov X-Mailer: emacs 21.3.50 (via feedmail 8 I) and Blat ver 2.2.2 In-reply-to: <87brc5a99w.fsf@jurta.org> (message from Juri Linkov on Tue, 04 Jan 2005 11:07:55 +0200) 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:31844 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:31844 > From: Juri Linkov > Date: Tue, 04 Jan 2005 11:07:55 +0200 > Cc: emacs-devel@gnu.org > > It's possible to use #RRGGBB hex color specifications instead of > color names. Actually, where Emacs interprets such color specs, it uses #RRRRGGGGBBBB (i.e. 16 bits per color). In other places, it doesn't care whether you use 1, 2, 3, or 4 hex digits per principal color (it passes the spec verbatim to X functions). > it might be difficult for users to obtain corresponding hex values. How about adding a function color-values-hex, which calls color-values and then transforms the result into the hex #RGB notation? Would that fix this problem? > Also, users might want to find the color name corresponding to > the known RGB value. Is there any reasonably practical way to do that for an arbitrary RGB triplet? For more-or-less standard RGB values, the ones listed in tty-colors.el, doing that is simply a matter of searching the alist returned by tty-color-alist; if trhat is what you want, does this justify a new feature? > 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. For example: > > gray grey bebebe > light gray light grey, LightGray, LightGrey d3d3d3 First, if we do that, I'd suggest to use #BE12BE34BE56, i.e. prefix with # and use 4 digits per color. And second, what do you suggest to display on character terminals?