From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lennart Borgman Newsgroups: gmane.emacs.devel Subject: Re: hi-lock and overlays (was: Conflicting overlays and the 'priority property) Date: Mon, 18 Jan 2010 22:51:23 +0100 Message-ID: References: <87hbqk620u.fsf@thinkpad.tsdh.de> <87ljfvqerd.fsf@thinkpad.tsdh.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1263851617 10686 80.91.229.12 (18 Jan 2010 21:53:37 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 18 Jan 2010 21:53:37 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jan 18 22:53:30 2010 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1NWzXJ-0003fK-9F for ged-emacs-devel@m.gmane.org; Mon, 18 Jan 2010 22:53:25 +0100 Original-Received: from localhost ([127.0.0.1]:35531 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NWzXK-0008F4-7U for ged-emacs-devel@m.gmane.org; Mon, 18 Jan 2010 16:53:26 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NWzVm-0007Le-J7 for emacs-devel@gnu.org; Mon, 18 Jan 2010 16:51:50 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NWzVg-0007J9-Tt for emacs-devel@gnu.org; Mon, 18 Jan 2010 16:51:49 -0500 Original-Received: from [199.232.76.173] (port=47117 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NWzVg-0007Iy-NC for emacs-devel@gnu.org; Mon, 18 Jan 2010 16:51:44 -0500 Original-Received: from mail-fx0-f228.google.com ([209.85.220.228]:60693) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NWzVg-0003Jj-9U for emacs-devel@gnu.org; Mon, 18 Jan 2010 16:51:44 -0500 Original-Received: by fxm28 with SMTP id 28so1421256fxm.26 for ; Mon, 18 Jan 2010 13:51:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :from:date:message-id:subject:to:content-type :content-transfer-encoding; bh=18LjdB/0Us4FXkq/R/bstKdUJ/EOVoHKKwVA3bNte/o=; b=BBbHoRp5IReJhoNKNgvdPCLzVibNrkq6zch+QcYLqdtSGrTPnH5+jaD++aEWDiY3yP gdWHf5FmXfa8UsZGmp/H5x01p0u2JMQa/FqfS+QC1r5v+6Cqu81nnJluL8Gowt/59uM5 jLChhmlUYvtD+ZZufwLOaLCuf4JP9coI797EI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type:content-transfer-encoding; b=pvdVsnI7n8VfUJSJ8tJbeumdn5B7cgS9ixjq9XmtPwrEWQasWXRlLV+MpGKjGJ+LD7 7fAzBTmk+FNvtdQFEccAnC0oF29ePD5hcjoS1nkvaQUKD28gZlPt5S+gLm1XPbSXn8WP Xk+cUjGtrsnqVAVgh9XWSdAFmmhDmwlfFhu6A= Original-Received: by 10.239.142.10 with SMTP id e10mr695006hba.82.1263851503117; Mon, 18 Jan 2010 13:51:43 -0800 (PST) In-Reply-To: <87ljfvqerd.fsf@thinkpad.tsdh.de> X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:120222 Archived-At: On Mon, Jan 18, 2010 at 10:33 PM, Tassilo Horn wro= te: > Hi all, > > I was wrong with my previous mail. =C2=A0The problem that hi-lock pattern= on > the current line are not highlighted, when `hl-line-mode' is enabled is > not due to conflicting overlays. =C2=A0The problem is that hi-lock uses > overlays only when the undocumented variable `font-lock-fontified' is > nil (see `hi-lock-set-pattern'). =C2=A0Else, it uses normal fontification= , > and overlays (like the one for the current line created by > `hl-line-mode') take precedence over that. I would rather turn the question this way: - Why can't an overlay have a priority that is lower than text?