Subject: Re: bug#16969: Isearch: lazy-highlight face sometimes has foreground and background the same colour.

From: Alan Mackenzie <[email-masked]>
Date: Sun, 9 Mar 2014 13:25:44 +0000

On Sun, Mar 09, 2014 at 10:37:48AM +0100, Jan Djärv wrote:
> Hi.

> Alan Mackenzie skrev 2014-03-09 00:01:

> > I don't know what ":distant-foreground" means.  It doesn't seem to be in
> > the Elisp manual.

> You can't have looked very hard.

:-).  It was late at night.  I had the release version of the Elisp
manual open, not the trunk version.

> Faces => Face attributes:

> `:distant-foreground'
>       Alternative foreground color, a string.  This is like `:foreground'
>       but the color is only used as a foreground when the background
>       color is near to the foreground that would have been used.  This
>       is useful for example when marking text (i.e. the region face).
>       If the text has a foreground that is visible with the region face,
>       that foreground is used.  If the foreground is near the region
>       face background, `:distant-foreground' is used instead so the text
>       is readable.

Thanks!

> 	Jan D.

-- 
Alan Mackenzie (Nuremberg, Germany).