emacs-devel
[Top][All Lists]
Advanced

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

Re: face-attribute and face-remapping-alist


From: Clément Pit-Claudel
Subject: Re: face-attribute and face-remapping-alist
Date: Wed, 31 Mar 2021 09:00:34 -0400
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.1

On 3/31/21 2:58 AM, Eli Zaretskii wrote:
> Sure, but the only change needed in all the cases you described in
> order to return attributes that are aware of the remapping is to look
> up the face in face-remapping-alist, before calling face-attribute.

You need to look it up recursively, which adds to the complexity.  And it's 
more complicated than that if you use the "inherit" argument, since you need to 
check whether the default face is remapped as well, and merge that with the 
real default face.



reply via email to

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