From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Matthew Calhoun Newsgroups: gmane.emacs.help Subject: Re: Face precedence Date: Tue, 2 Nov 2004 13:23:37 -0800 Message-ID: <75B755F8-2D15-11D9-874E-0003930EBF00@mac.com> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 (Apple Message framework v619) Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1099430646 7158 80.91.229.6 (2 Nov 2004 21:24:06 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 2 Nov 2004 21:24:06 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Nov 02 22:23:54 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 1CP68A-0003ZG-00 for ; Tue, 02 Nov 2004 22:23:54 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CP6GD-0003oe-KB for geh-help-gnu-emacs@m.gmane.org; Tue, 02 Nov 2004 16:32:13 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CP6G5-0003np-0S for help-gnu-emacs@gnu.org; Tue, 02 Nov 2004 16:32:05 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CP6G3-0003mj-HY for help-gnu-emacs@gnu.org; Tue, 02 Nov 2004 16:32:03 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CP6G3-0003mX-CW for help-gnu-emacs@gnu.org; Tue, 02 Nov 2004 16:32:03 -0500 Original-Received: from [17.250.248.44] (helo=smtpout.mac.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CP67x-0008Bo-0M for help-gnu-emacs@gnu.org; Tue, 02 Nov 2004 16:23:41 -0500 Original-Received: from mac.com (smtpin01-en2 [10.13.10.146]) by smtpout.mac.com (8.12.6/MantshX 2.0) with ESMTP id iA2LNdOo010888 for ; Tue, 2 Nov 2004 13:23:39 -0800 (PST) Original-Received: from [192.168.0.3] (c-24-6-149-251.client.comcast.net [24.6.149.251]) (authenticated bits=0) by mac.com (Xserve/smtpin01/MantshX 4.0) with ESMTP id iA2LNc7I016940 for ; Tue, 2 Nov 2004 13:23:39 -0800 (PST) Original-To: help-gnu-emacs@gnu.org X-Mailer: Apple Mail (2.619) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:21707 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:21707 Hi Oliver, Thanks for your reply. I think when I said I was "defining faces" I gave you the impression that I was doing something more complicated than what I'm actually doing. I'm only setting the attributes of existing faces with custom-set-faces, like this: (custom-set-faces '(mode-line ((((type x w32 mac) (class color)) (:background "white" :foreground "black" :weight extra-bold)))) '(mode-line-inactive ((t (:slant oblique :weight light)))) '(region ((((class color)) (:background "#b5d5ff")))) '(isearch ((t (:inherit region :weight bold)))) '(isearch-lazy-highlight-face ((((class color) (background light)) (:background "#d4d4d4" :foreground "black" :weight bold)))) '(highlight-changes-face ((((class color)) (:inherit highlight)))) '(highlight-changes-delete-face ((((class color)) (:box (:line-width 1 :color "#3d80df"))))) '(highlight-changes-face-1 ((t (:background "gray80"))) t) '(highlight-changes-face-2 ((t (:background "gray90"))) t) '(highlight-changes-face-3 ((t (:background "gray95"))) t) '(show-paren-match-face ((((class color)) (:foreground "saddle brown")))) '(show-paren-mismatch-face ((((class color)) (:foreground "red")))) '(font-lock-builtin-face ((((class color)) (:foreground "black")))) '(font-lock-comment-face ((((class color)) (:foreground "gray50")))) '(font-lock-constant-face ((((class color)) (:foreground "black")))) '(font-lock-function-name-face ((((class color)) (:foreground "black" :weight bold)))) '(font-lock-keyword-face ((((class color)) (:foreground "black")))) '(font-lock-string-face ((((class color)) (:foreground "forest green")))) '(font-lock-type-face ((((class color)) (:foreground "black")))) '(font-lock-variable-name-face ((((class color)) (:foreground "blue")))) '(font-lock-warning-face ((((class color)) (:foreground "red")))) '(html-tag-face ((t (:foreground "dodger blue")))) '(html-helper-bold-face ((t (:foreground "black")))) '(html-helper-builtin-face ((t (:foreground "black")))) '(html-helper-italic-face ((t (:foreground "black")))) '(html-helper-underline-face ((t (:foreground "black")))) '(cperl-array-face ((((class color) (background light)) (:foreground "orange")))) '(cperl-hash-face ((((class color) (background light)) (:foreground "chocolate4")))) '(cperl-nonoverridable-face ((((class color) (background light)) nil))) '(mmm-default-submode-face ((t (:background "yellow")))) '(mmm-cleanup-submode-face ((t (:background "yellow")))) '(mmm-code-submode-face ((t (:background "yellow")))) '(mmm-comment-submode-face ((t (:background "yellow")))) '(mmm-declaration-submode-face ((t (:background "yellow")))) '(mmm-output-submode-face ((t (:background "yellow")))) '(mmm-special-submode-face ((t (:background "yellow")))) '(mmm-init-submode-face ((t (:background "yellow")))) '(highlight ((((class color)) (:background "#3d80df" :foreground "white")))) ) The highlight face I was referring to isn't something I implemented myself; it's just an existing face that I've customized. What I'm finding confusing is the way in which these faces are applied when more than 1 of them is in effect. I would appreciate any light you can shed on this subject. Thanks, Matt