[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Same 'face' spec initialized to different values for x and terminal
From: |
Dan Nicolaescu |
Subject: |
Re: Same 'face' spec initialized to different values for x and terminal |
Date: |
Mon, 04 Jun 2007 09:16:43 -0700 |
Leo <address@hidden> writes:
> Dear Eli,
>
> ----- Eli Zaretskii (2007-06-03) wrote:-----
>
> >> From: Leo <address@hidden>
> >> Date: Sun, 03 Jun 2007 21:56:18 +0100
> >>
> >> *NB*: emacs has a light background in both x and xterm. Thus it looks
> >> very weird the aforementioned face is initialized to the dark
> >> background value.
> >
> > Emacs cannot determine the background color on a text terminal, so it
> > assumes something. Without -nw, Emacs queries the window system about
> > the default color, so it can adjust its background mode.
> >
> > Try setting frame-background-mode to 'light in the xterm case, and I
> > think you will have the colors that you want.
>
> There are altogether 5 faces defined in dictem.el.
>
> With "emacs -nw -q -l dictem.el" in xterm, two of them initialize to
> light background values and three of them to dark background values:
>
> .----------------------------------+-------.
> | dictem-reference-definition-face | light |
> |----------------------------------+-------|
> | dictem-reference-m1-face | light |
> |----------------------------------+-------|
> | dictem-reference-m2-face | dark |
> |----------------------------------+-------|
> | dictem-reference-dbname-face | dark |
> |----------------------------------+-------|
> | dictem-database-description-face | dark |
> `----------------------------------+-------'
>
> Whatever emacs assumes for its background mode, something is wrong. I
> hope someone can see this problem and fix it.
This seems to work properly on the multi-tty branch. That branch has
a few changes for initializing faces on different frames. If nobody
looks at this issue now, it will hopefully be fixed when the multi-tty
branch is merged.