From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Michael Herman Newsgroups: gmane.emacs.help Subject: How does Emacs know the background color? Date: Sun, 16 Feb 2003 08:10:38 -0600 Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <20030216141038.GA1752@del3yzmj01.thehermans.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1045404578 29582 80.91.224.249 (16 Feb 2003 14:09:38 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 16 Feb 2003 14:09:38 +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 18kPU7-0007gl-00 for ; Sun, 16 Feb 2003 15:09:36 +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 18kPWI-0008VN-00 for gnu-help-gnu-emacs@m.gmane.org; Sun, 16 Feb 2003 09:11:50 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18kPVz-0008IP-00 for help-gnu-emacs@gnu.org; Sun, 16 Feb 2003 09:11:31 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18kPVv-00087N-00 for help-gnu-emacs@gnu.org; Sun, 16 Feb 2003 09:11:28 -0500 Original-Received: from pcp531094pcs.nash01.tn.comcast.net ([68.52.136.139] helo=del3yzmj01.thehermans.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18kPV7-0007kk-00 for help-gnu-emacs@gnu.org; Sun, 16 Feb 2003 09:10:37 -0500 Original-Received: (from michaher@localhost) by del3yzmj01.thehermans.org (8.11.6/8.11.6) id h1GEAd202414 for help-gnu-emacs@gnu.org; Sun, 16 Feb 2003 08:10:39 -0600 Original-To: help-gnu-emacs@gnu.org Mail-Followup-To: Michael Herman , help-gnu-emacs@gnu.org Content-Disposition: inline User-Agent: Mutt/1.4i 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:6752 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:6752 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? When I use -rv for the xterm, emacs still thinks the background is dark. On a sort of related note, is there a way to tell how emacs was launched from the command line? I'd like to modify my .emacs to change settings depending on whether I used emacs -nw or not. Thanks. -- Michael Herman