From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Faces for Mode Line and Mode Line Inactive Date: Sun, 05 Dec 2004 18:14:41 -0500 Message-ID: <87sm6k2ve1.fsf-monnier+emacs@gnu.org> References: <006d01c4da5e$bd51eb60$0200a8c0@sedrcw11488> <01c4db0f$Blat.v2.2.2$1ee17160@zahav.net.il> <001101c4db1b$e34757c0$0200a8c0@sedrcw11488> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1102288529 11242 80.91.229.6 (5 Dec 2004 23:15:29 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 5 Dec 2004 23:15:29 +0000 (UTC) Cc: Eli Zaretskii , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Dec 06 00:15:23 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1Cb5b9-0005pv-00 for ; Mon, 06 Dec 2004 00:15:23 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1Cb5kr-0007ki-9P for ged-emacs-devel@m.gmane.org; Sun, 05 Dec 2004 18:25:25 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1Cb5kI-0007ju-7v for emacs-devel@gnu.org; Sun, 05 Dec 2004 18:24:50 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1Cb5kH-0007j5-G6 for emacs-devel@gnu.org; Sun, 05 Dec 2004 18:24:49 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1Cb5kH-0007iy-BB for emacs-devel@gnu.org; Sun, 05 Dec 2004 18:24:49 -0500 Original-Received: from [209.226.175.184] (helo=tomts22-srv.bellnexxia.net) by monty-python.gnu.org with esmtp (Exim 4.34) id 1Cb5aG-0007c5-6G; Sun, 05 Dec 2004 18:14:28 -0500 Original-Received: from alfajor ([67.68.219.169]) by tomts22-srv.bellnexxia.net (InterMail vM.5.01.06.10 201-253-122-130-110-20040306) with ESMTP id <20041205231427.SJIR1919.tomts22-srv.bellnexxia.net@alfajor>; Sun, 5 Dec 2004 18:14:27 -0500 Original-Received: by alfajor (Postfix, from userid 1000) id 21F96D73CB; Sun, 5 Dec 2004 18:14:41 -0500 (EST) Original-To: "Lennart Borgman" In-Reply-To: <001101c4db1b$e34757c0$0200a8c0@sedrcw11488> (Lennart Borgman's message of "Sun, 5 Dec 2004 23:43:30 +0100") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/21.3.50 (gnu/linux) 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: main.gmane.org gmane.emacs.devel:30725 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:30725 >>>>> "Lennart" == Lennart Borgman writes: > ----- Original Message ----- > From: "Eli Zaretskii" >> > From: "Lennart Borgman" >> > Date: Sun, 5 Dec 2004 01:06:38 +0100 >> > >> > I get a bit frustrated when I look at the face customization pages for > Mode >> > Line and Mode Line Inactive. Mode Line Inactive inherits from Mode Line > and >> > it sets no attributes on its own as far as I can see. Still it looks >> > different (lighter on my display). >> >> ??? Look at faces.el, around line 1780, where these two faces are >> defined: mode-line-inactive inherits from mode-line only for terminals >> that don't support colors and/or :style attributes. Otherwise, >> mode-line defines different colors and a released-button style. >> >> Am I missing something? > I don't know if you are missing or I am misunderstanding. I was looking at > the customization page for Mode Line Inactive face. There are no attributes > checked except for Inherit and it inherits from Mode Line on this page. So > to me it looks like the faces should be the same. (But as you wrote the > deffaces in faces.el are different.) The code I see in faces.el is appended. It says that the face unconditionally inherits from mode-line. This is how it should be, AFAIK. Stefan (defface mode-line-inactive '((t :inherit mode-line) (((type x w32 mac) (background light) (class color)) :weight light :box (:line-width -1 :color "grey75" :style nil) :foreground "grey20" :background "grey90") (((type x w32 mac) (background dark) (class color)) :weight light :box (:line-width -1 :color "grey40" :style nil) :foreground "grey80" :background "grey30")) "Basic mode line face for non-selected windows." :version "21.4" :group 'modeline :group 'basic-faces)