From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#25525: 25.1.90; add color highlighting to css mode Date: Thu, 26 Jan 2017 21:32:55 +0200 Message-ID: <834m0l39co.fsf@gnu.org> References: <87mvefh8br.fsf@tromey.com> <83inp32l50.fsf@gnu.org> <87inp3gigu.fsf@tromey.com> <8737g6hfyv.fsf@tromey.com> <83d1f93iyz.fsf@gnu.org> <874m0l4ude.fsf@tromey.com> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1485459267 30569 195.159.176.226 (26 Jan 2017 19:34:27 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 26 Jan 2017 19:34:27 +0000 (UTC) Cc: 25525@debbugs.gnu.org To: Tom Tromey Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Jan 26 20:34:23 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 1cWpo7-0006CS-Di for geb-bug-gnu-emacs@m.gmane.org; Thu, 26 Jan 2017 20:34:07 +0100 Original-Received: from localhost ([::1]:40756 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cWpoC-0004Gb-OT for geb-bug-gnu-emacs@m.gmane.org; Thu, 26 Jan 2017 14:34:12 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45275) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cWpo5-0004GV-BJ for bug-gnu-emacs@gnu.org; Thu, 26 Jan 2017 14:34:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cWpo2-0007d9-85 for bug-gnu-emacs@gnu.org; Thu, 26 Jan 2017 14:34:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:47836) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cWpo2-0007d3-5D for bug-gnu-emacs@gnu.org; Thu, 26 Jan 2017 14:34:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cWpo1-0005qz-VQ for bug-gnu-emacs@gnu.org; Thu, 26 Jan 2017 14:34:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 26 Jan 2017 19:34: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.148545920722455 (code B ref 25525); Thu, 26 Jan 2017 19:34:01 +0000 Original-Received: (at 25525) by debbugs.gnu.org; 26 Jan 2017 19:33:27 +0000 Original-Received: from localhost ([127.0.0.1]:46035 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cWpnS-0005q7-Qn for submit@debbugs.gnu.org; Thu, 26 Jan 2017 14:33:26 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:54077) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cWpnQ-0005pu-P5 for 25525@debbugs.gnu.org; Thu, 26 Jan 2017 14:33:25 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cWpnI-0007Kn-CU for 25525@debbugs.gnu.org; Thu, 26 Jan 2017 14:33:19 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:52578) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cWpnI-0007KZ-8i; Thu, 26 Jan 2017 14:33:16 -0500 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:3726 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1cWpnH-0007RO-0O; Thu, 26 Jan 2017 14:33:15 -0500 In-reply-to: <874m0l4ude.fsf@tromey.com> (message from Tom Tromey on Thu, 26 Jan 2017 10:13:33 -0700) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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:128588 Archived-At: > From: Tom Tromey > Cc: Tom Tromey , 25525@debbugs.gnu.org > Date: Thu, 26 Jan 2017 10:13:33 -0700 > > 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. I thought about something like (if (> (color-distance color "black") 292485) "black" "white") I think this is the equivalent of your test. (One reason for color-distance being unused could be that it isn't mentioned in the ELisp manual.)