[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#51715: defface forms not having dynamic value
From: |
Stefan Kangas |
Subject: |
bug#51715: defface forms not having dynamic value |
Date: |
Wed, 10 Nov 2021 07:08:59 -0800 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) |
Lars Ingebrigtsen <larsi@gnus.org> writes:
> irenezerafa <irenezerafa@protonmail.com> writes:
>
>> '( (default (:inherit rainbow-delimiters-base-face))
>> ( ((class color) (background light))
>> :foreground ,(nth i light-colors))
>> ( ((class color) (background dark))
>> :foreground ,(nth i dark-colors)) )
>> ,(format "Nested delimiter face, depth %d." (1+ i))
>
> This would be nice if possible, but I don't think it's practical. It
> would mean that (in general) Emacs would have to recalculate faces
> whenever a variable changes, and that would make Emacs very slow.
But maybe we could allow the above in combination with a function to
refresh all face definitions? I'm not sure it's worth the effort in
comparison with just fixing the load order though, so it might still be
a wontfix.