From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Oliver Scholz Newsgroups: gmane.emacs.help Subject: Re: Face precedence Date: Mon, 08 Nov 2004 09:29:33 +0100 Message-ID: <873bzkkaky.fsf@ID-87814.user.uni-berlin.de> 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 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1099906382 28719 80.91.229.6 (8 Nov 2004 09:33:02 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 8 Nov 2004 09:33:02 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Nov 08 10:32:58 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 1CR5tR-0003ma-00 for ; Mon, 08 Nov 2004 10:32:57 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CR61m-0006Vw-QN for geh-help-gnu-emacs@m.gmane.org; Mon, 08 Nov 2004 04:41:34 -0500 Original-Newsgroups: gnu.emacs.help X-Attribution: os X-Face: "HgH2sgK|bfH$; PiOJI6|qUCf.ve<51_Od(%ynHr?=>znn#~#oS>",F%B8&\vus),2AsPYb -n>PgddtGEn}s7kH?7kH{P_~vu?]OvVN^qD(L)>G^gDCl(U9n{:d>'DkilN!_K"eNzjrtI4Ya6; Td% IZGMbJ{lawG+'J>QXPZD&TwWU@^~A}f^zAb[Ru;CT(UA]c& User-Agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3.50 (gnu/linux) Cancel-Lock: sha1:Yf+ymvDJl56BIweF/FQ+eyaO4fA= Original-NNTP-Posting-Host: 84.57.66.144 Original-X-Trace: 8 Nov 2004 10:29:49 +0100, 84.57.66.144 Original-Lines: 30 Original-X-Complaints-To: abuse@arcor-ip.de Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!syros.belnet.be!news.belnet.be!newsmi-eu.news.garr.it!NewsITBone-GARR!irazu.switch.ch!switch.ch!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsfeed.arcor-ip.de!news.arcor-ip.de!84.57.66.144 Original-Xref: shelby.stanford.edu gnu.emacs.help:126427 Original-To: help-gnu-emacs@gnu.org 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:21818 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:21818 Matthew Calhoun writes: > El Nov 6, 2004, a las 11:31 PM, Oliver Scholz escribió: > [hl-line-mode face attributes not properly applied] >> 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 > html-helper and cperl as the two major modes in effect. You were right. mmm-mode uses overlays and setting overlay priorities seems to be the way to fix the problem. I can reproduce something along the lines of what you described, when I specify a mmm-submode region *after* I turned hl-line-mode on. Shooting from the hips, this seems to fix it: (add-hook 'hl-line-mode-hook (lambda () (overlay-put hl-line-overlay 'priority most-positive-fixnum))) Oliver -- 18 Brumaire an 213 de la Révolution Liberté, Egalité, Fraternité!