From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.devel Subject: Re: Diff mode faces Date: Tue, 28 Jun 2005 02:55:38 +0300 Organization: JURTA Message-ID: <877jgfi40l.fsf@jurta.org> References: <87oea5urwm.fsf@jurta.org> <87psujj0h0.fsf@jurta.org> <86hdfv1y9b.fsf@blue.stonehenge.com> <87r7eyqzcy.fsf@jurta.org> <200506191710.j5JHAEN11479@raven.dms.auburn.edu> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1119929789 14419 80.91.229.2 (28 Jun 2005 03:36:29 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 28 Jun 2005 03:36:29 +0000 (UTC) Cc: eliz@gnu.org, emacs-devel@gnu.org, merlyn@stonehenge.com Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jun 28 05:36:24 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Dn6tW-00014d-7m for ged-emacs-devel@m.gmane.org; Tue, 28 Jun 2005 05:36:18 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Dn6xA-0003y0-Qw for ged-emacs-devel@m.gmane.org; Mon, 27 Jun 2005 23:40:04 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Dn6m0-0006HR-Mu for emacs-devel@gnu.org; Mon, 27 Jun 2005 23:28:33 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Dn6lk-00067p-Hd for emacs-devel@gnu.org; Mon, 27 Jun 2005 23:28:17 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Dn6lj-00064b-SG for emacs-devel@gnu.org; Mon, 27 Jun 2005 23:28:15 -0400 Original-Received: from [194.126.101.98] (helo=mail.neti.ee) by monty-python.gnu.org with esmtp (Exim 4.34) id 1Dn6lz-00066b-Bo; Mon, 27 Jun 2005 23:28:31 -0400 Original-Received: from mail.neti.ee (80-235-41-107-dsl.mus.estpak.ee [80.235.41.107]) by Relayhost2.neti.ee (Postfix) with ESMTP id 949282727; Tue, 28 Jun 2005 06:23:48 +0300 (EEST) Original-To: Luc Teirlinck In-Reply-To: <200506191710.j5JHAEN11479@raven.dms.auburn.edu> (Luc Teirlinck's message of "Sun, 19 Jun 2005 12:10:14 -0500 (CDT)") User-Agent: Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux) X-Virus-Scanned: by amavisd-new-2.2.1 (20041222) (Debian) at neti.ee 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:39723 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:39723 > For quite a long time (most likely from the time when color translation > was implemented for tty) colors of context lines in diff mode on tty > were yellow for light backgrounds. There are also other faces with > yellow foreground for light backgrounds, like font-lock-variable-name-face. > Nobody complained about them so far. So maybe yellow is the acceptable > color for context lines. > > I remember seeing people complain that they have trouble reading > yellow on white _many_ times on this list. I know of many people who > have trouble reading red on black. I have trouble with both and I > have even more problems reading cyan on white. I do not complain, I > just always turn colors off on tty's. Something has to be done about colors of diff context, because currently it is white on black for dark backgrounds, and yellow on white for light backgrounds. Yellow on black would be good for dark backgrounds, but what to put as a foreground color for light backgrounds. Maybe green on white? Green is a dark color, so on white it is well visible. BTW, the formula for calculating the background mode produces different results for different terminals: On TTY it classifies colors as follows: Dark: black red green blue Light: magenta yellow cyan white But on xterm it is quite different: Dark: black red green blue magenta yellow cyan Light: white According to this classification, yellow is a dark color, as it were suitable as a foreground color for light backgrounds. OTOH, the formula I proposed in January produces the same classification on TTY, xterm and X as: Dark: black red green blue magenta Light: yellow cyan white -- Juri Linkov http://www.jurta.org/emacs/