From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: list-colors-display: display all color names Date: Tue, 04 Jan 2005 16:57:05 -0500 Message-ID: <87vfackhi9.fsf-monnier+emacs@gnu.org> References: <87d5wwsuly.fsf@jurta.org> <87brc5a99w.fsf@jurta.org> <01c4f2a1$Blat.v2.2.2$dde14140@zahav.net.il> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1104875896 13670 80.91.229.6 (4 Jan 2005 21:58:16 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 4 Jan 2005 21:58:16 +0000 (UTC) Cc: Juri Linkov , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jan 04 22:58: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 1Clwgj-0004yC-00 for ; Tue, 04 Jan 2005 22:58:01 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1Clwrw-0000yD-MZ for ged-emacs-devel@m.gmane.org; Tue, 04 Jan 2005 17:09:36 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1ClwrZ-0000pj-UQ for emacs-devel@gnu.org; Tue, 04 Jan 2005 17:09:14 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1ClwrX-0000pK-J9 for emacs-devel@gnu.org; Tue, 04 Jan 2005 17:09:11 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1ClwrX-0000op-3N for emacs-devel@gnu.org; Tue, 04 Jan 2005 17:09:11 -0500 Original-Received: from [209.226.175.4] (helo=tomts16-srv.bellnexxia.net) by monty-python.gnu.org with esmtp (Exim 4.34) id 1Clwfq-00029K-5z; Tue, 04 Jan 2005 16:57:06 -0500 Original-Received: from alfajor ([67.71.119.166]) by tomts16-srv.bellnexxia.net (InterMail vM.5.01.06.10 201-253-122-130-110-20040306) with ESMTP id <20050104215705.XIBN1836.tomts16-srv.bellnexxia.net@alfajor>; Tue, 4 Jan 2005 16:57:05 -0500 Original-Received: by alfajor (Postfix, from userid 1000) id 1D5ECD731F; Tue, 4 Jan 2005 16:57:05 -0500 (EST) Original-To: Eli Zaretskii In-Reply-To: <01c4f2a1$Blat.v2.2.2$dde14140@zahav.net.il> (Eli Zaretskii's message of "Tue, 04 Jan 2005 23:09:47 +0200") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/21.3.50 (gnu/linux) 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:31846 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:31846 >> 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? A guess a function that returns the closest color-name would be good enough. What that's good for, I don't know. >> 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. I agree on the `#'. But since few (if any) system really support more than 8bit per color, it seems OK to use the #RRGGBB rather than the more verbose #RRRRGGGGBBBB. After all, that's what people use in practice, in my experience. > And second, what do you suggest to display on character terminals? Why would it need to be any different? Stefan