[Top][All Lists]

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

Re:Re: face-remapping-alist can not override internal-border face?

From: tumashu
Subject: Re:Re: face-remapping-alist can not override internal-border face?
Date: Sun, 10 Mar 2019 18:14:37 +0800 (CST)

At 2019-03-10 01:16:36, "Eli Zaretskii" <address@hidden> wrote:
>> Date: Sat, 9 Mar 2019 00:19:56 +0800 (CST)
>> From: tumashu  <address@hidden>
>> Cc: "address@hidden" <address@hidden>
>> Sorry, I do not understand this,  does this mean: test is inherited to 
>> default face,
>> so internal-border is remapped to default instead of test? but the below code
>> seem to not work too:
>> (defface test
>>   '((:background "green"))
>>   "Face used by the ivy-posframe."
>>   :group 'ivy-posframe)
>> (setq face-remapping-alist '((internal-border . test)))
>> (make-frame '((internal-border-width . 100)))
>You are right.  I see that when we draw the border, we don't consult
>face-remapping-alist.  But I'm not sure we should, because
>face-remapping-alist can be buffer-local (and makes most sense when
>it's buffer-local), whereas the internal-border face affects the
>entire frame.
>So maybe instead tell why you wanted to use face-remapping-alist
>instead of simply changing the face's attributes?

I just want to child-frame have its own border color, i do not know face have 
"frame" argument
so I use a buffer-local face-remapping-alist to this job :-)

reply via email to

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