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

From: [email-masked] (GNU bug Tracking System)
Date: Sat, 04 Apr 2020 07:02:02 +0000

Your bug report

#40336: default face spec doesn't get overriden

which was filed against the emacs package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
40336: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=40336
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: bug#40336: default face spec doesn't get overriden
From: Eli Zaretskii <[email-masked]>
To: Bad Blue Bull <[email-masked]>
Cc: [email-masked]
Date: Sat, 04 Apr 2020 10:00:57 +0300
List-Id: <debbugs-submit.debbugs.gnu.org>

> From: Bad Blue Bull <[email-masked]>
> Date: Sat, 04 Apr 2020 01:27:16 +0300
> 
> Yes, well done.

Thanks, installed on the master branch.

Subject: default face spec doesn't get overriden
From: Bad Blue Bull <[email-masked]>
To: "[email-masked]" <[email-masked]>
Date: Tue, 31 Mar 2020 01:38:40 +0300
List-Id: <debbugs-submit.debbugs.gnu.org>

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.