From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#13718: [patch] prevents hl-line from overriding highlight-mode Date: Fri, 15 Feb 2013 10:51:35 -0500 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; CHARSET=US-ASCII Content-Transfer-Encoding: 7BIT X-Trace: ger.gmane.org 1360943554 3897 80.91.229.3 (15 Feb 2013 15:52:34 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 15 Feb 2013 15:52:34 +0000 (UTC) Cc: 13718@debbugs.gnu.org To: Fei Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Feb 15 16:52:55 2013 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1U6Nap-0005OT-Lc for geb-bug-gnu-emacs@m.gmane.org; Fri, 15 Feb 2013 16:52:55 +0100 Original-Received: from localhost ([::1]:43746 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U6NaV-0001aS-P7 for geb-bug-gnu-emacs@m.gmane.org; Fri, 15 Feb 2013 10:52:35 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:50239) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U6NaM-0001aA-Gg for bug-gnu-emacs@gnu.org; Fri, 15 Feb 2013 10:52:33 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U6NaF-0000Hy-Qj for bug-gnu-emacs@gnu.org; Fri, 15 Feb 2013 10:52:26 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:52355) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U6NaF-0000Hi-NC for bug-gnu-emacs@gnu.org; Fri, 15 Feb 2013 10:52:19 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1U6Naw-000351-H1 for bug-gnu-emacs@gnu.org; Fri, 15 Feb 2013 10:53:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 15 Feb 2013 15:53:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 13718 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 13718-submit@debbugs.gnu.org id=B13718.136094354111788 (code B ref 13718); Fri, 15 Feb 2013 15:53:02 +0000 Original-Received: (at 13718) by debbugs.gnu.org; 15 Feb 2013 15:52:21 +0000 Original-Received: from localhost ([127.0.0.1]:57818 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1U6NaG-000345-UV for submit@debbugs.gnu.org; Fri, 15 Feb 2013 10:52:21 -0500 Original-Received: from relais.videotron.ca ([24.201.245.36]:46451) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1U6NaF-00033z-LI for 13718@debbugs.gnu.org; Fri, 15 Feb 2013 10:52:20 -0500 Original-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@VL-VM-MR006.ip.videotron.ca> for 13718@debbugs.gnu.org; Fri, 15 Feb 2013 10:51:36 -0500 (EST) Original-Received: by ceviche.home (Postfix, from userid 20848) id D073166109; Fri, 15 Feb 2013 10:51:35 -0500 (EST) In-reply-to: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:71317 Archived-At: > 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