[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: |
Sun, 03 Jun 2007 22:20:20 +0100 |
User-agent: |
Gnus/5.110007 Emacs 23 (MULE 6.0; 2007-05-31) Fedora 7 (gnu/linux) |
----- 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.
I understand this.
But all other faces are correctly set for example, those in org.el. If I
set the spec to:
(defface dictem-database-description-face
'((((background light)) (:weight bold :foreground "darkblue"))
(((background dark)) (:weight bold :foreground "white")))
"The face that is used for displaying a database description"
:group 'dictem-faces)
It will initialize correctly in both xterm and X.
Seems there is a bug in Emacs.
> Try setting frame-background-mode to 'light in the xterm case, and I
> think you will have the colors that you want.
--
Leo <sdl.web AT gmail.com> (GPG Key: 9283AA3F)