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

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

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


From: GNU bug Tracking System
Subject: bug#40336: closed (default face spec doesn't get overriden)
Date: Sat, 04 Apr 2020 07:02:01 +0000

Your message dated Sat, 04 Apr 2020 10:00:57 +0300
with message-id <address@hidden>
and subject line Re: bug#40336: default face spec doesn't get overriden
has caused the debbugs.gnu.org bug report #40336,
regarding default face spec doesn't get overriden
to be marked as done.

(If you believe you have received this mail in error, please contact
address@hidden.)


-- 
40336: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=40336
GNU Bug Tracking System
Contact address@hidden with problems
--- Begin Message --- Subject: 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.



--- End Message ---
--- Begin Message --- Subject: Re: bug#40336: default face spec doesn't get overriden Date: Sat, 04 Apr 2020 10:00:57 +0300
> From: Bad Blue Bull <address@hidden>
> Date: Sat, 04 Apr 2020 01:27:16 +0300
> 
> Yes, well done.

Thanks, installed on the master branch.


--- End Message ---

reply via email to

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