GNU bug report logs - #25525
25.1.90; add color highlighting to css mode

Previous Next

Package: emacs;

Reported by: Tom Tromey <tom <at> tromey.com>

Date: Wed, 25 Jan 2017 08:08:01 UTC

Severity: wishlist

Tags: patch

Found in version 25.1.90

Done: Tom Tromey <tom <at> tromey.com>

Bug is archived. No further changes may be made.

Full log


Message #41 received at 25525 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Tom Tromey <tom <at> tromey.com>
Cc: 25525 <at> debbugs.gnu.org
Subject: Re: bug#25525: 25.1.90; add color highlighting to css mode
Date: Thu, 26 Jan 2017 21:32:55 +0200
> From: Tom Tromey <tom <at> tromey.com>
> Cc: Tom Tromey <tom <at> tromey.com>,  25525 <at> 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.)




This bug report was last modified 8 years and 80 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.