help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: face-remap-add-relative versus set-face-attribute


From: Emanuel Berg
Subject: Re: face-remap-add-relative versus set-face-attribute
Date: Sun, 13 Feb 2022 10:19:52 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

goncholden wrote:

>> I want them the same color, so I copy the color of
>> font-lock-comment-face to font-lock-comment-delimiter-face.
>
> I have done as follows, but the face-attribute is not
> correct because I get Wrong type argument: frame-live-p,
> :weight
>
> (defun richkov-annotation-font-weight ()
>   "Use normal weight typeface for comments."
>   (set-face-attribute 'font-lock-comment-face nil :weight 'normal)
>   (set-face-attribute 'font-lock-comment-delimiter-face
>                     :weight (face-attribute 'font-lock-comment-face :weight) 
> ))

It is the second `set-face-attribute' ...

-- 
underground experts united
https://dataswamp.org/~incal




reply via email to

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