From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Andreas Politz Newsgroups: gmane.emacs.devel Subject: Re: Overlays as an AA-tree Date: Mon, 06 Feb 2017 15:26:14 +0100 Message-ID: <8737frfla1.fsf@hochschule-trier.de> 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> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1486391329 22716 195.159.176.226 (6 Feb 2017 14:28:49 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 6 Feb 2017 14:28:49 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) Cc: Joakim Jalap , emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Feb 06 15:28:40 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 1cakHV-0005Ug-AJ for ged-emacs-devel@m.gmane.org; Mon, 06 Feb 2017 15:28:37 +0100 Original-Received: from localhost ([::1]:48471 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cakHa-0004qI-QR for ged-emacs-devel@m.gmane.org; Mon, 06 Feb 2017 09:28:42 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43824) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cakFV-00035U-55 for emacs-devel@gnu.org; Mon, 06 Feb 2017 09:26:33 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cakFS-0005oM-44 for emacs-devel@gnu.org; Mon, 06 Feb 2017 09:26:33 -0500 Original-Received: from gateway-a.fh-trier.de ([143.93.54.181]:52877) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cakFR-0005nM-OG for emacs-devel@gnu.org; Mon, 06 Feb 2017 09:26:30 -0500 X-Virus-Scanned: by Amavisd-new + McAfee uvscan + ClamAV [Rechenzentrum Hochschule Trier (RZ/HT)] Original-Received: from localhost (ip5f5bdfbc.dynamic.kabel-deutschland.de [95.91.223.188]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: politza) by gateway-a.fh-trier.de (Postfix) with ESMTPSA id DB717179A375; Mon, 6 Feb 2017 15:26:14 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha1; c=simple/simple; d=hochschule-trier.de; s=default; t=1486391175; bh=DWMtfl6zzlsfdqKKLIWjLpDRwb4=; h=From:To:Cc:Subject:References:Date:In-Reply-To:Message-ID: MIME-Version:Content-Type; b=YA71bBBWnp964lnPdDi+CL+y25gXMh+j38z6eGPB2XA6mTphLPnZ58GuncZAF1Uod feD32/n3yyvSvMxf4JCWAgBLq+T03ROLvIqYQpoDyAArKXR7ZdA4dSi3rO8j99DPqV fqOWrKigy+gwy1XEayF8OUg9BrNRMCvrbT/ZJ92I= In-Reply-To: (Stefan Monnier's message of "Mon, 06 Feb 2017 08:51:20 -0500") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x [fuzzy] X-Received-From: 143.93.54.181 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:212030 Archived-At: Stefan Monnier writes: >> And here I thought it was rather an elegant solution :) (to the problem >> of one overlay's beg going past another's because of an insert). > > It doesn't solve the problem of updating the tree after > a deletion (where some overlays may suddenly end up at the same place, > so the tree will also need some amount of reorganization). 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. Unless I missed something. -ap