From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#15899: 24.3.50; regression: `region' overlay is lower priority than default Date: Sat, 16 Nov 2013 11:06:41 +0200 Message-ID: <83txfchg0u.fsf@gnu.org> References: <20137354-f982-4314-9c09-21a5fbc36557@default> <83ob5mi02j.fsf@gnu.org> <83bo1liv80.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1384592891 2632 80.91.229.3 (16 Nov 2013 09:08:11 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 16 Nov 2013 09:08:11 +0000 (UTC) Cc: 15899@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Nov 16 10:08:15 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 1VhbrS-0007mM-FV for geb-bug-gnu-emacs@m.gmane.org; Sat, 16 Nov 2013 10:08:14 +0100 Original-Received: from localhost ([::1]:35160 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VhbrR-0001Qc-SH for geb-bug-gnu-emacs@m.gmane.org; Sat, 16 Nov 2013 04:08:13 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54289) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VhbrL-0001QM-1s for bug-gnu-emacs@gnu.org; Sat, 16 Nov 2013 04:08:10 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VhbrG-0002OY-GR for bug-gnu-emacs@gnu.org; Sat, 16 Nov 2013 04:08:06 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:42620) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VhbrG-0002OS-CH for bug-gnu-emacs@gnu.org; Sat, 16 Nov 2013 04:08:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1VhbrG-00081W-0C for bug-gnu-emacs@gnu.org; Sat, 16 Nov 2013 04:08:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 16 Nov 2013 09:08:01 +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.138459282330776 (code B ref 15899); Sat, 16 Nov 2013 09:08:01 +0000 Original-Received: (at 15899) by debbugs.gnu.org; 16 Nov 2013 09:07:03 +0000 Original-Received: from localhost ([127.0.0.1]:56639 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VhbqI-000809-15 for submit@debbugs.gnu.org; Sat, 16 Nov 2013 04:07:02 -0500 Original-Received: from mtaout23.012.net.il ([80.179.55.175]:32904) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VhbqF-0007zn-Hm for 15899@debbugs.gnu.org; Sat, 16 Nov 2013 04:07:00 -0500 Original-Received: from conversion-daemon.a-mtaout23.012.net.il by a-mtaout23.012.net.il (HyperSendmail v2007.08) id <0MWC00300MLBWS00@a-mtaout23.012.net.il> for 15899@debbugs.gnu.org; Sat, 16 Nov 2013 11:06:53 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout23.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MWC003MFMNGW320@a-mtaout23.012.net.il>; Sat, 16 Nov 2013 11:06:53 +0200 (IST) In-reply-to: X-012-Sender: halo1@inter.net.il 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:80632 Archived-At: > From: Stefan Monnier > Cc: drew.adams@oracle.com, 15899@debbugs.gnu.org > Date: Fri, 15 Nov 2013 20:25:46 -0500 > > > 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? That's not uncommon for Emacs features. E.g., try "M-x hl-line-mode RET". > 2- I don't think it's particularly confusing, no. Usually the context > makes it pretty clear, and if the user is surprised at some point, > that surprise will most likely not last very long. Well, a few people just disagreed with you. > > What are the downsides of setting the region overlay's priority to > > most-positive-fixnum? > > I most-positive-fixnum-ly hate overlay priorities. No offense, but I think we can live with that downside ;-) Are there any others? 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.