From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Fei Newsgroups: gmane.emacs.bugs Subject: bug#13718: [patch] prevents hl-line from overriding highlight-mode Date: Thu, 14 Feb 2013 23:28:37 -0500 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1360906353 24595 80.91.229.3 (15 Feb 2013 05:32:33 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 15 Feb 2013 05:32:33 +0000 (UTC) To: 13718@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Feb 15 06:32: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 1U6Dum-0002fH-VD for geb-bug-gnu-emacs@m.gmane.org; Fri, 15 Feb 2013 06:32:53 +0100 Original-Received: from localhost ([::1]:44027 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U6DuT-0001Es-Br for geb-bug-gnu-emacs@m.gmane.org; Fri, 15 Feb 2013 00:32:33 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:52046) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U6DuO-00019d-En for bug-gnu-emacs@gnu.org; Fri, 15 Feb 2013 00:32:31 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U6DuI-0006Oo-EE for bug-gnu-emacs@gnu.org; Fri, 15 Feb 2013 00:32:28 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:51507) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U6DuI-0006Ok-Az for bug-gnu-emacs@gnu.org; Fri, 15 Feb 2013 00:32:22 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1U6Duw-000338-V2 for bug-gnu-emacs@gnu.org; Fri, 15 Feb 2013 00:33:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Fei Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 15 Feb 2013 05:33:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 13718 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.136090633211649 (code B ref -1); Fri, 15 Feb 2013 05:33:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 15 Feb 2013 05:32:12 +0000 Original-Received: from localhost ([127.0.0.1]:56969 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1U6Du7-00031m-Ju for submit@debbugs.gnu.org; Fri, 15 Feb 2013 00:32:12 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:58944) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1U6CvW-0001cU-00 for submit@debbugs.gnu.org; Thu, 14 Feb 2013 23:29:34 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U6Cul-0006bJ-Vc for submit@debbugs.gnu.org; Thu, 14 Feb 2013 23:28:53 -0500 Original-Received: from lists.gnu.org ([208.118.235.17]:33390) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U6Cul-0006bA-Sj for submit@debbugs.gnu.org; Thu, 14 Feb 2013 23:28:47 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:42043) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U6Cuf-0000tP-UM for bug-gnu-emacs@gnu.org; Thu, 14 Feb 2013 23:28:47 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U6Cuc-0006Y2-AH for bug-gnu-emacs@gnu.org; Thu, 14 Feb 2013 23:28:41 -0500 Original-Received: from mail-qc0-f170.google.com ([209.85.216.170]:60947) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U6Cuc-0006Xl-2W for bug-gnu-emacs@gnu.org; Thu, 14 Feb 2013 23:28:38 -0500 Original-Received: by mail-qc0-f170.google.com with SMTP id d42so1164127qca.29 for ; 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== X-Received: by 10.229.136.78 with SMTP id q14mr110466qct.74.1360902517223; Thu, 14 Feb 2013 20:28:37 -0800 (PST) Original-Received: by 10.49.132.165 with HTTP; Thu, 14 Feb 2013 20:28:37 -0800 (PST) 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-Mailman-Approved-At: Fri, 15 Feb 2013 00:32:09 -0500 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:71296 Archived-At: 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