[Top][All Lists]

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

Re: About the :distant-foreground face attribute

From: Eli Zaretskii
Subject: Re: About the :distant-foreground face attribute
Date: Wed, 08 Jan 2014 05:45:27 +0200

> From: Chong Yidong <address@hidden>
> Date: Wed, 08 Jan 2014 05:57:41 +0800
> Cc: emacs-devel <address@hidden>
> The feature does not fit well with the design of the rest of the
> face-handling code.  We already have a mechanism for checking to see
> when to use a particular face: the DISPLAY element in a face spec.  The
> :distant-foreground face attribute, by its very existence, is redundant
> with what the DISPLAY element was meant to do.  This adds extra
> complexity to the design, for no good reason.
> If you need to check for a background, the right thing would be to
> extend the DISPLAY feature to do what you need.  For example, a DISPLAY
> element of `(background dark)' is used to test for a dark background.
> Maybe what you want is to be able to specify a color in place of `dark',
> which would mean a background close to that color.

I don't understand this criticism.  How is this attribute different
from min-colors?

reply via email to

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