From: Juri Linkov <juri@jurta.org>
To: Eli Zaretskii <eliz@gnu.org>
Cc: Leo <sdl.web@gmail.com>, emacs-devel@gnu.org
Subject: Re: Same 'face' spec initialized to different values for x and terminal
Date: Mon, 04 Jun 2007 00:23:33 +0300 [thread overview]
Message-ID: <877iqkoho0.fsf@jurta.org> (raw)
In-Reply-To: <ur6osvjeo.fsf@gnu.org> (Eli Zaretskii's message of "Mon\, 04 Jun 2007 00\:05\:03 +0300")
>> 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.
Interesting. I use dictem.el on both X and xterm and don't have the
reported problem. On xterm, Emacs correctly determines the background
color of this face.
On closer investigation, I discovered that Emacs doesn't determine
the background mode only when dictem.el is loaded from the command line
with `-nw -l dictem.el', as Leo did according to his report.
Really, when started only with `-nw' and without `-l dictem.el',
and later loading dictem.el with (load "dictem.el"),
default-frame-background-mode is 'light.
But
emacs --batch --eval '(message "mode: %s" default-frame-background-mode)'
prints
mode: nil
--
Juri Linkov
http://www.jurta.org/emacs/
next prev parent reply other threads:[~2007-06-03 21:23 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-06-03 20:56 Same 'face' spec initialized to different values for x and terminal Leo
2007-06-03 21:05 ` Eli Zaretskii
2007-06-03 21:20 ` Leo
2007-06-03 21:23 ` Juri Linkov [this message]
2007-06-03 21:34 ` Andreas Schwab
2007-06-03 21:57 ` Juri Linkov
2007-06-03 22:35 ` Andreas Schwab
2007-06-04 15:40 ` Leo
2007-06-04 16:16 ` Dan Nicolaescu
2007-09-13 16:43 ` Leo
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=877iqkoho0.fsf@jurta.org \
--to=juri@jurta.org \
--cc=eliz@gnu.org \
--cc=emacs-devel@gnu.org \
--cc=sdl.web@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).