From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ulrich Mueller 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 17:29:54 +0100 Message-ID: <19271.23938.742044.640825@a1i15.kph.uni-mainz.de> 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> <201001080713.o087DpNv021759@godzilla.ics.uci.edu> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1262968251 13673 80.91.229.12 (8 Jan 2010 16:30:51 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 8 Jan 2010 16:30:51 +0000 (UTC) Cc: emacs-devel@gnu.org To: Dan Nicolaescu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jan 08 17:30:43 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 1NTHjW-0006jd-1Q for ged-emacs-devel@m.gmane.org; Fri, 08 Jan 2010 17:30:42 +0100 Original-Received: from localhost ([127.0.0.1]:41059 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NTHjS-0003tW-85 for ged-emacs-devel@m.gmane.org; Fri, 08 Jan 2010 11:30:38 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NTHiu-0003iw-IV for emacs-devel@gnu.org; Fri, 08 Jan 2010 11:30:04 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NTHip-0003gk-Lv for emacs-devel@gnu.org; Fri, 08 Jan 2010 11:30:03 -0500 Original-Received: from [199.232.76.173] (port=39123 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NTHip-0003gg-It for emacs-devel@gnu.org; Fri, 08 Jan 2010 11:29:59 -0500 Original-Received: from a1iwww1.kph.uni-mainz.de ([134.93.134.1]:51092) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NTHip-0004sI-1o for emacs-devel@gnu.org; Fri, 08 Jan 2010 11:29:59 -0500 Original-Received: from a1i15.kph.uni-mainz.de (a1i15.kph.uni-mainz.de [134.93.134.92]) by a1iwww1.kph.uni-mainz.de (8.14.0/8.13.4) with ESMTP id o08GTtLE016886; Fri, 8 Jan 2010 17:29:55 +0100 Original-Received: from a1i15.kph.uni-mainz.de (localhost [127.0.0.1]) by a1i15.kph.uni-mainz.de (8.14.3/8.14.2) with ESMTP id o08GTtZR005528; Fri, 8 Jan 2010 17:29:55 +0100 Original-Received: (from ulm@localhost) by a1i15.kph.uni-mainz.de (8.14.3/8.14.3/Submit) id o08GTsXb005525; Fri, 8 Jan 2010 17:29:54 +0100 In-Reply-To: <201001080713.o087DpNv021759@godzilla.ics.uci.edu> X-Mailer: VM 8.0.12 under 23.1.1 (x86_64-pc-linux-gnu) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 1) 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:119705 Archived-At: >>>>> On Thu, 7 Jan 2010, Dan Nicolaescu wrote: >> Anyway, my point was, why are the colours _different_ in the second >> case? Especially, why is the background grey? > It should not be. I can't reproduce it here, but by emacs is about > 2 weeks old. > In the grey case, do you get something odd if you do a describe-face > for the default face? Differences between normal and grey case are: - Foreground: unspecified-fg - Background: unspecified-bg + Foreground: black + Background: white - Font: unspecified - Fontset: nil + Font: # + Fontset: -unknown-DejaVu Sans Mono-normal-normal-normal-*-13-*-*-*-m-0-fontset-startup > Is this something new? Do you get the same behavior with 23.1? > If not, then doing a binary search for the patch that broke it is your > best bet... I had hoped that the bisecting could be avoided, but here we go. The "grey background" started with revision 99013 (and reverting this changeset in the trunk of today brings back the old behaviour): revno: 99013 committer: Dan Nicolaescu branch nick: trunk timestamp: Mon 2009-12-07 06:30:30 +0000 message: Get the background mode from the terminal for xterm, and set faces accordingly. * term/xterm.el (xterm-set-background-mode): New function. (terminal-init-xterm): Use it in case xterm supports background color queries. Recompute faces after getting the background color. BTW, I use xterm version 250, in case that it matters. Ulrich