From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Miles Bader Newsgroups: gmane.emacs.devel Subject: Re: RFC: comint.el - comint-highlight-prompt and unreadable colors Date: Mon, 26 Mar 2007 18:24:11 +0900 Message-ID: References: <87y7llxxdu.fsf@catnip.gol.com> <87slbsyjn7.fsf@catnip.gol.com> <87wt14a158.fsf@pacem.orebokech.com> Reply-To: Miles Bader NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1174901085 28149 80.91.229.12 (26 Mar 2007 09:24:45 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 26 Mar 2007 09:24:45 +0000 (UTC) Cc: emacs-devel@gnu.org To: Jari Aalto Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Mar 26 11:24:39 2007 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 1HVlRO-0000EN-1b for ged-emacs-devel@m.gmane.org; Mon, 26 Mar 2007 11:24:38 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HVlTb-0001rW-7M for ged-emacs-devel@m.gmane.org; Mon, 26 Mar 2007 04:26:55 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HVlTS-0001iR-J6 for emacs-devel@gnu.org; Mon, 26 Mar 2007 05:26:46 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HVlTQ-0001f7-Rd for emacs-devel@gnu.org; Mon, 26 Mar 2007 05:26:45 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HVlTQ-0001ep-EH for emacs-devel@gnu.org; Mon, 26 Mar 2007 04:26:44 -0500 Original-Received: from tyo202.gate.nec.co.jp ([202.32.8.206]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1HVlR9-00072L-0e; Mon, 26 Mar 2007 05:24:23 -0400 Original-Received: from relay31.aps.necel.com ([10.29.19.54]) by tyo202.gate.nec.co.jp (8.13.8/8.13.4) with ESMTP id l2Q9O9Q7022587; Mon, 26 Mar 2007 18:24:14 +0900 (JST) Original-Received: from relay21.aps.necel.com ([10.29.19.16] [10.29.19.16]) by relay31.aps.necel.com with ESMTP; Mon, 26 Mar 2007 18:24:13 +0900 Original-Received: from dhapc248.dev.necel.com ([10.114.97.235] [10.114.97.235]) by relay21.aps.necel.com with ESMTP; Mon, 26 Mar 2007 18:24:12 +0900 Original-Received: by dhapc248.dev.necel.com (Postfix, from userid 31295) id 5606C48F; Mon, 26 Mar 2007 18:24:12 +0900 (JST) System-Type: i686-pc-linux-gnu Blat: Foop In-Reply-To: <87wt14a158.fsf@pacem.orebokech.com> (Romain Francoise's message of "Mon\, 26 Mar 2007 09\:56\:35 +0200") Original-Lines: 25 X-detected-kernel: Solaris 8 (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:68581 Archived-At: Romain Francoise writes: >> On windows, I don't know, but it's probably a similar problem. > > I don't think it's related to TERM, PuTTY sets it to "xterm". Actually that's probably the _reason_ the problem arises: If TERM = "xterm", then Emacs assumes a light background (it's a hack, but it was decided when we discussed this a long time ago that light-background xterm instances were more common than dark-background instances, especially for newbies). > Actually, the `frame-set-background-mode' function suggests that the > logic is a bit more convoluted... No doubt. But it seems pretty likely this is the problem Jari is seeing, and the solution is obvious: he should customize `frame-background-mode' to match his environment. -Miles -- (\(\ (^.^) (")") *This is the cute bunny virus, please copy this into your sig so it can spread.