From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.bugs Subject: bug#13718: [patch] prevents hl-line from overriding highlight-mode Date: Fri, 15 Feb 2013 07:26:48 -0800 Message-ID: <270B6FAA5E034F46945C3E7CC1A7DD3C@us.oracle.com> 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 1360968423 18723 80.91.229.3 (15 Feb 2013 22:47:03 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 15 Feb 2013 22:47:03 +0000 (UTC) To: "'Fei'" , <13718@debbugs.gnu.org> Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Feb 15 23:47:24 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 1U6U3u-0001l1-GS for geb-bug-gnu-emacs@m.gmane.org; Fri, 15 Feb 2013 23:47:22 +0100 Original-Received: from localhost ([::1]:59509 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U6Tzp-0000Vq-3v for geb-bug-gnu-emacs@m.gmane.org; Fri, 15 Feb 2013 17:43:09 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:42996) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U6Txg-0000Go-1t for bug-gnu-emacs@gnu.org; Fri, 15 Feb 2013 17:40:57 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U6Txa-00028F-GA for bug-gnu-emacs@gnu.org; Fri, 15 Feb 2013 17:40:51 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:52328) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U6NC3-00026V-5t for bug-gnu-emacs@gnu.org; Fri, 15 Feb 2013 10:27:19 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1U6NCj-0002TQ-NJ for bug-gnu-emacs@gnu.org; Fri, 15 Feb 2013 10:28:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: "Drew Adams" Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 15 Feb 2013 15:28:01 +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.13609420639481 (code B ref 13718); Fri, 15 Feb 2013 15:28:01 +0000 Original-Received: (at 13718) by debbugs.gnu.org; 15 Feb 2013 15:27:43 +0000 Original-Received: from localhost ([127.0.0.1]:57792 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1U6NCQ-0002Sq-5a for submit@debbugs.gnu.org; Fri, 15 Feb 2013 10:27:42 -0500 Original-Received: from userp1040.oracle.com ([156.151.31.81]:47612) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1U6NCM-0002Sh-Dx for 13718@debbugs.gnu.org; Fri, 15 Feb 2013 10:27:40 -0500 Original-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 Original-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 Original-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 Original-Received: from dradamslap1 (/10.159.70.147) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Fri, 15 Feb 2013 07:26:52 -0800 X-Mailer: Microsoft Office Outlook 11 In-Reply-To: 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-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:71358 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. 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.