From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dan Nicolaescu Newsgroups: gmane.emacs.devel Subject: Re: colours in client on xterm (if an X frame is open at same time) Date: Fri, 8 Jan 2010 08:48:06 -0800 (PST) Message-ID: <201001081648.o08Gm6Yr012592@godzilla.ics.uci.edu> References: <19270.28051.401596.689093@a1i15.kph.uni-mainz.de> <201001072358.o07NwL1e006325@godzilla.ics.uci.edu> <19270.54295.87807.81836@a1i15.kph.uni-mainz.de> <4B46E315.30308@swipnet.se> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1262969739 18926 80.91.229.12 (8 Jan 2010 16:55:39 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 8 Jan 2010 16:55:39 +0000 (UTC) Cc: Ulrich Mueller , emacs-devel@gnu.org To: Jan =?utf-8?Q?Dj=C3=A4rv?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jan 08 17:55:31 2010 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 1NTI7W-000220-8o for ged-emacs-devel@m.gmane.org; Fri, 08 Jan 2010 17:55:30 +0100 Original-Received: from localhost ([127.0.0.1]:43781 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NTI7V-0000YL-GJ for ged-emacs-devel@m.gmane.org; Fri, 08 Jan 2010 11:55:29 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NTI24-0004ui-EL for emacs-devel@gnu.org; Fri, 08 Jan 2010 11:49:52 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NTI1z-0004sX-CW for emacs-devel@gnu.org; Fri, 08 Jan 2010 11:49:51 -0500 Original-Received: from [199.232.76.173] (port=34269 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NTI1z-0004sI-2k for emacs-devel@gnu.org; Fri, 08 Jan 2010 11:49:47 -0500 Original-Received: from colin-baker-v0.ics.uci.edu ([128.195.1.153]:56756) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NTI1y-0005T8-1i for emacs-devel@gnu.org; Fri, 08 Jan 2010 11:49:46 -0500 Original-Received: from godzilla.ics.uci.edu (godzilla.ics.uci.edu [128.195.10.101]) by colin-baker-v0.ics.uci.edu (8.13.8/8.13.8) with ESMTP id o08Gm6f2006793 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 8 Jan 2010 08:48:06 -0800 Original-Received: (from dann@localhost) by godzilla.ics.uci.edu (8.13.8+Sun/8.13.6/Submit) id o08Gm6Yr012592; Fri, 8 Jan 2010 08:48:06 -0800 (PST) In-Reply-To: <4B46E315.30308@swipnet.se> ("Jan =?utf-8?Q?Dj=C3=A4rv=22's?= message of "Fri, 08 Jan 2010 08:47:33 +0100") Original-Lines: 30 X-ICS-MailScanner-Information: Please send mail to helpdesk@ics.uci.edu or more information X-ICS-MailScanner-ID: o08Gm6f2006793 X-ICS-MailScanner: Found to be clean X-ICS-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=-1.44, required 5, autolearn=disabled, ALL_TRUSTED -1.44) X-ICS-MailScanner-From: dann@godzilla.ics.uci.edu X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) 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:119709 Archived-At: Jan Dj=C3=A4rv writes: > Ulrich Mueller skrev: > >>>>>> On Thu, 7 Jan 2010, Dan Nicolaescu wrote: > > > >> Green is not the default face for the modeline for any display, so > >> something is strange in your setup. > > > > Right, this particular colour was taken from my X settings > > ("*HighlightColor: DarkSeaGreen2"). I've repeated the test with empty > > X resources, new screenshots are here: > > > > > > Anyway, my point was, why are the colours _different_ in the second > > case? Especially, why is the background grey? > > >=20 > The terminal frame defines the default face with unspecified-bg. > But when you start the X frame, the default face has background white > (or rather the X pixel value for white). > This face is still realized when you start the second terminal > face. Apparently pixel value for "white" in X translates to gray in an > xterm. I don't know exactly how the pixel values in the terminal case > gets translated. I only have access to 23.1 at the moment, and here the foreground and background are unspecified-bg/fg in the second terminal frame. Are you saying that is not the case in trunk now? That seems to be the problem then. For a terminal the functions lisp/term/tty-colors.el:tty-color* do the tran= slation.