GNU logs - #13718, boring messages


Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#13718: [patch] prevents hl-line from overriding highlight-mode
Resent-From: Fei <fei.yuanbw@HIDDEN>
Original-Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Fri, 15 Feb 2013 05:33:02 +0000
Resent-Message-ID: <handler.13718.B.136090633211649 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: report 13718
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: patch
To: 13718 <at> debbugs.gnu.org
X-Debbugs-Original-To: bug-gnu-emacs@HIDDEN
Received: via spool by submit <at> debbugs.gnu.org id=B.136090633211649
          (code B ref -1); Fri, 15 Feb 2013 05:33:02 +0000
Received: (at submit) by debbugs.gnu.org; 15 Feb 2013 05:32:12 +0000
Received: from localhost ([127.0.0.1]:56969 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1U6Du7-00031m-Ju
	for submit <at> debbugs.gnu.org; Fri, 15 Feb 2013 00:32:12 -0500
Received: from eggs.gnu.org ([208.118.235.92]:58944)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <fei.yuanbw@HIDDEN>) id 1U6CvW-0001cU-00
	for submit <at> debbugs.gnu.org; Thu, 14 Feb 2013 23:29:34 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <fei.yuanbw@HIDDEN>) id 1U6Cul-0006bJ-Vc
	for submit <at> debbugs.gnu.org; Thu, 14 Feb 2013 23:28:53 -0500
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,FREEMAIL_FROM,
	RCVD_IN_DNSWL_LOW,T_DKIM_INVALID autolearn=unavailable version=3.3.2
Received: from lists.gnu.org ([208.118.235.17]:33390)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <fei.yuanbw@HIDDEN>) id 1U6Cul-0006bA-Sj
	for submit <at> debbugs.gnu.org; Thu, 14 Feb 2013 23:28:47 -0500
Received: from eggs.gnu.org ([208.118.235.92]:42043)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <fei.yuanbw@HIDDEN>) id 1U6Cuf-0000tP-UM
	for bug-gnu-emacs@HIDDEN; Thu, 14 Feb 2013 23:28:47 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <fei.yuanbw@HIDDEN>) id 1U6Cuc-0006Y2-AH
	for bug-gnu-emacs@HIDDEN; Thu, 14 Feb 2013 23:28:41 -0500
Received: from mail-qc0-f170.google.com ([209.85.216.170]:60947)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <fei.yuanbw@HIDDEN>) id 1U6Cuc-0006Xl-2W
	for bug-gnu-emacs@HIDDEN; Thu, 14 Feb 2013 23:28:38 -0500
Received: by mail-qc0-f170.google.com with SMTP id d42so1164127qca.29
	for <bug-gnu-emacs@HIDDEN>; Thu, 14 Feb 2013 20:28:37 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=mime-version:x-received:date:message-id:subject:from:to
	:content-type; bh=gozy6w14zdkHZL/iM5O6K2dIBmMrBJBi6xx7KXxRGkw=;
	b=yikl/QWqTQ0yJaTq40abDKW7vkOiM0R0MnYjSIdZxYESLIuWn46Xx3PGUge3uiz9L8
	S4TsYYFZ5G8nNDUPIK8XDT2Pu3tbQl4N0rhHEPWr9ugr93fsT0RIQ2v4jZVp7R3Z/foB
	lt1fdM06Tp2xdp9luNHGZEkLTVX10dJR2aXnCa0aeXoIKzKXGg5ewoRGaV08X93ZRrpl
	biiwmsUToo53c3TtBPKK6Oc2XJQOFJZF04sf0Jy/oxNxw+Y3A3r2jbz3qfZMpiciudKf
	3ORabHodcXMVxBqNe/KhVgehiWDKLZlWahBLsi+Dd7MKJNodZQ0k+HPe+krb7ri5i1OB
	EhPA==
MIME-Version: 1.0
X-Received: by 10.229.136.78 with SMTP id q14mr110466qct.74.1360902517223;
	Thu, 14 Feb 2013 20:28:37 -0800 (PST)
Received: by 10.49.132.165 with HTTP; Thu, 14 Feb 2013 20:28:37 -0800 (PST)
Date: Thu, 14 Feb 2013 23:28:37 -0500
Message-ID: <CAG8JBjCsfYq8v7QyvKcjrQ=yqAJcbXcgm6fnndpPcq7MZ_GECQ@HIDDEN>
From: Fei <fei.yuanbw@HIDDEN>
Content-Type: text/plain; charset=UTF-8
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy]
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Received-From: 208.118.235.17
X-Spam-Score: -3.4 (---)
X-Mailman-Approved-At: Fri, 15 Feb 2013 00:32:09 -0500
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -6.1 (------)

Hello,

I found that the overlays in highlight-mode do not override the
overlays from global-hl-line-mode, causing them to disappear on the
currently active line.  The solution I found was to edit hi-lock.el to
increase the priority of the overlay, as outlined in this patch:

--- hi-lock.el 2012-08-28 19:40:24.000000000 -0400
+++ hi-lock.el 2013-02-14 12:57:56.715031100 -0500
@@ -591,6 +591,7 @@
             (goto-char search-start)
             (while (re-search-forward regexp search-end t)
               (let ((overlay (make-overlay (match-beginning 0) (match-end 0))))
+                (overlay-put overlay 'priority 1)
                 (overlay-put overlay 'hi-lock-overlay t)
                 (overlay-put overlay 'hi-lock-overlay-regexp serial)
                 (overlay-put overlay 'face face))

My Emacs version is: 24.2.1 (i386-mingw-nt6.1.7601) 2012-08-28 on MARVIN

Thanks,
Fei




Message sent:


Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-Mailer: MIME-tools 5.428 (Entity 5.428)
Content-Type: text/plain; charset=utf-8
X-Loop: help-debbugs@HIDDEN
From: help-debbugs@HIDDEN (GNU bug Tracking System)
To: Fei <fei.yuanbw@HIDDEN>
Subject: bug#13718: Acknowledgement ([patch] prevents hl-line from
 overriding highlight-mode)
Message-ID: <handler.13718.B.136090633211649.ack <at> debbugs.gnu.org>
References: <CAG8JBjCsfYq8v7QyvKcjrQ=yqAJcbXcgm6fnndpPcq7MZ_GECQ@HIDDEN>
X-Gnu-PR-Message: ack 13718
X-Gnu-PR-Package: emacs
X-Gnu-PR-Keywords: patch
Reply-To: 13718 <at> debbugs.gnu.org
Date: Fri, 15 Feb 2013 05:33:03 +0000

Thank you for filing a new bug report with debbugs.gnu.org.

This is an automatically generated reply to let you know your message
has been received.

Your message is being forwarded to the package maintainers and other
interested parties for their attention; they will reply in due course.

Your message has been sent to the package maintainer(s):
 bug-gnu-emacs@HIDDEN

If you wish to submit further information on this problem, please
send it to 13718 <at> debbugs.gnu.org.

Please do not send mail to help-debbugs@HIDDEN unless you wish
to report a problem with the Bug-tracking system.

--=20
13718: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D13718
GNU Bug Tracking System
Contact help-debbugs@HIDDEN with problems


Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#13718: [patch] prevents hl-line from overriding highlight-mode
Resent-From: "Drew Adams" <drew.adams@HIDDEN>
Original-Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Fri, 15 Feb 2013 15:28:01 +0000
Resent-Message-ID: <handler.13718.B13718.13609420639481 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 13718
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: patch
To: "'Fei'" <fei.yuanbw@HIDDEN>, <13718 <at> debbugs.gnu.org>
Received: via spool by 13718-submit <at> debbugs.gnu.org id=B13718.13609420639481
          (code B ref 13718); Fri, 15 Feb 2013 15:28:01 +0000
Received: (at 13718) by debbugs.gnu.org; 15 Feb 2013 15:27:43 +0000
Received: from localhost ([127.0.0.1]:57792 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1U6NCQ-0002Sq-5a
	for submit <at> debbugs.gnu.org; Fri, 15 Feb 2013 10:27:42 -0500
Received: from userp1040.oracle.com ([156.151.31.81]:47612)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <drew.adams@HIDDEN>) id 1U6NCM-0002Sh-Dx
	for 13718 <at> debbugs.gnu.org; Fri, 15 Feb 2013 10:27:40 -0500
Received: from acsinet22.oracle.com (acsinet22.oracle.com [141.146.126.238])
	by userp1040.oracle.com (Sentrion-MTA-4.3.1/Sentrion-MTA-4.3.1) with
	ESMTP id r1FFQrsg001739
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK);
	Fri, 15 Feb 2013 15:26:54 GMT
Received: from acsmt357.oracle.com (acsmt357.oracle.com [141.146.40.157])
	by acsinet22.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id
	r1FFQrIg012345
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO);
	Fri, 15 Feb 2013 15:26:53 GMT
Received: from abhmt105.oracle.com (abhmt105.oracle.com [141.146.116.57])
	by acsmt357.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id
	r1FFQr7E031280; Fri, 15 Feb 2013 09:26:53 -0600
Received: from dradamslap1 (/10.159.70.147)
	by default (Oracle Beehive Gateway v4.0)
	with ESMTP ; Fri, 15 Feb 2013 07:26:52 -0800
From: "Drew Adams" <drew.adams@HIDDEN>
References: <CAG8JBjCsfYq8v7QyvKcjrQ=yqAJcbXcgm6fnndpPcq7MZ_GECQ@HIDDEN>
Date: Fri, 15 Feb 2013 07:26:48 -0800
Message-ID: <270B6FAA5E034F46945C3E7CC1A7DD3C@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain;
	charset="US-ASCII"
Content-Transfer-Encoding: 7bit
X-Mailer: Microsoft Office Outlook 11
In-Reply-To: <CAG8JBjCsfYq8v7QyvKcjrQ=yqAJcbXcgm6fnndpPcq7MZ_GECQ@HIDDEN>
Thread-Index: Ac4LPdtFhg30kcMPTqKiRZ+MO27K7AAUqM2g
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157
X-Source-IP: acsinet22.oracle.com [141.146.126.238]
X-Spam-Score: -1.5 (-)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -1.5 (-)

> I found that the overlays in highlight-mode do not override the
> overlays from global-hl-line-mode, causing them to disappear on the
> currently active line.  The solution I found was to edit hi-lock.el to
> increase the priority of the overlay, as outlined in this patch:

Bad design.

The priority here should be a user option, or at least a defvar that a user can
tweak.  Likewise, for other overlay priorities in Emacs.

A library can reasonably set the _default_ priority for an overlay, but it
cannot know what priority might actually be most appropriate when the library is
used in combination with other code and when taking user preferences into
account.





Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#13718: [patch] prevents hl-line from overriding highlight-mode
Resent-From: Stefan Monnier <monnier@HIDDEN>
Original-Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Fri, 15 Feb 2013 15:53:02 +0000
Resent-Message-ID: <handler.13718.B13718.136094354111788 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 13718
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: patch
To: Fei <fei.yuanbw@HIDDEN>
Cc: 13718 <at> debbugs.gnu.org
Received: via spool by 13718-submit <at> debbugs.gnu.org id=B13718.136094354111788
          (code B ref 13718); Fri, 15 Feb 2013 15:53:02 +0000
Received: (at 13718) by debbugs.gnu.org; 15 Feb 2013 15:52:21 +0000
Received: from localhost ([127.0.0.1]:57818 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1U6NaG-000345-UV
	for submit <at> debbugs.gnu.org; Fri, 15 Feb 2013 10:52:21 -0500
Received: from relais.videotron.ca ([24.201.245.36]:46451)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <monnier@HIDDEN>) id 1U6NaF-00033z-LI
	for 13718 <at> debbugs.gnu.org; Fri, 15 Feb 2013 10:52:20 -0500
MIME-version: 1.0
Content-transfer-encoding: 7BIT
Content-type: text/plain; CHARSET=US-ASCII
Received: from ceviche.home ([24.201.208.110]) by VL-VM-MR006.ip.videotron.ca
	(Oracle Communications Messaging Exchange Server 7u4-22.01 64bit
	(built Apr 21
	2011)) with ESMTP id <0MI9001U1QQ0TJ10@HIDDEN> for
	13718 <at> debbugs.gnu.org; Fri, 15 Feb 2013 10:51:36 -0500 (EST)
Received: by ceviche.home (Postfix, from userid 20848)	id D073166109; Fri,
	15 Feb 2013 10:51:35 -0500 (EST)
From: Stefan Monnier <monnier@HIDDEN>
Message-id: <jwvmwv5zijb.fsf-monnier+emacs@HIDDEN>
References: <CAG8JBjCsfYq8v7QyvKcjrQ=yqAJcbXcgm6fnndpPcq7MZ_GECQ@HIDDEN>
Date: Fri, 15 Feb 2013 10:51:35 -0500
In-reply-to: <CAG8JBjCsfYq8v7QyvKcjrQ=yqAJcbXcgm6fnndpPcq7MZ_GECQ@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)
X-Spam-Score: 1.6 (+)
X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org",
	has
	identified this incoming email as possible spam. The original message
	has been attached to this so you can view it (if it isn't spam) or
	label similar future email.  If you have any questions, see
	the administrator of that system for details.
	Content preview: > I found that the overlays in highlight-mode do not
	override the > overlays from global-hl-line-mode,
	causing them to disappear on the
	> currently active line. hl-line seems to leave its overlay's priority
	unspecified (good!),
	which means that it should take precedence over overlays which are
	larger (e.g. span multiple lines) while smaller overlays within the
	current line should take precedence over it. [...] 
	Content analysis details:   (1.6 points, 10.0 required)
	pts rule name              description
	---- ----------------------
	--------------------------------------------------
	-0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/,
	no trust [24.201.245.36 listed in list.dnswl.org]
	0.7 SPF_SOFTFAIL SPF: sender does not match SPF record (softfail)
	0.8 BAYES_50               BODY: Bayes spam probability is 40 to 60%
	[score: 0.4398]
	0.1 HDRS_LCASE             Odd capitalization of message header
	0.0 T_MANY_HDRS_LCASE Odd capitalization of multiple message headers
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: 0.2 (/)

> I found that the overlays in highlight-mode do not override the
> overlays from global-hl-line-mode, causing them to disappear on the
> currently active line.

hl-line seems to leave its overlay's priority unspecified (good!), which
means that it should take precedence over overlays which are larger
(e.g. span multiple lines) while smaller overlays within the current
line should take precedence over it.

Can you describe your particular case?  What are the overlays that
"disappear", what do they cover, and why do you think they should not
"disappear" like that?

> The solution I found was to edit hi-lock.el to
> increase the priority of the overlay, as outlined in this patch:

I must admit to disliking explicit overlay priorities, which tend to
just lead to more problems down the road (needing to specify priorities
on more overlays, which in turn cause yet more problems, ...), so if at
all possible, I'd rather avoid doing that.


        Stefan




Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#13718: [patch] prevents hl-line from overriding highlight-mode
Resent-From: Fei <fei.yuanbw@HIDDEN>
Original-Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Fri, 15 Feb 2013 16:16:02 +0000
Resent-Message-ID: <handler.13718.B13718.136094495813745 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 13718
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: patch
To: Stefan Monnier <monnier@HIDDEN>, Drew Adams <drew.adams@HIDDEN>
Cc: 13718 <at> debbugs.gnu.org
Received: via spool by 13718-submit <at> debbugs.gnu.org id=B13718.136094495813745
          (code B ref 13718); Fri, 15 Feb 2013 16:16:02 +0000
Received: (at 13718) by debbugs.gnu.org; 15 Feb 2013 16:15:58 +0000
Received: from localhost ([127.0.0.1]:57823 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1U6Nx8-0003Ze-9Y
	for submit <at> debbugs.gnu.org; Fri, 15 Feb 2013 11:15:58 -0500
Received: from mail-ee0-f42.google.com ([74.125.83.42]:42462)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <fei.yuanbw@HIDDEN>) id 1U6Nx4-0003ZT-RS
	for 13718 <at> debbugs.gnu.org; Fri, 15 Feb 2013 11:15:56 -0500
Received: by mail-ee0-f42.google.com with SMTP id b47so1855645eek.29
	for <13718 <at> debbugs.gnu.org>; Fri, 15 Feb 2013 08:15:10 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
	d=googlemail.com; s=20120113;
	h=mime-version:x-received:in-reply-to:references:date:message-id
	:subject:from:to:cc:content-type;
	bh=RorfjT2APFXJ60hhhat+91eAMPVX4tPbYSCUUDNmb9A=;
	b=bJXZ2XaIEWTRNtoiC6ePKiMAr7OGaSzIMc2mu1EQWh0p/R1pfBjsMdyz4/F/LT/dwO
	V7T0D79UzIzwJxH1xrHUE5sFZrrNAa3h4cEdQNTBRnES2XpEwDn8OYr9yOc0Zi2oUX7G
	P8BZ3YpnFpEu0WtkP0iFEjJIhGT3ULxfw55VaUF3upYKVRDT/h7cvAt45yXp6FM82SPg
	SPs57OezhKm8Q6Pt/57Gxnmh+4cu/LouUuOGDC1SD16WBLHY+1pIwmZclEQ9thtqyQxT
	Wcg69B9V6WD/D0OVPQTJD/59XL1ZV/hdy/FNgadKxg9EcX6OmyT8RhHnJy9HBYxMCw+b
	Kd3Q==
MIME-Version: 1.0
X-Received: by 10.14.4.69 with SMTP id 45mr10068731eei.0.1360944910326; Fri,
	15 Feb 2013 08:15:10 -0800 (PST)
Received: by 10.14.130.10 with HTTP; Fri, 15 Feb 2013 08:15:10 -0800 (PST)
In-Reply-To: <jwvmwv5zijb.fsf-monnier+emacs@HIDDEN>
References: <CAG8JBjCsfYq8v7QyvKcjrQ=yqAJcbXcgm6fnndpPcq7MZ_GECQ@HIDDEN>
	<jwvmwv5zijb.fsf-monnier+emacs@HIDDEN>
Date: Fri, 15 Feb 2013 11:15:10 -0500
Message-ID: <CAG8JBjCxxomDcZLRSfnazJ0NhwER4VhncSszBWjz5wboQB4VFA@HIDDEN>
From: Fei <fei.yuanbw@HIDDEN>
Content-Type: text/plain; charset=UTF-8
X-Spam-Score: 0.1 (/)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -0.7 (/)

> hl-line seems to leave its overlay's priority unspecified (good!), which
> means that it should take precedence over overlays which are larger
> (e.g. span multiple lines) while smaller overlays within the current
> line should take precedence over it.
>
> Can you describe your particular case?  What are the overlays that
> "disappear", what do they cover, and why do you think they should not
> "disappear" like that?

That's actually a reasonable alternative to my hard-coded solution,
but the problem is that it doesn't seem to work in every case: when I
open a file that has syntax highlighting (e.g. Bash or Python) and
then use highlight-phrase/regexp, the global-hl-line will have higher
priority than the highlight, no matter what the size of the highlight
is.  If I do the same thing in text-mode, the problem does not occur.
(This was tested on 24.2.1-i386-mingw-nt6.1.7601  without any custom
configuration.)

> The priority here should be a user option, or at least a defvar that a user can
> tweak.  Likewise, for other overlay priorities in Emacs.

That's fine too, as long as it can be changed without directly messing
with the internals.  Currently there is no such variable available for
either hl-line or any of the highlights.




Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#13718: [patch] prevents hl-line from overriding highlight-mode
Resent-From: Stefan Monnier <monnier@HIDDEN>
Original-Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Fri, 15 Feb 2013 17:32:01 +0000
Resent-Message-ID: <handler.13718.B13718.136094949620558 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 13718
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: patch
To: Fei <fei.yuanbw@HIDDEN>
Cc: 13718 <at> debbugs.gnu.org, Drew Adams <drew.adams@HIDDEN>
Received: via spool by 13718-submit <at> debbugs.gnu.org id=B13718.136094949620558
          (code B ref 13718); Fri, 15 Feb 2013 17:32:01 +0000
Received: (at 13718) by debbugs.gnu.org; 15 Feb 2013 17:31:36 +0000
Received: from localhost ([127.0.0.1]:57890 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1U6P8K-0005LX-2u
	for submit <at> debbugs.gnu.org; Fri, 15 Feb 2013 12:31:36 -0500
Received: from ironport2-out.teksavvy.com ([206.248.154.182]:32667)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <monnier@HIDDEN>) id 1U6P8I-0005LQ-DH
	for 13718 <at> debbugs.gnu.org; Fri, 15 Feb 2013 12:31:35 -0500
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: Av4EABK/CFFFxKjI/2dsb2JhbABEvw4Xc4IeAQEEAVYjBQsLNBIUGA0kLodwBsEtkQoDiGGcGYFegxU
X-IPAS-Result: Av4EABK/CFFFxKjI/2dsb2JhbABEvw4Xc4IeAQEEAVYjBQsLNBIUGA0kLodwBsEtkQoDiGGcGYFegxU
X-IronPort-AV: E=Sophos;i="4.84,565,1355115600"; 
   d="scan'208";a="1513903"
Received: from 69-196-168-200.dsl.teksavvy.com (HELO pastel.home)
	([69.196.168.200])
	by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA;
	15 Feb 2013 12:30:49 -0500
Received: by pastel.home (Postfix, from userid 20848)
	id 96F526F8CF; Fri, 15 Feb 2013 12:30:48 -0500 (EST)
From: Stefan Monnier <monnier@HIDDEN>
Message-ID: <jwvmwv532sm.fsf-monnier+emacs@HIDDEN>
References: <CAG8JBjCsfYq8v7QyvKcjrQ=yqAJcbXcgm6fnndpPcq7MZ_GECQ@HIDDEN>
	<jwvmwv5zijb.fsf-monnier+emacs@HIDDEN>
	<CAG8JBjCxxomDcZLRSfnazJ0NhwER4VhncSszBWjz5wboQB4VFA@HIDDEN>
Date: Fri, 15 Feb 2013 12:30:48 -0500
In-Reply-To: <CAG8JBjCxxomDcZLRSfnazJ0NhwER4VhncSszBWjz5wboQB4VFA@HIDDEN>
	(Fei's message of "Fri, 15 Feb 2013 11:15:10 -0500")
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -0.0 (/)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -1.9 (-)

>> hl-line seems to leave its overlay's priority unspecified (good!), which
>> means that it should take precedence over overlays which are larger
>> (e.g. span multiple lines) while smaller overlays within the current
>> line should take precedence over it.

> That's actually a reasonable alternative to my hard-coded solution,
> but the problem is that it doesn't seem to work in every case: when I
> open a file that has syntax highlighting (e.g. Bash or Python) and
> then use highlight-phrase/regexp, the global-hl-line will have higher
> priority than the highlight, no matter what the size of the highlight
> is.  If I do the same thing in text-mode, the problem does not occur.
> (This was tested on 24.2.1-i386-mingw-nt6.1.7601  without any custom
> configuration.)

That's a different issue: in most major modes, font-lock will be enable,
in which case hi-lock uses it, which implies that hi-lock will use
text-properties instead of overlays.  And text-properties always have
lower priority than overlays.
Problem is: in such a case, not only you do have a problem, but your
patch should make no difference, so overlays always take priority over
text-properties, no matter the value of the `priority' property.

IOW, are you sure your patch fixes the problem for you?


        Stefan




Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#13718: [patch] prevents hl-line from overriding highlight-mode
Resent-From: "Drew Adams" <drew.adams@HIDDEN>
Original-Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Fri, 15 Feb 2013 17:47:02 +0000
Resent-Message-ID: <handler.13718.B13718.136095037622061 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 13718
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: patch
To: "'Stefan Monnier'" <monnier@HIDDEN>, "'Fei'" <fei.yuanbw@HIDDEN>
Cc: 13718 <at> debbugs.gnu.org
Received: via spool by 13718-submit <at> debbugs.gnu.org id=B13718.136095037622061
          (code B ref 13718); Fri, 15 Feb 2013 17:47:02 +0000
Received: (at 13718) by debbugs.gnu.org; 15 Feb 2013 17:46:16 +0000
Received: from localhost ([127.0.0.1]:57924 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1U6PMV-0005jl-0H
	for submit <at> debbugs.gnu.org; Fri, 15 Feb 2013 12:46:15 -0500
Received: from aserp1040.oracle.com ([141.146.126.69]:27839)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <drew.adams@HIDDEN>) id 1U6PMS-0005jd-WC
	for 13718 <at> debbugs.gnu.org; Fri, 15 Feb 2013 12:46:14 -0500
Received: from ucsinet21.oracle.com (ucsinet21.oracle.com [156.151.31.93])
	by aserp1040.oracle.com (Sentrion-MTA-4.3.1/Sentrion-MTA-4.3.1) with
	ESMTP id r1FHjRuZ001756
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK);
	Fri, 15 Feb 2013 17:45:28 GMT
Received: from acsmt356.oracle.com (acsmt356.oracle.com [141.146.40.156])
	by ucsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id
	r1FHjQpx023425
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO);
	Fri, 15 Feb 2013 17:45:26 GMT
Received: from abhmt115.oracle.com (abhmt115.oracle.com [141.146.116.67])
	by acsmt356.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id
	r1FHjPKM018022; Fri, 15 Feb 2013 11:45:25 -0600
Received: from dradamslap1 (/10.159.70.147)
	by default (Oracle Beehive Gateway v4.0)
	with ESMTP ; Fri, 15 Feb 2013 09:45:25 -0800
From: "Drew Adams" <drew.adams@HIDDEN>
References: <CAG8JBjCsfYq8v7QyvKcjrQ=yqAJcbXcgm6fnndpPcq7MZ_GECQ@HIDDEN>
	<jwvmwv5zijb.fsf-monnier+emacs@HIDDEN>
Date: Fri, 15 Feb 2013 09:45:21 -0800
Message-ID: <E83C152889224601B0D33368483D0EAE@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain;
	charset="US-ASCII"
Content-Transfer-Encoding: 7bit
X-Mailer: Microsoft Office Outlook 11
In-Reply-To: <jwvmwv5zijb.fsf-monnier+emacs@HIDDEN>
Thread-Index: Ac4LlHn8hw9ksYwPSNqeC8iBxcFh5AADWMeg
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157
X-Source-IP: ucsinet21.oracle.com [156.151.31.93]
X-Spam-Score: -1.5 (-)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -2.3 (--)

> hl-line seems to leave its overlay's priority unspecified 
> (good!), which
> means that it should take precedence over overlays which are larger
> (e.g. span multiple lines) while smaller overlays within the current
> line should take precedence over it.

Yes, that is a good _default_ behavior.  That does not mean it is the behavior
that everyone wants/needs in every context.

Being able to easily change a given overlay's priority helps users.  Being able
to do that does not mean that everyone will do it.  And the doc can of course
advise users _not_ to fiddle with overlay priorities, in general.

But hard-coding the behavior makes things harder for users.  Think default
behavior, not _the_ behavior.  Give the overlay a defvar.  Users can ignore the
variable (generally recommended) or they can change its value if needed,
globally or locally.

> I must admit to disliking explicit overlay priorities,

+1

> which tend to just lead to more problems down the road (needing
> to specify priorities on more overlays, which in turn cause yet
> more problems, ...), so if at all possible, I'd rather avoid
> doing that.

Agreed - essentially an unwinnable arms race.  Still, we should make it easy for
users to do just that: control specific overlay priorities when they need to.

Emacs has always provided more than enough rope to hang oneself.  That's part of
being "the extensible, customizable, self-documenting real-time display editor."





Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#13718: [patch] prevents hl-line from overriding highlight-mode
Resent-From: Fei <fei.yuanbw@HIDDEN>
Original-Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Fri, 15 Feb 2013 17:51:01 +0000
Resent-Message-ID: <handler.13718.B13718.136095061622460 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 13718
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: patch
To: Stefan Monnier <monnier@HIDDEN>
Cc: 13718 <at> debbugs.gnu.org, Drew Adams <drew.adams@HIDDEN>
Received: via spool by 13718-submit <at> debbugs.gnu.org id=B13718.136095061622460
          (code B ref 13718); Fri, 15 Feb 2013 17:51:01 +0000
Received: (at 13718) by debbugs.gnu.org; 15 Feb 2013 17:50:16 +0000
Received: from localhost ([127.0.0.1]:57934 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1U6PQO-0005qD-Ep
	for submit <at> debbugs.gnu.org; Fri, 15 Feb 2013 12:50:16 -0500
Received: from mail-qc0-f171.google.com ([209.85.216.171]:46679)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <fei.yuanbw@HIDDEN>) id 1U6PQN-0005q6-0a
	for 13718 <at> debbugs.gnu.org; Fri, 15 Feb 2013 12:50:15 -0500
Received: by mail-qc0-f171.google.com with SMTP id d1so1312570qca.30
	for <13718 <at> debbugs.gnu.org>; Fri, 15 Feb 2013 09:49:30 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=mime-version:x-received:in-reply-to:references:date:message-id
	:subject:from:to:cc:content-type;
	bh=N6MhQokNXfb1EKtA1sCtTDaQfCZEB9fWp+1EhhNvxUY=;
	b=BjSmOuCyioDB39+ldEK6EHmYfcyc5vzmAOju9fshFcTKHkCQdh/BcVg+pYtfhy1xCr
	M9hkxegALN+4VWdHgrcN+0eLyiuw0GBxXhzaS/0WWAiCwN2QGf+K9fgNQ5lrHtTR6Mqo
	kUQ2nnfMyZha0k+ODQ1FUt2bs8VJPJ/hYU/UVhubtdD+wl1Re1+WOxW7By+KG7yNcdW+
	m16xC8YeClH1ZEF9tkjoG98m+Nj4R0YS3d9tH/KPvJYSvwlsTMtXphOtFrhB8kkszqUQ
	pMUC9EHY8IRR/7OmfBsAegy8wdtpLHhlr5qTKgz7AxYaKILbNeouaAAVVhcFTo264wrS
	VofA==
MIME-Version: 1.0
X-Received: by 10.49.127.101 with SMTP id nf5mr1318423qeb.20.1360950570554;
	Fri, 15 Feb 2013 09:49:30 -0800 (PST)
Received: by 10.49.132.165 with HTTP; Fri, 15 Feb 2013 09:49:30 -0800 (PST)
In-Reply-To: <jwvmwv532sm.fsf-monnier+emacs@HIDDEN>
References: <CAG8JBjCsfYq8v7QyvKcjrQ=yqAJcbXcgm6fnndpPcq7MZ_GECQ@HIDDEN>
	<jwvmwv5zijb.fsf-monnier+emacs@HIDDEN>
	<CAG8JBjCxxomDcZLRSfnazJ0NhwER4VhncSszBWjz5wboQB4VFA@HIDDEN>
	<jwvmwv532sm.fsf-monnier+emacs@HIDDEN>
Date: Fri, 15 Feb 2013 12:49:30 -0500
Message-ID: <CAG8JBjD=AGoyxSrqMP=FLGc7YA7FPxFMCVYUz7e5PN7WiSYO1A@HIDDEN>
From: Fei <fei.yuanbw@HIDDEN>
Content-Type: text/plain; charset=UTF-8
X-Spam-Score: 0.1 (/)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -0.7 (/)

> IOW, are you sure your patch fixes the problem for you?

Oh hey, I guess it doesn't after all.  Silly me.  I guess then the
question becomes, why doesn't hi-lock use overlays?  Or conversely,
why doesn't global-hl-line-mode use font-locks?




Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#13718: [patch] prevents hl-line from overriding highlight-mode
Resent-From: Fei <fei.yuanbw@HIDDEN>
Original-Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Sat, 16 Feb 2013 18:45:01 +0000
Resent-Message-ID: <handler.13718.B13718.136104026719080 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 13718
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: 
To: Stefan Monnier <monnier@HIDDEN>
Cc: 13718 <at> debbugs.gnu.org, Drew Adams <drew.adams@HIDDEN>
Received: via spool by 13718-submit <at> debbugs.gnu.org id=B13718.136104026719080
          (code B ref 13718); Sat, 16 Feb 2013 18:45:01 +0000
Received: (at 13718) by debbugs.gnu.org; 16 Feb 2013 18:44:27 +0000
Received: from localhost ([127.0.0.1]:59450 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1U6mkM-0004xg-AO
	for submit <at> debbugs.gnu.org; Sat, 16 Feb 2013 13:44:27 -0500
Received: from mail-qe0-f49.google.com ([209.85.128.49]:48944)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <fei.yuanbw@HIDDEN>) id 1U6mkI-0004xR-W5
	for 13718 <at> debbugs.gnu.org; Sat, 16 Feb 2013 13:44:24 -0500
Received: by mail-qe0-f49.google.com with SMTP id 5so1910505qea.36
	for <13718 <at> debbugs.gnu.org>; Sat, 16 Feb 2013 10:43:32 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=mime-version:x-received:in-reply-to:references:date:message-id
	:subject:from:to:cc:content-type;
	bh=QkNB6FB/PQt8KEtiWJeF8n1TUeL/H6VXdGcJ8STRnwk=;
	b=YJn2UyBtTNzbe8jTgDVEzodPh9zD14ZnRn6pZ0EY5lXB+4oTUYvWlLhCMm8kaZPdjQ
	ax9ILdaoscTC161g/2ebRSejUPIBSQDOd528+vRGx5Fdni9aPeqqhhXne+LRCriUr6f6
	eaX4icgCQwyy2Oya+fs9YrRJzj48i6d51pQTsFGl/Nrx3sT+QqY5snXFEToPp8g/82X8
	GA269fEpUUelTK0ZmlHjjorrv/EvAA5Jo9u4Cxw0wWtKiPkm+zhY1UwuXM82JCMGSqrV
	K2RKzfAGbYBWPgTwCv9VLh4Sxnx3ktBLdCBaVQTWLwBekNFD8fLnh9h2/DEWgH+A/34/
	7RGQ==
MIME-Version: 1.0
X-Received: by 10.49.120.225 with SMTP id lf1mr2672331qeb.14.1361040212811;
	Sat, 16 Feb 2013 10:43:32 -0800 (PST)
Received: by 10.49.132.165 with HTTP; Sat, 16 Feb 2013 10:43:32 -0800 (PST)
In-Reply-To: <CAG8JBjD=AGoyxSrqMP=FLGc7YA7FPxFMCVYUz7e5PN7WiSYO1A@HIDDEN>
References: <CAG8JBjCsfYq8v7QyvKcjrQ=yqAJcbXcgm6fnndpPcq7MZ_GECQ@HIDDEN>
	<jwvmwv5zijb.fsf-monnier+emacs@HIDDEN>
	<CAG8JBjCxxomDcZLRSfnazJ0NhwER4VhncSszBWjz5wboQB4VFA@HIDDEN>
	<jwvmwv532sm.fsf-monnier+emacs@HIDDEN>
	<CAG8JBjD=AGoyxSrqMP=FLGc7YA7FPxFMCVYUz7e5PN7WiSYO1A@HIDDEN>
Date: Sat, 16 Feb 2013 13:43:32 -0500
Message-ID: <CAG8JBjAdcOc31CVO3xNZ965UOfoxP6CxwB56KRZ_m0GWySNyuw@HIDDEN>
From: Fei <fei.yuanbw@HIDDEN>
Content-Type: text/plain; charset=UTF-8
X-Spam-Score: 0.1 (/)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: 0.1 (/)

Okay I realize this is very hackish solution, but I went ahead and
replaced every instance of font-lock-fontified with nil so that Emacs
will just use overlays for highlights at all times, which "fixed" the
problem that I have.

But a more general solution would be one of the following:

- Force highlight-regexp (and similar ones) to use overlays at all
times: I don't know why it uses two different methods to do the same
thing, but I suspect it may be for the sake of efficiency perhaps?  Or
to prevent highlights from trampling over the syntax highlighting?
Perhaps this could be made into a customizable option?

- Use font-lock for hl-line: maybe this is isn't possible because
font-lock doesn't provide the functionality to do so?

Or maybe there's a better solution out there -- I don't know.

Thanks,
Fei




Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#13718: [patch] prevents hl-line from overriding highlight-mode
Resent-From: "Drew Adams" <drew.adams@HIDDEN>
Original-Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Sat, 16 Feb 2013 18:58:02 +0000
Resent-Message-ID: <handler.13718.B13718.136104106920269 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 13718
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: 
To: "'Fei'" <fei.yuanbw@HIDDEN>, "'Stefan Monnier'" <monnier@HIDDEN>
Cc: 13718 <at> debbugs.gnu.org
Received: via spool by 13718-submit <at> debbugs.gnu.org id=B13718.136104106920269
          (code B ref 13718); Sat, 16 Feb 2013 18:58:02 +0000
Received: (at 13718) by debbugs.gnu.org; 16 Feb 2013 18:57:49 +0000
Received: from localhost ([127.0.0.1]:59462 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1U6mxJ-0005Gs-3A
	for submit <at> debbugs.gnu.org; Sat, 16 Feb 2013 13:57:49 -0500
Received: from userp1040.oracle.com ([156.151.31.81]:29896)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <drew.adams@HIDDEN>) id 1U6mxG-0005Gh-1J
	for 13718 <at> debbugs.gnu.org; Sat, 16 Feb 2013 13:57:47 -0500
Received: from acsinet22.oracle.com (acsinet22.oracle.com [141.146.126.238])
	by userp1040.oracle.com (Sentrion-MTA-4.3.1/Sentrion-MTA-4.3.1) with
	ESMTP id r1GIusXq024803
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK);
	Sat, 16 Feb 2013 18:56:55 GMT
Received: from acsmt358.oracle.com (acsmt358.oracle.com [141.146.40.158])
	by acsinet22.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id
	r1GIuroF022580
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO);
	Sat, 16 Feb 2013 18:56:54 GMT
Received: from abhmt115.oracle.com (abhmt115.oracle.com [141.146.116.67])
	by acsmt358.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id
	r1GIurHQ000829; Sat, 16 Feb 2013 12:56:53 -0600
Received: from dradamslap1 (/71.202.147.44)
	by default (Oracle Beehive Gateway v4.0)
	with ESMTP ; Sat, 16 Feb 2013 10:56:53 -0800
From: "Drew Adams" <drew.adams@HIDDEN>
References: <CAG8JBjCsfYq8v7QyvKcjrQ=yqAJcbXcgm6fnndpPcq7MZ_GECQ@HIDDEN><jwvmwv5zijb.fsf-monnier+emacs@HIDDEN><CAG8JBjCxxomDcZLRSfnazJ0NhwER4VhncSszBWjz5wboQB4VFA@HIDDEN><jwvmwv532sm.fsf-monnier+emacs@HIDDEN><CAG8JBjD=AGoyxSrqMP=FLGc7YA7FPxFMCVYUz7e5PN7WiSYO1A@HIDDEN>
	<CAG8JBjAdcOc31CVO3xNZ965UOfoxP6CxwB56KRZ_m0GWySNyuw@HIDDEN>
Date: Sat, 16 Feb 2013 10:56:46 -0800
Message-ID: <6AC7A623458E48C3B438B49FD849EDC5@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Mailer: Microsoft Office Outlook 11
In-Reply-To: <CAG8JBjAdcOc31CVO3xNZ965UOfoxP6CxwB56KRZ_m0GWySNyuw@HIDDEN>
Thread-Index: Ac4MdYkHXj3amcDZR4ym8pDv31LrgwAAUYFA
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157
X-Source-IP: acsinet22.oracle.com [141.146.126.238]
X-Spam-Score: -1.5 (-)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -2.8 (--)

> Or maybe there's a better solution out there -- I don't know.

code: http://www.emacswiki.org/emacs-en/download/highlight.el
doc:  http://www.emacswiki.org/HighlightLibrary





Message received at control <at> debbugs.gnu.org:


Received: (at control) by debbugs.gnu.org; 10 Jan 2024 22:12:07 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Jan 10 17:12:06 2024
Received: from localhost ([127.0.0.1]:43401 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1rNgnu-0004lC-LR
	for submit <at> debbugs.gnu.org; Wed, 10 Jan 2024 17:12:06 -0500
Received: from mail-ed1-x533.google.com ([2a00:1450:4864:20::533]:43240)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <stefankangas@HIDDEN>) id 1rNgns-0004kY-99
 for control <at> debbugs.gnu.org; Wed, 10 Jan 2024 17:12:04 -0500
Received: by mail-ed1-x533.google.com with SMTP id
 4fb4d7f45d1cf-557bfc7f7b4so6010886a12.0
 for <control <at> debbugs.gnu.org>; Wed, 10 Jan 2024 14:12:05 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1704924719; x=1705529519; darn=debbugs.gnu.org;
 h=to:subject:message-id:date:mime-version:from:from:to:cc:subject
 :date:message-id:reply-to;
 bh=3276m5oh1o/NSwgR65i58Vl+q6ircKOSuNU8yaemhUA=;
 b=VduWRDUQ0f6+eZ4GtUg/L6SfueW3Lnq14bK/nGhyNdvnkwPv46qiEqmVO1H0JhP0io
 fBOEtrozPNIoanq0YXb/sZVGjLZTb9YjzVR54cETqW1XX3I6e6oHTJ81q3ABZcK7QylX
 XNxYuWwCI1+7u4DL9hPSlCBawdrU5MfYqJx4+f8eQQZv33Hs3zDR8zLwmXDmNrO5iWtq
 cu3F7Uk9C9xgmMJkfZshc4f4HQ5mgnW8lQTEDqKZUaJjY9ec59UqDWDTvTSyC+xHAZ/u
 uLU+rzaJ48VzvRGBae3p6s85UDEjtrpkhIHlL2OUneaN9tTndFJIIQb+ytIvEj3aqwio
 eHyw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1704924719; x=1705529519;
 h=to:subject:message-id:date:mime-version:from:x-gm-message-state
 :from:to:cc:subject:date:message-id:reply-to;
 bh=3276m5oh1o/NSwgR65i58Vl+q6ircKOSuNU8yaemhUA=;
 b=UO5HwHiJVDbP5eD0XIHU1D7cRFrUyRQajxAqZOwY7qt1GKemPKCqk6sRMWxWheidXT
 gT0ig3FwaDtv+dQu9b16l/LUFVdseSxiMf207ooUcPgphWeZ5FaGE0O6yHe0fgJoz6Dj
 ofzWYxWLbG/UR3lH7pb7A5vwUqAvmbPo1SvM2HVivo4KTU0PK6borI+nYdKZ4awOmYcN
 FFIz4LDh0t9/3l/FeiVXnm4qi9yVjFzJL850daAiIJz/UZ8KKpWh2WprPB4bFbWYyddM
 92ZhtU7F0AbCzLHR4/NgFwhsvb9gYMJvZmu5BDhvMAkonJVpZYGdHbxr8zpWkZSL1gf8
 nPYg==
X-Gm-Message-State: AOJu0YwSjmDyvoJT2JopJB52PbOeUWXUal95fq0BnCaHS7gt9e9BUl1e
 znlfuP99kDRdsJ7Y6CbjDW5VZN16sERqo9Jlapjkyd0ehb1UHg==
X-Google-Smtp-Source: AGHT+IGXcI+nOU2ekys6bkh7GgPaS9FwuSxdx7mtCqk0ByPsy5w7tbEivok1rGiFCNzk0HOL1Xbt0fOVtwdcBaBJirc=
X-Received: by 2002:a05:6402:50ca:b0:557:dd03:cd with SMTP id
 h10-20020a05640250ca00b00557dd0300cdmr165884edb.19.1704924719542; Wed, 10 Jan
 2024 14:11:59 -0800 (PST)
Received: from 753933720722 named unknown by gmailapi.google.com with
 HTTPREST; Wed, 10 Jan 2024 14:11:59 -0800
From: Stefan Kangas <stefankangas@HIDDEN>
MIME-Version: 1.0
Date: Wed, 10 Jan 2024 14:11:59 -0800
Message-ID: <CADwFkmkB6P4xbN_xefjXn9ieAtk4ZVpC23A0WBCWM3=vqc+Vmw@HIDDEN>
Subject: control message for bug #13718
To: control <at> debbugs.gnu.org
Content-Type: text/plain; charset="UTF-8"
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: control
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

retitle 13718 prevent hl-line from overriding highlight-mode
quit





Last modified: Sat, 20 Jan 2024 12:30:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.