GNU bug report logs - #40336
default face spec doesn't get overriden

Previous Next

Package: emacs;

Reported by: Bad Blue Bull <ibmbull <at> yandex.ru>

Date: Mon, 30 Mar 2020 22:39:01 UTC

Severity: normal

Merged with 18074

Found in version 24.3.50

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Bad Blue Bull <ibmbull <at> yandex.ru>
Subject: bug#40336: closed (Re: bug#40336: default face spec doesn't get
 overriden)
Date: Sat, 04 Apr 2020 07:02:02 +0000
[Message part 1 (text/plain, inline)]
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 40336 <at> debbugs.gnu.org.

-- 
40336: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=40336
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Eli Zaretskii <eliz <at> gnu.org>
To: Bad Blue Bull <ibmbull <at> yandex.ru>
Cc: 40336-done <at> debbugs.gnu.org
Subject: Re: bug#40336: default face spec doesn't get overriden
Date: Sat, 04 Apr 2020 10:00:57 +0300
> From: Bad Blue Bull <ibmbull <at> yandex.ru>
> Date: Sat, 04 Apr 2020 01:27:16 +0300
> 
> Yes, well done.

Thanks, installed on the master branch.

[Message part 3 (message/rfc822, inline)]
From: Bad Blue Bull <ibmbull <at> yandex.ru>
To: "bug-gnu-emacs <at> gnu.org" <bug-gnu-emacs <at> gnu.org>
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.



This bug report was last modified 4 years and 267 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.