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

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

bug#40336: default face spec doesn't get overriden


From: Bad Blue Bull
Subject: bug#40336: default face spec doesn't get overriden
Date: Tue, 31 Mar 2020 01:38:40 +0300

Maybe I'm getting something wrong.

> ‘default’
> This element of SPEC doesn’t match any terminal; instead, it
> specifies defaults that apply to all terminals. This element,
> if used, must be the first element of SPEC. Each of the
> following elements can override any or all of these defaults.


(progn
  (face-spec-set 'zzz
                 '((default  :background "red")
                   (((background dark)) :weight bold :background "black" 
:foreground "White"  )
                   (((background light)) :weight bold :background "yellow" 
:foreground "Black"  )
                   ))

  (insert (propertize "XXX" 'face 'zzz)))


Eval it and see default background gets applied despite it should be overriden 
by a spec line that matches terminal's background.





reply via email to

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