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 23:31:21 +0100 Message-ID: <19271.45625.16363.936187@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> <19271.23938.742044.640825@a1i15.kph.uni-mainz.de> <201001081828.o08ISZgT016268@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 1262989905 23138 80.91.229.12 (8 Jan 2010 22:31:45 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 8 Jan 2010 22:31:45 +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 23:31:37 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 1NTNMj-0007KV-P3 for ged-emacs-devel@m.gmane.org; Fri, 08 Jan 2010 23:31:34 +0100 Original-Received: from localhost ([127.0.0.1]:37340 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NTNMk-0001ij-DP for ged-emacs-devel@m.gmane.org; Fri, 08 Jan 2010 17:31:34 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NTNMf-0001gt-3z for emacs-devel@gnu.org; Fri, 08 Jan 2010 17:31:29 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NTNMa-0001cj-Fl for emacs-devel@gnu.org; Fri, 08 Jan 2010 17:31:28 -0500 Original-Received: from [199.232.76.173] (port=54271 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NTNMa-0001cd-BN for emacs-devel@gnu.org; Fri, 08 Jan 2010 17:31:24 -0500 Original-Received: from a1iwww1.kph.uni-mainz.de ([134.93.134.1]:52347) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NTNMZ-0007Pf-O6 for emacs-devel@gnu.org; Fri, 08 Jan 2010 17:31:24 -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 o08MVLvs025078; Fri, 8 Jan 2010 23:31:21 +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 o08MVL2n010344; Fri, 8 Jan 2010 23:31:21 +0100 Original-Received: (from ulm@localhost) by a1i15.kph.uni-mainz.de (8.14.3/8.14.3/Submit) id o08MVLFk010341; Fri, 8 Jan 2010 23:31:21 +0100 In-Reply-To: <201001081828.o08ISZgT016268@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:119740 Archived-At: >>>>> On Fri, 8 Jan 2010, Dan Nicolaescu wrote: >> 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. > Thanks. > In your case the only effect that patch should have is to move the > call (tty-set-up-initial-frame-faces) from before > (let ((coding-system-for-read 'binary) > to after it. Right, if I move the call to (tty-set-up-initial-frame-faces) back to its old location, i.e. immediately after (xterm-register-default-colors) then the old behaviour is restored. > What happens in that `let' should not matter to your setup because > your background is light, so change 99013 should be a no-op in your > case. But it isn't ... > Hmmm, this is very odd...