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 12:42:12 +0200 Message-ID: <83ppq0hbln.fsf@gnu.org> References: <20137354-f982-4314-9c09-21a5fbc36557@default> <83ob5mi02j.fsf@gnu.org> <83bo1liv80.fsf@gnu.org> <87mwl58yvc.fsf@yandex.ru> <834n7dipnq.fsf@gnu.org> <5286A1AD.1080106@yandex.ru> <83wqk8hgtf.fsf@gnu.org> <5287403B.2060302@poczta.onet.pl> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1384598595 23447 80.91.229.3 (16 Nov 2013 10:43:15 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 16 Nov 2013 10:43:15 +0000 (UTC) Cc: 15899@debbugs.gnu.org To: Jarek Czekalski Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Nov 16 11:43:19 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 1VhdLR-0004mk-SG for geb-bug-gnu-emacs@m.gmane.org; Sat, 16 Nov 2013 11:43:17 +0100 Original-Received: from localhost ([::1]:35423 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VhdLR-00088G-Gz for geb-bug-gnu-emacs@m.gmane.org; Sat, 16 Nov 2013 05:43:17 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38825) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VhdLI-000881-Ao for bug-gnu-emacs@gnu.org; Sat, 16 Nov 2013 05:43:13 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VhdLC-00021e-P1 for bug-gnu-emacs@gnu.org; Sat, 16 Nov 2013 05:43:08 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:42719) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VhdLC-00021a-Lp for bug-gnu-emacs@gnu.org; Sat, 16 Nov 2013 05:43:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1VhdLC-00021d-7p for bug-gnu-emacs@gnu.org; Sat, 16 Nov 2013 05:43: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 10:43: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.13845985537744 (code B ref 15899); Sat, 16 Nov 2013 10:43:02 +0000 Original-Received: (at 15899) by debbugs.gnu.org; 16 Nov 2013 10:42:33 +0000 Original-Received: from localhost ([127.0.0.1]:56738 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VhdKj-00020o-5v for submit@debbugs.gnu.org; Sat, 16 Nov 2013 05:42:33 -0500 Original-Received: from mtaout23.012.net.il ([80.179.55.175]:36735) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VhdKg-00020W-FZ for 15899@debbugs.gnu.org; Sat, 16 Nov 2013 05:42:31 -0500 Original-Received: from conversion-daemon.a-mtaout23.012.net.il by a-mtaout23.012.net.il (HyperSendmail v2007.08) id <0MWC00400QTI4E00@a-mtaout23.012.net.il> for 15899@debbugs.gnu.org; Sat, 16 Nov 2013 12:42:24 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout23.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MWC0042OR2N4D10@a-mtaout23.012.net.il>; Sat, 16 Nov 2013 12:42:24 +0200 (IST) In-reply-to: <5287403B.2060302@poczta.onet.pl> 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:80637 Archived-At: > Date: Sat, 16 Nov 2013 10:51:55 +0100 > From: Jarek Czekalski > > W dniu 2013-11-16 09:49, Eli Zaretskii pisze: > >> If the region overlay will have a high but finite and documented > >> priority, that would be much better. > > Which will start an "overlay priority arms race", something I loathe. > > From this point of view editors like Notepad are best. No races, no > possibility of user or package interfering with application author's > vision. But we are in Emacs. This should mean freedom to users. If a > user wants to have a higher priority, why would you forbid him to do so? Every freedom must have its limits. "Your freedom to swing fists ends where my nose begins." (Yes, I know I'm lecturing, but so did you.) More to the point: Previously, Emacs users did not have the freedom to overrule the region highlighting with an overlay face. Many generations of Emacs users lived with that limitation and never complained about that, at least not seriously enough to make this an issue. Keeping the priority of the region overlay at infinity just preserves previous behavior. So I think we should turn the table and ask why would a user need to have this freedom now, and only give that freedom if the cause justifies it. > I can't imagine an example where infinite priority is better than a high > value. Could you help with that? It avoids the problem of priority race. With an infinite priority, we can be sure the region highlighting will always be visible, come what may. > I guess examples of malicious users or those who don't read docs > should not count. No, but unintended consequences of actions by unsuspecting users should. In a complex system, unintended consequences are always a greater danger than malicious intent. IOW, keeping the region priority above everything makes sure we won't have another series of bug reports in the near future asking why this or that feature makes region invisible.