Suppose that you use .Xdefaults to setup the 'default face when you are
running under X.
itchy% xrdb -q | fgrep -i emacs
Emacs*menubar*Font:-*-helvetica-bold-r-*-*-*-140-*-*-*-*-iso8859-*
Emacs*menubar*Foreground:black
Emacs.background:black
Emacs.backgroundMode:dark
Emacs.bitmapIcon:on
Emacs.bold-italic.attributeFont:-*-Courier-bold-o-*-*-*-140-75-75-*-*-ISO8859-1
Emacs.bold.attributeFont:-*-Courier-bold-R-*-*-*-140-75-75-*-*-ISO8859-1
Emacs.default.attributeFont:-*-Courier-Medium-R-*-*-*-140-75-75-*-*-ISO8859-1
Emacs.font:-*-Courier-Medium-R-*-*-*-140-75-75-*-*-ISO8859-1
Emacs.foreground:white
Emacs.italic.attributeFont:-*-Courier-Medium-o-*-*-*-140-75-75-*-*-ISO8859-1
itchy%
But suppose that you use customize to set up 'default when you are running
under mswindows,
(custom-set-faces
'(default ((((type mswindows) (class color))
(:foreground "white" :background "black"))) t)
...)
faces.el contains the following code around line 1210 or so...
(let ((frames (relevant-custom-frames)))
(reset-face face)
(if (and (eq 'default face) (featurep 'x))
(x-init-global-faces))
(face-display-set face spec)
Here's what happens when custom-set-faces is working on the 'default face:
1) first the 'default face is reset.
2) next, x-init-global-faces is called, which, since the 'default face no
longer has any attributes, sets 'default to fg:black, bg:grey80, etc.
Where's the bug?
Is it that x-init-global-faces is called in face-spec-set? It wasn't in 20.4,
and everything seemed to work fine.
Is it that x-init-global-faces doesn't call x-init-face-from-resources to try
to setup 'default?
Thanks for your help.
--
Paul Stodghill <stodghil(a)cs.cornell.edu>
Dept. of Computer Science, Upson Hall, Ithaca, NY 14853
Phone: 607-254-8838 FAX: 607-255-4428
http://www.cs.cornell.edu/stodghil/