From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: John Paul Wallington Newsgroups: gmane.emacs.devel Subject: Re: Faces for Mode Line and Mode Line Inactive Date: Sun, 05 Dec 2004 22:45:34 +0000 Message-ID: References: <006d01c4da5e$bd51eb60$0200a8c0@sedrcw11488> NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1102286825 7318 80.91.229.6 (5 Dec 2004 22:47:05 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 5 Dec 2004 22:47:05 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Dec 05 23:47:01 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 1Cb59g-0004Df-00 for ; Sun, 05 Dec 2004 23:47:00 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1Cb5JO-0002wd-R1 for ged-emacs-devel@m.gmane.org; Sun, 05 Dec 2004 17:57:02 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1Cb5JF-0002wY-UZ for emacs-devel@gnu.org; Sun, 05 Dec 2004 17:56:54 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1Cb5JF-0002wM-GK for emacs-devel@gnu.org; Sun, 05 Dec 2004 17:56:53 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1Cb5JF-0002wJ-Dd for emacs-devel@gnu.org; Sun, 05 Dec 2004 17:56:53 -0500 Original-Received: from [207.8.226.5] (helo=orb.pobox.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1Cb591-0002zX-8l for emacs-devel@gnu.org; Sun, 05 Dec 2004 17:46:19 -0500 Original-Received: from orb (localhost [127.0.0.1]) by orb.pobox.com (Postfix) with ESMTP id 92CD52F8E8C; Sun, 5 Dec 2004 17:46:18 -0500 (EST) Original-Received: from filth.shootybangbang.com (host217-44-221-88.range217-44.btcentralplus.com [217.44.221.88]) by orb.sasl.smtp.pobox.com (Postfix) with ESMTP id A6F542F9321; Sun, 5 Dec 2004 17:46:16 -0500 (EST) Original-To: "Lennart Borgman" In-reply-to: <006d01c4da5e$bd51eb60$0200a8c0@sedrcw11488> (lennart.borgman.073@student.lu.se) X-Mailer: Norman X-Attribution: jpw X-Face: R(_z-rF:grdKO.*u`n); p.i$Eiz=h^CO5eDYv"4:K@#\HN09*Ykx}}B{kF/KH}%f_o^Wp 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:30724 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:30724 > 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). > > There seems to be a piece missing, or is it supposed to be this way? I confirm that for me M-x customize-face mode-line-inactive says that the face just inherits from mode-line despite it having a different appearance. I'm confused where the problem is, but don't have time to look at this properly. However, I noticed that M-x customize-face modeline-inactive (its alias) does show the differing specs. Also, it appears that this patch (moving the default case to be the last case) causes M-x customize-face mode-line-inactive to show the differing specs too: Index: faces.el =================================================================== RCS file: /cvsroot/emacs/emacs/lisp/faces.el,v retrieving revision 1.293 diff -u -r1.293 faces.el --- faces.el 2 Dec 2004 10:56:05 -0000 1.293 +++ faces.el 5 Dec 2004 22:21:30 -0000 @@ -1786,16 +1786,16 @@ :group 'basic-faces) (defface mode-line-inactive - '((t - :inherit mode-line) - (((type x w32 mac) (background light) (class color)) + '((((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")) + :foreground "grey80" :background "grey30") + (t + :inherit mode-line)) "Basic mode line face for non-selected windows." :version "21.4" :group 'modeline