From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.devel Subject: RE: Colour picker widget Date: Wed, 13 Jul 2011 10:35:23 -0700 Message-ID: <290A36DB441C43869607378FD875C0F5@us.oracle.com> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1310581183 10825 80.91.229.12 (13 Jul 2011 18:19:43 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 13 Jul 2011 18:19:43 +0000 (UTC) To: "'Vivek Dasmohapatra'" , Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jul 13 20:19:39 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Qh424-0002jm-Cd for ged-emacs-devel@m.gmane.org; Wed, 13 Jul 2011 20:19:36 +0200 Original-Received: from localhost ([::1]:59829 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qh423-0005zm-DF for ged-emacs-devel@m.gmane.org; Wed, 13 Jul 2011 14:19:35 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:34169) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qh3Lc-0002nD-3N for emacs-devel@gnu.org; Wed, 13 Jul 2011 13:35:49 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qh3LZ-0002Af-Ro for emacs-devel@gnu.org; Wed, 13 Jul 2011 13:35:43 -0400 Original-Received: from rcsinet15.oracle.com ([148.87.113.117]:42221) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qh3LZ-0002AW-9O for emacs-devel@gnu.org; Wed, 13 Jul 2011 13:35:41 -0400 Original-Received: from rtcsinet21.oracle.com (rtcsinet21.oracle.com [66.248.204.29]) by rcsinet15.oracle.com (Switch-3.4.4/Switch-3.4.4) with ESMTP id p6DHZTUp006922 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 13 Jul 2011 17:35:31 GMT Original-Received: from acsmt356.oracle.com (acsmt356.oracle.com [141.146.40.156]) by rtcsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id p6DHZRPU006992 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 13 Jul 2011 17:35:28 GMT Original-Received: from abhmt114.oracle.com (abhmt114.oracle.com [141.146.116.66]) by acsmt356.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id p6DHZMd4006143; Wed, 13 Jul 2011 12:35:22 -0500 Original-Received: from dradamslap1 (/130.35.178.194) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Wed, 13 Jul 2011 10:35:22 -0700 X-Mailer: Microsoft Office Outlook 11 In-Reply-To: Thread-Index: AcxBgXqTjxx3wbMuRPSZr7Gt+Ofy8QAASe/w X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6109 X-Source-IP: rtcsinet21.oracle.com [66.248.204.29] X-CT-RefId: str=0001.0A090209.4E1DD763.0078:SCFSTAT5015188, ss=1, re=-4.000, fgs=0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 1) X-Received-From: 148.87.113.117 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:142006 Archived-At: > Hi - I've been playing around with a colour-picker widget for > emacs, and have gotten it into a somewhat usable state - would > upstream be interested in adopting such a widget? > > M-x colour-widget-test RET after loading the file to see it > in action. > > By default it displays all the named colours, but it can take a list > of colours to display instead. It works on the console too, although > it's not quite as well laid out there (can't stretch spaces on a > terminal with display properties, so the squares aren't, er, square). See also: 1. http://www.emacswiki.org/emacs/download/palette.el http://www.emacswiki.org/emacs/ColorPalette 2. `list-colors-display' and its optional LIST argument. (LIST can include unnamed colors, such as "#999333666".)