GNU bug report logs -
#8454
24.0; Emacs does not apply additional custom faces from theme
Previous Next
Full log
Message #23 received at 8454 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
In emacs 23.3, I tried to build a minimal test case that would exhibit
some of the problems cited here, and failed. What I wrote is below, and
loading it with `emacs -Q -l test.el' seems to produce the expected
results. If there *is* a real problem, it seems to me, some simple
variation on this code should show it.
[test.el (text/emacs-lisp, inline)]
;; define a couple of faces to be used in the theme
(defface face1
'((t :background "pink"))
"first test face")
(defface face2
'((t :background "yellow"))
"second test face")
;; simulate (load 'theme1)
(deftheme theme1
"1st test theme")
(custom-theme-set-faces
'theme1
'(face2 ((t (:slant italic :inherit (face1)))))
'(face3 ((t (:background "yellow"))))
'(face4 ((t (:inherit (face3))))))
(provide-theme 'theme1)
;; done loading theme1
;; define some more faces used in the theme
(defface face3
'((t :background "pink"))
"3rd test face")
(defface face4
'((t :slant italic))
"4th test face")
;; inspect the faces
(setq inhibit-startup-screen t)
(customize-apropos-faces "^face[0-9]")
This bug report was last modified 12 years and 239 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.