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: Sat, 02 Jul 2005 02:59:12 +0300 Organization: JURTA Message-ID: <87ll4q9hil.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> <877jgfi40l.fsf@jurta.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1120274713 24554 80.91.229.2 (2 Jul 2005 03:25:13 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 2 Jul 2005 03:25:13 +0000 (UTC) Cc: eliz@gnu.org, merlyn@stonehenge.com, teirllm@dms.auburn.edu, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jul 02 05:25:11 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DoYcx-00018R-8r for ged-emacs-devel@m.gmane.org; Sat, 02 Jul 2005 05:25:11 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DoYlW-0004sA-Re for ged-emacs-devel@m.gmane.org; Fri, 01 Jul 2005 23:34:02 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DoYiQ-00038H-IZ for emacs-devel@gnu.org; Fri, 01 Jul 2005 23:30:50 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DoYiP-00037x-UT for emacs-devel@gnu.org; Fri, 01 Jul 2005 23:30:50 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DoYgq-0002Y9-G9 for emacs-devel@gnu.org; Fri, 01 Jul 2005 23:29:12 -0400 Original-Received: from [194.126.101.98] (helo=mail.neti.ee) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DoYO4-0003D1-UB; Fri, 01 Jul 2005 23:09:49 -0400 Original-Received: from mail.neti.ee (80-235-37-19-dsl.mus.estpak.ee [80.235.37.19]) by Relayhost2.neti.ee (Postfix) with ESMTP id 7B45031A9; Sat, 2 Jul 2005 06:04:12 +0300 (EEST) Original-To: rms@gnu.org In-Reply-To: (Richard M. Stallman's message of "Thu, 30 Jun 2005 17:30:23 -0400") 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:40077 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:40077 > According to this classification, yellow is a dark color, > as it were suitable as a foreground color for light backgrounds. > > I think that is a non-issue. Emacs never chooses foreground colors > based on such a classification. The only thing Eacs does based on > this classification is to set the background mode. So this > classification has no relevance for anything else. Sorry, I mixed foreground and background. That sentence should read as follows: According to this classification, yellow is a dark color, as suitable background color for a light foreground color. > 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 > > Could you propose it again now? (let ((bg-color-values (x-color-values bg-color)) (white-values (x-color-values "white"))) (>= (+ (* (nth 0 bg-color-values) 0.30) (* (nth 1 bg-color-values) 0.59) (* (nth 2 bg-color-values) 0.11)) (* (+ (* (nth 0 white-values) 0.30) (* (nth 1 white-values) 0.59) (* (nth 2 white-values) 0.11)) .6))) -- Juri Linkov http://www.jurta.org/emacs/