From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Daniel Colascione Newsgroups: gmane.emacs.bugs Subject: bug#15899: 24.3.50; regression: `region' overlay is lower priority than default Date: Sun, 17 Nov 2013 04:25:53 -0800 Message-ID: <5288B5D1.2000301@dancol.org> References: <20137354-f982-4314-9c09-21a5fbc36557@default> <83ob5mi02j.fsf@gnu.org> <83bo1liv80.fsf@gnu.org> <83txfchg0u.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1384691240 6002 80.91.229.3 (17 Nov 2013 12:27:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 17 Nov 2013 12:27:20 +0000 (UTC) Cc: 15899@debbugs.gnu.org To: Stefan Monnier , Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Nov 17 13:27:21 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 1Vi1Re-0005cI-4K for geb-bug-gnu-emacs@m.gmane.org; Sun, 17 Nov 2013 13:27:18 +0100 Original-Received: from localhost ([::1]:38781 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vi1Rd-0007Ct-NU for geb-bug-gnu-emacs@m.gmane.org; Sun, 17 Nov 2013 07:27:17 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57782) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vi1RV-0007Cj-DO for bug-gnu-emacs@gnu.org; Sun, 17 Nov 2013 07:27:15 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vi1RP-0000TU-1a for bug-gnu-emacs@gnu.org; Sun, 17 Nov 2013 07:27:09 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:44193) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vi1RO-0000TQ-U0 for bug-gnu-emacs@gnu.org; Sun, 17 Nov 2013 07:27:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Vi1RO-00011K-5p for bug-gnu-emacs@gnu.org; Sun, 17 Nov 2013 07:27:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Daniel Colascione Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 17 Nov 2013 12:27:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 15899 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 15899-submit@debbugs.gnu.org id=B15899.13846911683846 (code B ref 15899); Sun, 17 Nov 2013 12:27:02 +0000 Original-Received: (at 15899) by debbugs.gnu.org; 17 Nov 2013 12:26:08 +0000 Original-Received: from localhost ([127.0.0.1]:58212 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Vi1QV-0000zx-GE for submit@debbugs.gnu.org; Sun, 17 Nov 2013 07:26:08 -0500 Original-Received: from dancol.org ([96.126.100.184]:39138) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Vi1QR-0000zL-Rp for 15899@debbugs.gnu.org; Sun, 17 Nov 2013 07:26:05 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=dancol.org; s=x; h=Content-Transfer-Encoding:Content-Type:In-Reply-To:References:Subject:CC:To:MIME-Version:From:Date:Message-ID; bh=wFZ8BGyBqqJCd9AndZzpRQMUngFF67W+xt0O/vBDbQc=; b=UIsxnVAiR/wLWICb4mzZfLE9LjOU13r6VxHCN7GYmoWs7tBWSglyVHR6kExdUKpu7acBJCmQcxyZGbWmk4L5FyW0WRUMoEDBqVN5CWo4IecEAm5v7m+QubwWWBJMO29F/adsDpi+JJXkIp7B7OkL80tMu5AEtpqvbzdIGnb3+qihGwp7Xsak2MZqWPf4bbNwr1V8MjOKapyMhYB6vDKK4Eh8D9Z7MxZO/MdhHjaWBwxt/B3Bg27RZvR4iztz7q6cUrwI54dwEWR5EQgAo2jOzpLqIR5+XR5hylnfDXWhp26Wmj4rxgYEv0tA6Q748MfQcA2R843n/YLaiGxIJBjmzA==; Original-Received: from c-76-22-66-162.hsd1.wa.comcast.net ([76.22.66.162] helo=[192.168.1.100]) by dancol.org with esmtpsa (TLS1.0:DHE_RSA_CAMELLIA_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1Vi1QJ-0007CZ-Kd; Sun, 17 Nov 2013 04:25:55 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.1.0 In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.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:80686 Archived-At: On 11/16/2013 09:45 AM, Stefan Monnier wrote: >>>> Isn't it confusing that the region highlighting is non-contiguous when >>>> an overlay is in its middle? >>> 1- you need more than "an overlay in its middle": you need this overlay >>> to put a face property that happens to completely cancel the region's >>> own face properties (since the `face' properties of overlapping >>> overlays are merged). >> It's enough for that face to specify a background color, no? > > In some cases, yes, because the region's foreground color is > often unnoticeable (e.g. same as default). > >>> I most-positive-fixnum-ly hate overlay priorities. >> No offense, but I think we can live with that downside ;-) > > The downside is not that I hate it, but the reasons why I hate it: it's > as much a source of problems as a solution. `priorities' impose a total > ordering, where often there isn't one: in some circumstance one overlay > should be on top, in others it's the other way around. Can you provide an example of an actual case where two overlays should be ordered one way in one context and another in a different context? Nothing comes to mind at the moment. I don't think numeric priorities are as big a social problem as you suspect: in other cases where we use priorities to manage interaction of unrelated modifiers on some base behavior (e.g., NT filter driver altitudes), priorities work well enough and don't lead to arms races. I'd have preferred an ordered list to numeric priorities, but numeric priorities are good enough.