On Mon, 2001-12-17 at 14:27, Michael Toomim wrote:
I'm not sure what frame-notice-user-settings is for, but I fixed
the
problem for myself by inserting the following five lines into my init.el
file:
(add-hook 'after-init-hook
(lambda ()
(set-frame-property (selected-frame) 'background-mode nil)
(set-frame-property (selected-frame) 'custom-properties nil)
(initialize-custom-faces (selected-frame))))
Is this what you were suggesting should go into
frame-notice-user-settings()?
Could a patch like this get folded into XEmacs?
In fact, we could fix the other issues you mentioned (refreshing the
faces when other things change the background-mode from light to dark,
etc.) by wrapping these three statements up in a refresh-frame-faces()
function.
It could be called whenever the default face gets its color changed from
light to dark or dark to light, or when the variable
`frame-background-mode' is modified through custom. It would need to be
called on every frame in (frame-list).
Of course, refresh-frame-faces() is a bad name. I haven't looked at
enough custom-faces code to be able to choose a good one.
Michael