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 21:17:40 +0900 Organization: NEC Electronics 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 1174911510 4081 80.91.229.12 (26 Mar 2007 12:18:30 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 26 Mar 2007 12:18:30 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Mar 26 14:18:23 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 1HVo9W-00006F-C9 for ged-emacs-devel@m.gmane.org; Mon, 26 Mar 2007 14:18:22 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HVoBk-0005qf-UG for ged-emacs-devel@m.gmane.org; Mon, 26 Mar 2007 07:20:40 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HVoBg-0005hL-RD for emacs-devel@gnu.org; Mon, 26 Mar 2007 08:20:36 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HVoBg-0005e6-35 for emacs-devel@gnu.org; Mon, 26 Mar 2007 08:20:36 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HVoBf-0005du-V3 for emacs-devel@gnu.org; Mon, 26 Mar 2007 07:20:35 -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 1HVo9Q-0003m5-EE for emacs-devel@gnu.org; Mon, 26 Mar 2007 08:18:16 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1HVo9A-000112-Eh for emacs-devel@gnu.org; Mon, 26 Mar 2007 14:18:00 +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 ; Mon, 26 Mar 2007 14:18:00 +0200 Original-Received: from miles.bader by fencepost.gnu.org with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 26 Mar 2007 14:18:00 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 37 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:/ypTW2V46OTIPLbCKWH1JXLd5NM= 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:68590 Archived-At: jari.aalto@cante.net (Jari Aalto+mail.emacs) writes: > Was it "... should customize `frame-background-mode' to match his > environment." > > Should this problem be left to every putty (or dark background term) > user? I understood that the the code doesn't get enough information to > decide the correct dark/light environment in presented cases. So it > might guesses wrong, and the results are pretty bad with the select > default color. Basically, unless you have a proper frame-background-mode, then _all_ the highlighting in Emacs will be fairly screwed up: a large percentage of the colors used in Emacs highlighting only look good against the proper background type. Attempting to pick "neutral" faces for everything simply doesn't work -- it's hard enough making things look good if you _can_ depend on the background type -- and the problem is even worse on ttys with their limited selection of color and alternate font styles (basically only bold, and often not even that, works). So even if we changed the comint prompt to make you happy, the entire rest of the interface will still look awful. If you can find a way to detect Putty/rxvt then Emacs could use that information, but absent that, I don't think there's any choice but user education. > Do you have in use cases where 'bold would not work? Bold is already used in comint. But for the real problem, see above. -miles -- In New York, most people don't have cars, so if you want to kill a person, you have to take the subway to their house. And sometimes on the way, the train is delayed and you get impatient, so you have to kill someone on the subway. [George Carlin]