From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ted Zlatanov Newsgroups: gmane.emacs.devel Subject: Re: /srv/bzr/emacs/trunk r102478: shr.el (shr-tag-color-check):Convert colors to hexadecimal with shr-color->hexadecimal. Date: Fri, 10 Dec 2010 13:19:53 -0600 Organization: =?utf-8?B?0KLQtdC+0LTQvtGAINCX0LvQsNGC0LDQvdC+0LI=?= @ Cienfuegos Message-ID: <87mxod306e.fsf@lifelogs.com> References: <961v6bom3j.fsf@fencepost.gnu.org> <87eiabdc04.fsf@stupidchicken.com> <87ipznhhe3.fsf@keller.adm.naquadah.org> <87mxoz7mml.fsf@stupidchicken.com> <874ob71y6v.fsf@stupidchicken.com> <4A76DA00C61D4637AC671E53FB7A4FCB@us.oracle.com> <87d3pvf5s2.fsf@keller.adm.naquadah.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1292009125 20133 80.91.229.12 (10 Dec 2010 19:25:25 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 10 Dec 2010 19:25:25 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Dec 10 20:25:21 2010 Return-path: Envelope-to: ged-emacs-devel@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 1PR8am-0000vQ-Ce for ged-emacs-devel@m.gmane.org; Fri, 10 Dec 2010 20:25:20 +0100 Original-Received: from localhost ([127.0.0.1]:59143 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PR8ak-0002wL-Le for ged-emacs-devel@m.gmane.org; Fri, 10 Dec 2010 14:25:18 -0500 Original-Received: from [140.186.70.92] (port=40344 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PR8ae-0002vw-0O for emacs-devel@gnu.org; Fri, 10 Dec 2010 14:25:12 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PR8ac-0004HQ-Ey for emacs-devel@gnu.org; Fri, 10 Dec 2010 14:25:11 -0500 Original-Received: from lo.gmane.org ([80.91.229.12]:38034) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PR8ac-0004Gw-4C for emacs-devel@gnu.org; Fri, 10 Dec 2010 14:25:10 -0500 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1PR8aa-0000qI-Bu for emacs-devel@gnu.org; Fri, 10 Dec 2010 20:25:08 +0100 Original-Received: from 38.98.147.130 ([38.98.147.130]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 10 Dec 2010 20:25:08 +0100 Original-Received: from tzz by 38.98.147.130 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 10 Dec 2010 20:25:08 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 40 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 38.98.147.130 X-Face: bd.DQ~'29fIs`T_%O%C\g%6jW)yi[zuz6; d4V0`@y-~$#3P_Ng{@m+e4o<4P'#(_GJQ%TT= D}[Ep*b!\e,fBZ'j_+#"Ps?s2!4H2-Y"sx" User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:dnirkC9rdFzKsgK+p7ttOxmwME8= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) 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: news.gmane.org gmane.emacs.devel:133582 Archived-At: On Wed, 24 Nov 2010 23:53:52 -0500 Stefan Monnier wrote: >> We could start choosing more mellifluous hues by default, and have >> color-lab ensure that the text would be readable for all users... That >> is, reduce the fruit salad-ey-ness that Emacs has now. SM> That would be wonderful indeed. Not sure easy that would be (what with SM> having to take into account limitations such as an 8- or 16-color text SM> terminal), but it sounds quite intriguing. Lars' original proposition would be nice, I think, if there was a facility to convert (using his example) (defface gnus-group-news-2-empty '((((class color) (background dark)) (:foreground "turquoise")) (((class color) (background light)) (:foreground "CadetBlue4")) (t ())) to (defface gnus-group-news-2-empty ...) (color-lab-install-mellifluous-colors 'gnus-group-news-2-empty :dark (:foreground "turquoise") :light (:foreground "CadetBlue4")) ;; or... (color-lab-install-mellifluous-dark-colors 'gnus-group-news-2-empty (:foreground "turquoise")) (color-lab-install-mellifluous-light-colors 'gnus-group-news-2-empty (:foreground "CadetBlue4")) Then we can tweak `color-lab-install-mellifluous-colors' to DTRT in all circumstances, while the package author doesn't have to worry about those tweaks because his code will work regardless. In other words, we'd be switching from a purely data-driven approach with `defface' to a more flexible declarative approach of `defface' plus color-lab functions. Ted