From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: Faces for Mode Line and Mode Line Inactive Date: Sun, 05 Dec 2004 20:40:41 -0500 Message-ID: References: <006d01c4da5e$bd51eb60$0200a8c0@sedrcw11488> <01c4db0f$Blat.v2.2.2$1ee17160@zahav.net.il> Reply-To: rms@gnu.org NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1102297594 29065 80.91.229.6 (6 Dec 2004 01:46:34 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 6 Dec 2004 01:46:34 +0000 (UTC) Cc: lennart.borgman.073@student.lu.se, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Dec 06 02:46:30 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 1Cb7xO-0004VP-00 for ; Mon, 06 Dec 2004 02:46:30 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1Cb877-0004SP-Hu for ged-emacs-devel@m.gmane.org; Sun, 05 Dec 2004 20:56:33 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1Cb859-00031B-9z for emacs-devel@gnu.org; Sun, 05 Dec 2004 20:54:31 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1Cb857-0002zh-O1 for emacs-devel@gnu.org; Sun, 05 Dec 2004 20:54:30 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1Cb857-0002zI-HL for emacs-devel@gnu.org; Sun, 05 Dec 2004 20:54:29 -0500 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1Cb7uu-0006HZ-Oy for emacs-devel@gnu.org; Sun, 05 Dec 2004 20:43:56 -0500 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.34) id 1Cb7rl-00019x-BE; Sun, 05 Dec 2004 20:40:41 -0500 Original-To: Eli Zaretskii In-reply-to: <01c4db0f$Blat.v2.2.2$1ee17160@zahav.net.il> (eliz@gnu.org) 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:30740 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:30740 ??? 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. I tried this under X, and found that it was as Lennart said: mode-line-inactive inherits from mode-line and specifies no changes. So I tried changing the defface of mode-line-inactive, putting the t clause to the end. Then customize-face showed the proper values. Maybe customize-face is not handling the choice of clause the same way that defface does. face-spec-choose seems to put the t attributes at the end after the more specific attributes. The result is that the t attributes don't entirely override everything if they come first. I get the impression that face-spec-choose is trying to avoid dependence on the order of the alternatives, but not entirely succeeding. For customize-face, it looks like the function that handles this is custom-filter-face-spec. I don't understand it, but I suspect it disagrees with what face-spec-choose does.