bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#25525: 25.1.90; add color highlighting to css mode


From: Eli Zaretskii
Subject: bug#25525: 25.1.90; add color highlighting to css mode
Date: Thu, 26 Jan 2017 21:32:55 +0200

> From: Tom Tromey <address@hidden>
> Cc: Tom Tromey <address@hidden>,  address@hidden
> 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.)





reply via email to

[Prev in Thread] Current Thread [Next in Thread]