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: Face precedence Date: Fri, 29 Oct 2004 09:26:45 -0700 Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <5340521A-29C7-11D9-AE82-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 1099067260 24008 80.91.229.6 (29 Oct 2004 16:27:40 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 29 Oct 2004 16:27:40 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Oct 29 18:27:31 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 1CNZb9-00012M-00 for ; Fri, 29 Oct 2004 18:27:31 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CNZiz-0003zU-S8 for geh-help-gnu-emacs@m.gmane.org; Fri, 29 Oct 2004 12:35:37 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CNZiq-0003zD-15 for help-gnu-emacs@gnu.org; Fri, 29 Oct 2004 12:35:28 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CNZip-0003yp-7A for help-gnu-emacs@gnu.org; Fri, 29 Oct 2004 12:35:27 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CNZip-0003yU-2s for help-gnu-emacs@gnu.org; Fri, 29 Oct 2004 12:35:27 -0400 Original-Received: from [17.250.248.45] (helo=smtpout.mac.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CNZaU-0007CK-3p for help-gnu-emacs@gnu.org; Fri, 29 Oct 2004 12:26:50 -0400 Original-Received: from mac.com (smtpin07-en2 [10.13.10.152]) by smtpout.mac.com (Xserve/MantshX 2.0) with ESMTP id i9TGQmFK025612 for ; Fri, 29 Oct 2004 09:26:48 -0700 (PDT) Original-Received: from [10.0.1.159] (h-66-134-200-194.snvacaid.covad.net [66.134.200.194]) (authenticated bits=0) by mac.com (Xserve/smtpin07/MantshX 4.0) with ESMTP id i9TGQlvD015795 for ; Fri, 29 Oct 2004 09:26:48 -0700 (PDT) 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: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:21590 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:21590 Hello, I'm trying to figure out what determines the order in which faces are applied to a block of text. I have highlight face, which is applied to whatever line point is on, defined as white text on a dark background. But in programming modes I also have some syntax-related faces defined with a light background. Strangely, in some of these modes the highlight face's light foreground is applied, but not its dark background. Instead, the syntax face's light background is displayed, resulting in light text on a light background. What I would like to do is make sure that highlight face always takes precedence over whatever other faces are applied to the text. I'm sure this is possible, but I haven't been able to find or figure out how. Can anyone point me in the right direction? Thanks, Matt