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: Mode line faces on ttys Date: Wed, 17 Aug 2005 19:36:34 +0300 Organization: JURTA Message-ID: <87r7csfsil.fsf@jurta.org> References: <878xz0u3ib.fsf@pacem.orebokech.com> <87u0hoipt5.fsf@jurta.org> <87wtmksi0i.fsf@pacem.orebokech.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1124297853 29400 80.91.229.2 (17 Aug 2005 16:57:33 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 17 Aug 2005 16:57:33 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Aug 17 18:57:32 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1E5RCj-0002PI-9l for ged-emacs-devel@m.gmane.org; Wed, 17 Aug 2005 18:55:53 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1E5RGC-00085z-GE for ged-emacs-devel@m.gmane.org; Wed, 17 Aug 2005 12:59:28 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1E5RDy-0007N9-9u for emacs-devel@gnu.org; Wed, 17 Aug 2005 12:57:10 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1E5RDr-0007MN-Mi for emacs-devel@gnu.org; Wed, 17 Aug 2005 12:57:05 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1E5RDr-00079M-CR for emacs-devel@gnu.org; Wed, 17 Aug 2005 12:57:03 -0400 Original-Received: from [194.126.101.111] (helo=mail.neti.ee) by monty-python.gnu.org with esmtp (Exim 4.34) id 1E5RIr-0001md-03 for emacs-devel@gnu.org; Wed, 17 Aug 2005 13:02:13 -0400 Original-Received: from mail.neti.ee (80-235-37-17-dsl.mus.estpak.ee [80.235.37.17]) by Relayhost2.neti.ee (Postfix) with ESMTP id B7DA81E29; Wed, 17 Aug 2005 19:45:47 +0300 (EEST) Original-To: Romain Francoise In-Reply-To: <87wtmksi0i.fsf@pacem.orebokech.com> (Romain Francoise's message of "Wed, 17 Aug 2005 17:25:01 +0200") 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:42190 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:42190 >> This is correct. Since mode-line has the non-nil :inverse-video >> attribute, its foreground and background colors should be inverted. > > I see, thanks for the explanation. It's somewhat confusing that setting > the face foreground actually changes the background on ttys--I > understand the logic, but it's surprising. Perhaps the behavior of the :inverse-video face attribute is what is confusing. It uses the swapped foreground and background colors for actual display. > How are application writers supposed to handle this if they want the > mode line to "look similar" in X and on ttys? Use `face-inverse-video-p' > to invert values if needed? Application writers can specify the same face attributes on X and on ttys. So if :inverse-video was off on X, turn it off on tty too, and vice versa. >> Since this change causes questions, maybe it should be mentioned in >> etc/NEWS? > > Definitely. In which NEWS section would you expect to find this fix? Possible candidates: * Lisp Changes in Emacs 22.1 ** Face changes or * Incompatible Lisp Changes in Emacs 22.1 or * Incompatible Editing Changes in Emacs 22.1 -- Juri Linkov http://www.jurta.org/emacs/