From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Overlays as an AA-tree Date: Mon, 06 Feb 2017 10:06:54 -0500 Message-ID: References: <87d1jylv43.fsf@fastmail.com> <87fujv64mn.fsf@hochschule-trier.de> <87fujvpkzc.fsf@fastmail.com> <87vasr5tqd.fsf@hochschule-trier.de> <87d1ex4kon.fsf@hochschule-trier.de> <87d1evod6x.fsf@fastmail.com> <8737frfla1.fsf@hochschule-trier.de> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1486393643 16557 195.159.176.226 (6 Feb 2017 15:07:23 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 6 Feb 2017 15:07:23 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Feb 06 16:07:19 2017 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1caksw-00044Q-El for ged-emacs-devel@m.gmane.org; Mon, 06 Feb 2017 16:07:18 +0100 Original-Received: from localhost ([::1]:48931 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cakt2-0008UY-2w for ged-emacs-devel@m.gmane.org; Mon, 06 Feb 2017 10:07:24 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58600) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1caksm-0008Qc-LX for emacs-devel@gnu.org; Mon, 06 Feb 2017 10:07:14 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1caksh-0008Hp-4A for emacs-devel@gnu.org; Mon, 06 Feb 2017 10:07:08 -0500 Original-Received: from [195.159.176.226] (port=48783 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1caksg-0008HZ-Ul for emacs-devel@gnu.org; Mon, 06 Feb 2017 10:07:03 -0500 Original-Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1caksY-00036V-2q for emacs-devel@gnu.org; Mon, 06 Feb 2017 16:06:54 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 10 Original-X-Complaints-To: usenet@blaine.gmane.org Cancel-Lock: sha1:SI4Jbk7FW25Squu/VLJMhyIpG78= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 195.159.176.226 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:212031 Archived-At: > Why ? If the tree is sorted by begin only, deletions won't break the > tree order. Only insertions with 2 or more overlays at the same > position and different front-advance types may do so. But you can start with OL1 < OL2 and end with OL1 = OL2. Admittedly, if you disallow `=` in your comparison the problem should not occur. Stefan