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 09:45:21 -0800 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 1360950396 10803 80.91.229.3 (15 Feb 2013 17:46:36 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 15 Feb 2013 17:46:36 +0000 (UTC) Cc: 13718@debbugs.gnu.org To: "'Stefan Monnier'" , "'Fei'" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Feb 15 18:46:58 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 1U6PN7-00052h-MY for geb-bug-gnu-emacs@m.gmane.org; Fri, 15 Feb 2013 18:46:53 +0100 Original-Received: from localhost ([::1]:47777 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U6PMo-0003g5-15 for geb-bug-gnu-emacs@m.gmane.org; Fri, 15 Feb 2013 12:46:34 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:50222) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U6PMi-0003fD-MP for bug-gnu-emacs@gnu.org; Fri, 15 Feb 2013 12:46:33 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U6PMZ-0003rt-71 for bug-gnu-emacs@gnu.org; Fri, 15 Feb 2013 12:46:28 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:52465) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U6PMZ-0003rp-3L for bug-gnu-emacs@gnu.org; Fri, 15 Feb 2013 12:46:19 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1U6PNG-0005lB-G1 for bug-gnu-emacs@gnu.org; Fri, 15 Feb 2013 12:47:02 -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 17:47: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.136095037622061 (code B ref 13718); Fri, 15 Feb 2013 17:47:02 +0000 Original-Received: (at 13718) by debbugs.gnu.org; 15 Feb 2013 17:46:16 +0000 Original-Received: from localhost ([127.0.0.1]:57924 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1U6PMV-0005jl-0H for submit@debbugs.gnu.org; Fri, 15 Feb 2013 12:46:15 -0500 Original-Received: from aserp1040.oracle.com ([141.146.126.69]:27839) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1U6PMS-0005jd-WC for 13718@debbugs.gnu.org; Fri, 15 Feb 2013 12:46:14 -0500 Original-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 Original-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 Original-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 Original-Received: from dradamslap1 (/10.159.70.147) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Fri, 15 Feb 2013 09:45:25 -0800 X-Mailer: Microsoft Office Outlook 11 In-Reply-To: Thread-Index: Ac4LlHn8hw9ksYwPSNqeC8iBxcFh5AADWMeg X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 X-Source-IP: ucsinet21.oracle.com [156.151.31.93] 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:71327 Archived-At: > 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."