From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Tom Tromey Newsgroups: gmane.emacs.bugs Subject: bug#25525: 25.1.90; add color highlighting to css mode Date: Thu, 26 Jan 2017 10:13:33 -0700 Message-ID: <874m0l4ude.fsf@tromey.com> References: <87mvefh8br.fsf@tromey.com> <83inp32l50.fsf@gnu.org> <87inp3gigu.fsf@tromey.com> <8737g6hfyv.fsf@tromey.com> <83d1f93iyz.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1485450940 15902 195.159.176.226 (26 Jan 2017 17:15:40 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 26 Jan 2017 17:15:40 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.91 (gnu/linux) Cc: 25525@debbugs.gnu.org, Tom Tromey To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Jan 26 18:15:36 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cWndt-00035i-St for geb-bug-gnu-emacs@m.gmane.org; Thu, 26 Jan 2017 18:15:26 +0100 Original-Received: from localhost ([::1]:40115 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cWndz-0000mw-91 for geb-bug-gnu-emacs@m.gmane.org; Thu, 26 Jan 2017 12:15:31 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41079) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cWndZ-0000Uj-1u for bug-gnu-emacs@gnu.org; Thu, 26 Jan 2017 12:15:13 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cWndV-0005eX-U0 for bug-gnu-emacs@gnu.org; Thu, 26 Jan 2017 12:15:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:47598) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cWndV-0005eN-RV for bug-gnu-emacs@gnu.org; Thu, 26 Jan 2017 12:15:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cWndV-0002Ni-La for bug-gnu-emacs@gnu.org; Thu, 26 Jan 2017 12:15:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Tom Tromey Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 26 Jan 2017 17:15:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 25525 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 25525-submit@debbugs.gnu.org id=B25525.14854508699102 (code B ref 25525); Thu, 26 Jan 2017 17:15:01 +0000 Original-Received: (at 25525) by debbugs.gnu.org; 26 Jan 2017 17:14:29 +0000 Original-Received: from localhost ([127.0.0.1]:45797 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cWncz-0002Mk-KR for submit@debbugs.gnu.org; Thu, 26 Jan 2017 12:14:29 -0500 Original-Received: from gproxy8-pub.mail.unifiedlayer.com ([67.222.33.93]:43908) by debbugs.gnu.org with smtp (Exim 4.84_2) (envelope-from ) id 1cWncx-0002MX-BS for 25525@debbugs.gnu.org; Thu, 26 Jan 2017 12:14:28 -0500 Original-Received: (qmail 14555 invoked by uid 0); 26 Jan 2017 17:14:15 -0000 Original-Received: from unknown (HELO cmgw4) (10.0.90.85) by gproxy8.mail.unifiedlayer.com with SMTP; 26 Jan 2017 17:14:15 -0000 Original-Received: from box522.bluehost.com ([74.220.219.122]) by cmgw4 with id d5Dd1u01V2f2jeq015Dg68; Thu, 26 Jan 2017 10:13:41 -0700 X-Authority-Analysis: v=2.1 cv=JsBi8qIC c=1 sm=1 tr=0 a=GsOEXm/OWkKvwdLVJsfwcA==:117 a=GsOEXm/OWkKvwdLVJsfwcA==:17 a=L9H7d07YOLsA:10 a=9cW_t1CCXrUA:10 a=s5jvgZ67dGcA:10 a=IgFoBzBjUZAA:10 a=dtCbpQN9WzPdp4t20nAA:9 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tromey.com; s=default; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=4KewrpzDTHZ9FnIxRryCNVr8RF/Jo2DPMwMSUzsctRU=; b=MJyOpg6Io1rZ5a+C0BJbbnNv8A +m1Zgc7g5Mnn6xTilQHFwu1mAltVXkxoQ0BUzuR9/5SOP6Ny6d7cxJRVhH/kv//juSY5+aaZmmTp6 pAQF84xFfTey1VYLbBWEOSfIK; Original-Received: from 174-16-146-181.hlrn.qwest.net ([174.16.146.181]:60066 helo=pokyo) by box522.bluehost.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.87) (envelope-from ) id 1cWnc9-0000om-GX; Thu, 26 Jan 2017 10:13:37 -0700 X-Attribution: Tom In-Reply-To: <83d1f93iyz.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 26 Jan 2017 18:05:08 +0200") X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - box522.bluehost.com X-AntiAbuse: Original Domain - debbugs.gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - tromey.com X-BWhitelist: no X-Source-IP: 174.16.146.181 X-Exim-ID: 1cWnc9-0000om-GX X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: 174-16-146-181.hlrn.qwest.net (pokyo) [174.16.146.181]:60066 X-Source-Auth: tom+tromey.com X-Email-Count: 2 X-Source-Cap: ZWx5bnJvYmk7ZWx5bnJvYmk7Ym94NTIyLmJsdWVob3N0LmNvbQ== X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:128569 Archived-At: Eli> If all you need is to choose either black or white as the foreground Eli> color, then :distant-foreground is indeed not for you. Still, I'd Eli> suggest to use color-distance rather than to invent a new metric. Or Eli> maybe just always use the color that is complementary to the Eli> background color, as black and white seem arbitrary to me. I will test with complementary colors, but I am not sure those are always as visible. Black and white are arbitrary, but at least they work ok. I'm not sure there's a good way to use color distance to get the desired effect; if there were, surely Emacs core would be doing that already. Tom