From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: How do I give an overlay a priority lower to that of hl-line-mode? Date: Tue, 31 May 2016 22:29:06 -0400 Message-ID: References: <574D173F.2070502@gmail.com> <574DF825.1090608@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1464748115 3547 80.91.229.3 (1 Jun 2016 02:28:35 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 1 Jun 2016 02:28:35 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jun 01 04:28:27 2016 Return-path: Envelope-to: ged-emacs-devel@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 1b7vtQ-00035d-9B for ged-emacs-devel@m.gmane.org; Wed, 01 Jun 2016 04:28:24 +0200 Original-Received: from localhost ([::1]:39299 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b7vtP-0006gT-H8 for ged-emacs-devel@m.gmane.org; Tue, 31 May 2016 22:28:23 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42863) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b7vtJ-0006fi-Oc for emacs-devel@gnu.org; Tue, 31 May 2016 22:28:18 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b7vtE-0001IY-OR for emacs-devel@gnu.org; Tue, 31 May 2016 22:28:16 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:41350) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b7vtE-0001IP-HG for emacs-devel@gnu.org; Tue, 31 May 2016 22:28:12 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1b7vt6-0002sS-NB for emacs-devel@gnu.org; Wed, 01 Jun 2016 04:28:04 +0200 Original-Received: from 45.72.195.239 ([45.72.195.239]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 01 Jun 2016 04:28:04 +0200 Original-Received: from monnier by 45.72.195.239 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 01 Jun 2016 04:28:04 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 19 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 45.72.195.239 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) Cancel-Lock: sha1:gB4ypYi7D4Ud2GB1OaRylrMZNk8= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:204164 Archived-At: >> - undocumented and tentatively added in recentish Emacsen you can use >> a priority of the form (nil . -100). Which means: normal priority nil >> in general, but priority -100 when the normal priority rules (which >> look at the relative size of overlays) don't have a preference >> use -100. > Oh, neat :) Do you know in which version this was introduced? IIRC it was added for the overlay-based region-highlight, so it should be in 24.4. >> - use a negative priority. > Does this just behave like positive priorities, in practice? Yes. But these priorities are always tricky to use (no matter what priority you choose, they'll always end up wrong at some point), in my experience. So positive or negative, they tend to suck. Stefan