From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: jari.aalto@cante.net (Jari Aalto+mail.emacs) Newsgroups: gmane.emacs.devel Subject: Re: RFC: comint.el - comint-highlight-prompt and unreadable colors Date: Mon, 26 Mar 2007 11:34:41 +0200 Organization: Private Message-ID: References: <87y7llxxdu.fsf@catnip.gol.com> <87slbsyjn7.fsf@catnip.gol.com> <87wt14a158.fsf@pacem.orebokech.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1174901787 30675 80.91.229.12 (26 Mar 2007 09:36:27 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 26 Mar 2007 09:36:27 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Mar 26 11:36:20 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 1HVlci-0006UX-5c for ged-emacs-devel@m.gmane.org; Mon, 26 Mar 2007 11:36:20 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HVlev-0005Yg-Qk for ged-emacs-devel@m.gmane.org; Mon, 26 Mar 2007 04:38:37 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HVldy-0004y6-Do for emacs-devel@gnu.org; Mon, 26 Mar 2007 05:37:38 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HVldu-0004vS-E8 for emacs-devel@gnu.org; Mon, 26 Mar 2007 05:37:37 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HVldu-0004vA-4X for emacs-devel@gnu.org; Mon, 26 Mar 2007 04:37:34 -0500 Original-Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HVlbf-00008h-DY for emacs-devel@gnu.org; Mon, 26 Mar 2007 05:35:15 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1HVlbU-0001uG-Mj for emacs-devel@gnu.org; Mon, 26 Mar 2007 11:35:04 +0200 Original-Received: from a81-197-175-198.elisa-laajakaista.fi ([81.197.175.198]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 26 Mar 2007 11:35:04 +0200 Original-Received: from jari.aalto by a81-197-175-198.elisa-laajakaista.fi with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 26 Mar 2007 11:35:04 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 29 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: a81-197-175-198.elisa-laajakaista.fi User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.3 (windows-nt) Cancel-Lock: sha1:uW7XfhucMqrYaW8JiGc9UoiYqik= X-detected-kernel: Linux 2.6, seldom 2.4 (older, 4) 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:68582 Archived-At: * Mon 2007-03-26 Miles Bader gmane.emacs.devel * Message-Id: buo4po8we6c.fsf AT dhapc248.dev.necel.com > 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. Perhaps there is miunderstanding. I have been talking about general problem, nothing special to my environment. The problem also happens if user changes the background of rxvt (see previous pictures) at least under Cygwin X11. Would not default value 'bold, instead of cyan, work better? Jari