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: Sun, 7 Nov 2004 08:48:42 -0800 Message-ID: References: <87pt2ra2b6.fsf@ID-87814.user.uni-berlin.de> <87is8i3yjm.fsf@ID-87814.user.uni-berlin.de> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 (Apple Message framework v619) Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1099846175 10692 80.91.229.6 (7 Nov 2004 16:49:35 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 7 Nov 2004 16:49:35 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Nov 07 17:49:22 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 1CQqEE-00027Y-00 for ; Sun, 07 Nov 2004 17:49:22 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CQqMW-0001ak-VT for geh-help-gnu-emacs@m.gmane.org; Sun, 07 Nov 2004 11:57:56 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CQqML-0001Yi-Qh for help-gnu-emacs@gnu.org; Sun, 07 Nov 2004 11:57:45 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CQqML-0001YW-CO for help-gnu-emacs@gnu.org; Sun, 07 Nov 2004 11:57:45 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CQqML-0001YT-9C for help-gnu-emacs@gnu.org; Sun, 07 Nov 2004 11:57:45 -0500 Original-Received: from [17.250.248.83] (helo=smtpout.mac.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CQqDf-00088G-Lv for help-gnu-emacs@gnu.org; Sun, 07 Nov 2004 11:48:47 -0500 Original-Received: from mac.com (smtpin07-en2 [10.13.10.152]) by smtpout.mac.com (8.12.6/MantshX 2.0) with ESMTP id iA7Gmk0R019379 for ; Sun, 7 Nov 2004 08:48:46 -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/smtpin07/MantshX 4.0) with ESMTP id iA7GmiVp012196 for ; Sun, 7 Nov 2004 08:48:45 -0800 (PST) In-Reply-To: <87is8i3yjm.fsf@ID-87814.user.uni-berlin.de> 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:21802 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:21802 El Nov 6, 2004, a las 11:31 PM, Oliver Scholz escribi=F3: > If I understand you correctly, you have a light background and a dark > foreground for the default face and a dark background and a light > foreground for the highlight face. You said that in some cases the > dark background of the highlight face does not take effect. Yes, that's exactly what is happening. > Is that > /everywhere/, where a face other than the default face is in the > buffer? Or does this apply only for a few faces? Or only in some > modes? If the latter: which mode? I see this when I'm using mmm-mode (Multiple Major Mode Mode) with=20 html-helper and cperl as the two major modes in effect. I use mmm-mode=20= to edit HTML files which have Perl embedded in them; giving the Perl=20 code a yellow background makes it easy to find. But with hl-line=20 enabled, the current line has white text on a yellow background. I do remember seeing this happen once before, but if I remember=20 correctly, whatever caused it wasn't useful enough to spend time trying=20= to fix it, so I quit using it. I can't remember what it was at the=20 moment. > If the former: you can examine the text properties a point with M-x > list-text-properties-at (assuming you are using a released version of > Emacs 21). Please post that together with a description of what you > see. I'm using a version I built from CVS for Mac OS X Carbon a couple of=20 months ago (emacs-version says it's 21.3.50.1). I don't have a=20 list-text-properties-at command, but I do have=20 describe-text-properties. Here is its output when point is in some Perl=20= code in mmm-mode: Text content at position 13268: There are 2 overlays here: =46rom 13267 to 13316 mmm t beg-sticky t end-sticky t evaporate t mmm-evap t priority 1 name nil display-name nil mmm-mode cperl-mode face mmm-declaration-submode-face mmm-local-variables ((font-lock-cache-state nil) (font-lock-cache-position #)) =46rom 13268 to 13281 window nil face highlight There are text properties here: fontified t As described above, what I am seeing here is a block of Perl code with=20= a yellow background, where the text on the current line is white. What=20= I would *like* to see is exactly this, except with a blue background on=20= the current line. Thanks again, Matt=