On 11 Oct 2000, Daniel Pittman <daniel(a)rimspace.net> wrote:
On 11 Oct 2000, Yoshiki Hayashi <yoshiki(a)xemacs.org> wrote:
> "Stephen J. Turnbull" <turnbull(a)sk.tsukuba.ac.jp> writes:
[...]
>> (1) Custom is _full_ of calls to reset-face type functions that
>> destroy user customizations unless they were made through
>> Custom.
>
> Not in this case. Suppose you use Alexander's .emacs and
> opened a new frame. As he wrote, it's shown in default
> face. Then evaluate (setq frame-background-mode 'dark) and
> open another frame. It's displayed in right faces.
Not in my case. I still see the same effects. I end up with the
font-lock-comment-face being cyan in the second frame, while it's
green in the first frame.
I made sure that `frame-background-mode' was set correctly, as well.
It seemed to be right.
Further to this, the face changes are made by `initialize-custom-faces'.
This is called from `custom-initialize-frame', because the global frame
properties don't match the new frame properties.
These values come from `get-custom-frame-properties', with the global
properties already being cached in `default-custom-frame-properties'.
The value in there, incidentally, has `light' as the background.
Daniel
--
Trust the art, not the artist.
-- Bruce Springsteen