From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: lawrence mitchell Newsgroups: gmane.emacs.help Subject: Re: Background colors in font-lock-keywords Date: Wed, 28 May 2003 14:15:35 +0100 Organization: funfunfun Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1054128083 24139 80.91.224.249 (28 May 2003 13:21:23 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 28 May 2003 13:21:23 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Wed May 28 15:21:21 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19L0qk-0006CR-00 for ; Wed, 28 May 2003 15:20:15 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.20) id 19L0r2-00045q-0w for gnu-help-gnu-emacs@m.gmane.org; Wed, 28 May 2003 09:20:32 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!headwall.stanford.edu!fu-berlin.de!uni-berlin.de!vegetable.demon.co.UK!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 24 Original-NNTP-Posting-Host: vegetable.demon.co.uk (80.177.16.3) Original-X-Trace: fu-berlin.de 1054127735 5367213 80.177.16.3 (16 [97657]) X-No-Yes: No Mail-Copies-To: nobody User-Agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3.50 Cancel-Lock: sha1:lcQYMy974b/cNKD6CWBVQGSv3Gk= Original-Xref: shelby.stanford.edu gnu.emacs.help:113785 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:10280 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:10280 Oliver Scholz wrote: [...] PREPEND versus APPEND in font-lock-keywords. > Erm, this code was just example code, so I am personally not so sure > which one should take precedence, the old fontification or the new > one. It's hard for me to make an educated guess, because the major > mode has no meaning, and so the fontification has no meaning. > But maybe you have a more general reason to say this. Could you > please elaborate? The way I read it, if using `append', rather than `prepend', in the example above, EXAMPLE-L-WORD-FACE would change the background iff FONT-LOCK-WARNING-FACE and FONT-LOCK-KEYWORD-FACE, did not set the background colour. Certainly in my Emacs setup, said faces have had their backgrounds set explicitly. Maybe a font-lock wizard can jump in with a better and/or correct explanation. -- lawrence mitchell