From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#15899: 24.3.50; regression: `region' overlay is lower priority than default Date: Sat, 16 Nov 2013 12:45:14 -0500 Message-ID: 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 X-Trace: ger.gmane.org 1384623980 14562 80.91.229.3 (16 Nov 2013 17:46:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 16 Nov 2013 17:46:20 +0000 (UTC) Cc: 15899@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Nov 16 18:46: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 1Vhjwq-0003mh-KJ for geb-bug-gnu-emacs@m.gmane.org; Sat, 16 Nov 2013 18:46:20 +0100 Original-Received: from localhost ([::1]:36481 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vhjwq-0002Zl-47 for geb-bug-gnu-emacs@m.gmane.org; Sat, 16 Nov 2013 12:46:20 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47431) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vhjwg-0002Ze-BX for bug-gnu-emacs@gnu.org; Sat, 16 Nov 2013 12:46:17 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VhjwZ-0004P0-0j for bug-gnu-emacs@gnu.org; Sat, 16 Nov 2013 12:46:10 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:43370) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VhjwY-0004Ow-TN for bug-gnu-emacs@gnu.org; Sat, 16 Nov 2013 12:46:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1VhjwY-0005YO-Ch for bug-gnu-emacs@gnu.org; Sat, 16 Nov 2013 12:46:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 16 Nov 2013 17:46: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.138462392321293 (code B ref 15899); Sat, 16 Nov 2013 17:46:02 +0000 Original-Received: (at 15899) by debbugs.gnu.org; 16 Nov 2013 17:45:23 +0000 Original-Received: from localhost ([127.0.0.1]:57389 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Vhjvu-0005XM-V5 for submit@debbugs.gnu.org; Sat, 16 Nov 2013 12:45:23 -0500 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.182]:25727) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Vhjvs-0005X8-HA for 15899@debbugs.gnu.org; Sat, 16 Nov 2013 12:45:20 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av8EABK/CFHO+J5Y/2dsb2JhbABEuzWDWRdzgh4BAQQBViMFCws0EhQYDSQuh3AGwS2RCgOIYZwZgV6DFQ X-IPAS-Result: Av8EABK/CFHO+J5Y/2dsb2JhbABEuzWDWRdzgh4BAQQBViMFCws0EhQYDSQuh3AGwS2RCgOIYZwZgV6DFQ X-IronPort-AV: E=Sophos;i="4.84,565,1355115600"; d="scan'208";a="38068695" Original-Received: from 206-248-158-88.dsl.teksavvy.com (HELO fmsmemgm.homelinux.net) ([206.248.158.88]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 16 Nov 2013 12:45:14 -0500 Original-Received: by fmsmemgm.homelinux.net (Postfix, from userid 20848) id 7E26BAE1D0; Sat, 16 Nov 2013 12:45:14 -0500 (EST) In-Reply-To: <83txfchg0u.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 16 Nov 2013 11:06:41 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) 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:80652 Archived-At: >> > 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. The "default priority" at least is able to handle those things sometimes, by making overlays's ordering depending on nesting. > In any case, the moment you reimplemented the region as an overlay, > you got us this issue, because it is inherent in the use of overlays, > and cannot be escaped. It was present before as well. The behavior was different but was also a source of "priority problems". My intuition tells me that if Emacs had use the current system for the last 20 years and had just changed to the "region is always at the very top", people would complain just as much. Stefan