emacs-devel
[Top][All Lists]
Advanced

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

Re: [PATCH] Re: About the :distant-foreground face attribute


From: Stefan Monnier
Subject: Re: [PATCH] Re: About the :distant-foreground face attribute
Date: Mon, 13 Jan 2014 20:45:03 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

>>> If you want the :distant-foreground behavior, it can be accommodated
>>> in this patch. This patch also permits other schemes that some users
>>> might find more useful. We should push policy to user customization
>>> when possible instead of hardcoding policy in the logic of
>>> face attributes.
>> FWIW, I like the idea of being able to compute the color dynamically.
>> I also would welcome a way to specify "color filters", e.g. a face which
>> "darkens the foreground color".  IOW the equivalent of the
>> floating-point :height settings, but for colors.
> You can write something like that in my setup --- we actually
> call :contrast-function on every face realization. There's no reason it has
> to act only on certain conditions, although that's what all the existing
> implementations do.

There are some differences, tho, w.r.t what the function sees:
does it see the fully merged face, or does it only see the face
merged up to the point where the filter appears.

The point of :distant-foreground is that it looks at the fully merged
face, whereas the floating-point :height settings apply to the face
merged up to the point where that :height appears.  The difference is
that "higher up" attributes can still override the result.

Both behaviors make sense in different circumstances.


        Stefan



reply via email to

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