From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tim X Newsgroups: gmane.emacs.help Subject: Re: Naming new GUI colors? Date: Sat, 24 Jul 2010 09:50:30 +1000 Organization: Unlimited download news at news.astraweb.com Message-ID: <87fwz9n4ft.fsf@puma.rapttech.com.au> References: <1f9d43c5-e83f-47f8-bbed-15f0f96944b2@l14g2000yql.googlegroups.com> <871vaxn6tg.fsf@puma.rapttech.com.au> <87y6d22obz.fsf@lifelogs.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1291850043 5248 80.91.229.12 (8 Dec 2010 23:14:03 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 8 Dec 2010 23:14:03 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Dec 09 00:13:59 2010 Return-path: Envelope-to: geh-help-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 1PQTCw-0005Jv-HV for geh-help-gnu-emacs@m.gmane.org; Thu, 09 Dec 2010 00:13:58 +0100 Original-Received: from localhost ([127.0.0.1]:44335 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PQTCv-0004Zm-MH for geh-help-gnu-emacs@m.gmane.org; Wed, 08 Dec 2010 18:13:57 -0500 Original-Path: usenet.stanford.edu!news.glorb.com!news2.glorb.com!news-xfer.nntp.sonic.net!news.astraweb.com!border1.newsrouter.astraweb.com!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) Cancel-Lock: sha1:F7D25k5uQLQlbeG4Re3sfTqPfpE= Original-Lines: 31 Original-NNTP-Posting-Host: 654f9a6f.news.astraweb.com Original-X-Trace: DXC=_M75`L9F]9NOObP71A_HVDL?0kYOcDh@Ji=VFiPm?<[E; jJ_:3P6mNMIhndn4oVl4@KCCQUG[m0]I Original-Xref: usenet.stanford.edu gnu.emacs.help:180003 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:76196 Archived-At: Ted Zlatanov writes: > On Wed, 21 Jul 2010 08:10:03 +1000 Tim X wrote: > > TX> Elena writes: >>> Hello, >>> >>> is there a way to name new GUI colors in Emacs, and get them listed in >>> `list-color-display'? Something like this: >>> >>> (set-named-color "army green" "#4B5320") >>> >>> ELisp reference only talks about tty. >>> > > TX> I don't believe so. The colour names are derived from the rgb.txt file > TX> (normally in the /etc/X11 directory on most Linux systems. You could > TX> possibly add your own colour names to this file, but it is prtty > TX> extensive already. > > That seems like a pretty bad limitation, especially where English is not > spoken. Emacs should at least allow naming colors (as opposed to faces) > IMHO. > I don't believe this is an emacs limitation, but rather a limitation of how X defines colour names. Tim -- tcross (at) rapttech dot com dot au