[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#15668: 24.3.50; No font lock on active region
From: |
Jan Djärv |
Subject: |
bug#15668: 24.3.50; No font lock on active region |
Date: |
Fri, 1 Nov 2013 16:54:46 +0100 |
Hello.
22 okt 2013 kl. 18:28 skrev Eli Zaretskii <eliz@gnu.org>:
>> 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.
Actually there is a color_distance function in xfaces.c already.
I implemented :distant-foreground to be used as a fallback, checked in to trunk.
Marking this bug as done.
Jan D.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- bug#15668: 24.3.50; No font lock on active region,
Jan Djärv <=