From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Zaretskii Eli Newsgroups: gmane.emacs.help Subject: RE: How does Emacs know the background color? Date: Tue, 18 Feb 2003 08:41:42 +0200 Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <4D19136444628A40840EFE8C5AE04147017A15@ELTIMAIL1.elta.co.il> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7BIT X-Trace: main.gmane.org 1045550437 31966 80.91.224.249 (18 Feb 2003 06:40:37 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 18 Feb 2003 06:40:37 +0000 (UTC) Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18l1Qf-0008JO-00 for ; Tue, 18 Feb 2003 07:40:34 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18l1SB-0007YV-09 for gnu-help-gnu-emacs@m.gmane.org; Tue, 18 Feb 2003 01:42:07 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18l1S2-0007YD-00 for help-gnu-emacs@gnu.org; Tue, 18 Feb 2003 01:41:58 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18l1S1-0007Y2-00 for help-gnu-emacs@gnu.org; Tue, 18 Feb 2003 01:41:57 -0500 Original-Received: from mxout1.netvision.net.il ([194.90.9.20]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18l1S0-0007SB-00 for help-gnu-emacs@gnu.org; Tue, 18 Feb 2003 01:41:57 -0500 Original-Received: from is.elta.co.il ([207.232.27.5]) by mxout1.netvision.net.il (iPlanet Messaging Server 5.2 HotFix 1.08 (built Dec 6 2002)) with SMTP id <0HAH00EXGRX72W@mxout1.netvision.net.il> for help-gnu-emacs@gnu.org; Tue, 18 Feb 2003 08:41:32 +0200 (IST) Original-Received: from eltinlb1.elta.co.il (172.16.0.122) by ELTIGW1.elta.co.il; Sat, 18 Jan 2003 08:42:38 +0200 Original-Received: from ELTIMAIL1.elta.co.il ([172.16.0.104]) by eltinlb1.elta.co.il with Microsoft SMTPSVC(5.0.2195.5329); Tue, 18 Feb 2003 08:41:42 +0200 Original-To: help-gnu-emacs@gnu.org X-MIMEOLE: Produced By Microsoft Exchange V6.0.6249.0 Content-class: urn:content-classes:message Thread-topic: How does Emacs know the background color? Thread-index: AcLVxfPhLe5fzw24TVWvZCFzaezX0QBUqpJg X-PRIVAWALL-ID: 0002556710ab X-OriginalArrivalTime: 18 Feb 2003 06:41:42.0756 (UTC) FILETIME=[CC5BF240:01C2D718] X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:6825 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:6825 This message was scanned for viruses and other malicious code by PrivaWall. This mail was sent from ELTA SYS LTD. > From: Michael Herman [mailto:michael-lists@thehermans.org] > Sent: Sunday, February 16, 2003 4:11 PM > > I am using a special mode for handling e-mail called post.el. In > post.el there are different faces depending on the background being > 'light' or 'dark'. When I launch emacs -nw from within an xterm with > a white background, emacs uses the face for a dark background. > > How does emacs determine what the background is? It looks for an environment variable defined by xterm. See startup.el for more details. This message is processed by the PrivaWall Email Security Server.