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: Tue, 27 Mar 2007 13:02:53 +0900 Organization: NEC Electronics Message-ID: References: <87slbsyjn7.fsf@catnip.gol.com> <87wt14a158.fsf@pacem.orebokech.com> <20070326124509.GB23542@www.trapp.net> <200703270218.l2R2IoXK021694@oogie-boogie.ics.uci.edu> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1174968209 21326 80.91.229.12 (27 Mar 2007 04:03:29 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 27 Mar 2007 04:03:29 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Mar 27 06:03:22 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 1HW2u1-0001up-NI for ged-emacs-devel@m.gmane.org; Tue, 27 Mar 2007 06:03:22 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HW2wK-0005Zj-RU for ged-emacs-devel@m.gmane.org; Mon, 26 Mar 2007 23:05:44 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HW2wH-0005Wm-L0 for emacs-devel@gnu.org; Tue, 27 Mar 2007 00:05:41 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HW2wD-0005S0-U2 for emacs-devel@gnu.org; Tue, 27 Mar 2007 00:05:40 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HW2wD-0005Rx-RA for emacs-devel@gnu.org; Mon, 26 Mar 2007 23:05:37 -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 1HW2tt-0003AY-NH for emacs-devel@gnu.org; Tue, 27 Mar 2007 00:03:13 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1HW2tl-0003FB-OU for emacs-devel@gnu.org; Tue, 27 Mar 2007 06:03:05 +0200 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 27 Mar 2007 06:03:05 +0200 Original-Received: from miles.bader by fencepost.gnu.org with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 27 Mar 2007 06:03:05 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 35 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: fencepost.gnu.org System-Type: i686-pc-linux-gnu Blat: Foop Cancel-Lock: sha1:gZ3a3pD+hM8nJBQXDn+vInyKhuo= 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:68654 Archived-At: Dan Nicolaescu writes: > > So I think Emacs could use the above information if it's present, which > > will cover rxvt, > > Emacs does use the above information correctly (i.e. it sets the > default background and the colormap) IFF TERM is set to: xterm, > xterm-*, rxvt or rxvt-*. > > TERM=xterms is equivalent to not having any terminal initialization > code in lisp/term/*.el Emacs ought to handle "xterms" too; it's a historical artifact of sorts, but it used to be very common. > Where does "xterms" come from? Is is a default setting on some > systems, or just a user that thought it would be a good idea to set > TERM to that? I looked around a bit more, and realized, it's my fault -- it's from my ~/.Xresources file: XTerm*termName: xterms What's really strange is that the real xterm doesn't seem to use that resource, only rxvt does... so it went unnoticed for ages. Anyway, I removed that line, and now when I run rxvt, TERM="rxvt", and Emacs colors are set up properly by default no matter what colors rxvt is using. Thanks for the clue that something was funny... -miles -- Quidquid latine dictum sit, altum viditur.