[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#15668: 24.3.50; No font lock on active region
From: |
Eli Zaretskii |
Subject: |
bug#15668: 24.3.50; No font lock on active region |
Date: |
Tue, 22 Oct 2013 19:28:15 +0300 |
> From: Jan Djärv <jan.h.d@swipnet.se>
> Date: Tue, 22 Oct 2013 18:14:03 +0200
> Cc: darren.hoo@gmail.com,
> 15668@debbugs.gnu.org
>
> Hello.
>
> 21 okt 2013 kl. 21:06 skrev Eli Zaretskii <eliz@gnu.org>:
>
> >> From: Jan Djärv <jan.h.d@swipnet.se>
> >> Date: Mon, 21 Oct 2013 20:47:25 +0200
> >> Cc: Darren Hoo <darren.hoo@gmail.com>,
> >> 15668@debbugs.gnu.org
> >>
> >> It would be nice if one could define a face with a foreground color to be
> >> used when foreground and background otherwise are to similar.
> >
> > Sounds like a simple enough extension to defface.
>
> Well, yes, but I envisioned that querying the face for the foreground would
> automatically give the "fallback" foreground when the background is close to
> the foreground that would otherwise be used.
That's what I had in mind, yes.
> I think the calculation of close and maybe handling face inheritance is a bit
> tricky.
Some distance in the RGB space might fit the former. I'm quite sure
color comparison is something for which algorithms are readily
available.