From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.devel Subject: Re: Same 'face' spec initialized to different values for x and terminal Date: Mon, 04 Jun 2007 00:23:33 +0300 Organization: JURTA Message-ID: <877iqkoho0.fsf@jurta.org> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1180905948 19722 80.91.229.12 (3 Jun 2007 21:25:48 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 3 Jun 2007 21:25:48 +0000 (UTC) Cc: Leo , emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jun 03 23:25:47 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Huxa5-0007MM-Ki for ged-emacs-devel@m.gmane.org; Sun, 03 Jun 2007 23:25:45 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Huxa5-000759-5u for ged-emacs-devel@m.gmane.org; Sun, 03 Jun 2007 17:25:45 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Huxa1-00074z-4i for emacs-devel@gnu.org; Sun, 03 Jun 2007 17:25:41 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HuxZz-00074c-Sf for emacs-devel@gnu.org; Sun, 03 Jun 2007 17:25:40 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HuxZz-00074Z-L8 for emacs-devel@gnu.org; Sun, 03 Jun 2007 17:25:39 -0400 Original-Received: from smarty.dreamhost.com ([208.113.175.8]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1HuxZy-0000NY-If; Sun, 03 Jun 2007 17:25:38 -0400 Original-Received: from schnapps.dreamhost.com (apache2-noxim.schnapps.dreamhost.com [208.113.175.112]) by smarty.dreamhost.com (Postfix) with ESMTP id C0787EE25E; Sun, 3 Jun 2007 14:25:37 -0700 (PDT) Original-Received: from localhost (localhost [127.0.0.1]) by schnapps.dreamhost.com (Postfix) with ESMTP id BE89BA86F8; Sun, 3 Jun 2007 14:25:35 -0700 (PDT) In-Reply-To: (Eli Zaretskii's message of "Mon\, 04 Jun 2007 00\:05\:03 +0300") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1.50 (gnu/linux) X-detected-kernel: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:72144 Archived-At: >> 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/