[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: |
Leo |
Subject: |
Re: Same 'face' spec initialized to different values for x and terminal |
Date: |
Mon, 04 Jun 2007 16:40:39 +0100 |
User-agent: |
Gnus/5.110007 Emacs 23 (20070531) MULE/6.0 (HANACHIRUSATO) Fedora 7 (gnu/linux) |
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.
regards,
--
Leo <sdl.web AT gmail.com> (GPG Key: 9283AA3F)