From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#58158: 29.0.50; [overlay] Interval tree iteration considered harmful Date: Sat, 01 Oct 2022 10:01:04 -0400 Message-ID: References: <83h70qhez0.fsf@gnu.org> <83edvuhaby.fsf@gnu.org> <831qruh67o.fsf@gnu.org> <83y1u2foli.fsf@gnu.org> Reply-To: Stefan Monnier Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="25281"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: Eli Zaretskii , Andreas Politz , 58158@debbugs.gnu.org To: Gerd =?UTF-8?Q?M=C3=B6llmann?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Oct 01 16:02:44 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oed4l-0006Nh-W4 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 01 Oct 2022 16:02:44 +0200 Original-Received: from localhost ([::1]:58010 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oed4k-0000IC-IX for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 01 Oct 2022 10:02:42 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58736) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oed46-0008Kr-H9 for bug-gnu-emacs@gnu.org; Sat, 01 Oct 2022 10:02:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:46367) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oed46-000381-69 for bug-gnu-emacs@gnu.org; Sat, 01 Oct 2022 10:02:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oed46-0006Tu-0Y for bug-gnu-emacs@gnu.org; Sat, 01 Oct 2022 10:02:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 01 Oct 2022 14:02:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 58158 X-GNU-PR-Package: emacs Original-Received: via spool by 58158-submit@debbugs.gnu.org id=B58158.166463287524858 (code B ref 58158); Sat, 01 Oct 2022 14:02:01 +0000 Original-Received: (at 58158) by debbugs.gnu.org; 1 Oct 2022 14:01:15 +0000 Original-Received: from localhost ([127.0.0.1]:45445 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oed3L-0006Ss-B4 for submit@debbugs.gnu.org; Sat, 01 Oct 2022 10:01:15 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:15939) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oed3J-0006Se-Iv for 58158@debbugs.gnu.org; Sat, 01 Oct 2022 10:01:13 -0400 Original-Received: from pmg1.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 6B95B100138; Sat, 1 Oct 2022 10:01:07 -0400 (EDT) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 1C39B1000E7; Sat, 1 Oct 2022 10:01:06 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1664632866; bh=dZnrnCtRfmMKo9bms32TlHq1W3uROLF7pxIb2KUiWl4=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=o+sucbuf4PzQNbWy9zOwjAV0O+fwM8qPNkxCWiZqM3EkQ0dS0i+bv/fPLd6McT2lZ VgmZlH/o38AdHovcD9+u7tX+3vn8cW3ArKSQ6z2K0YIx4G8WdUd8hs9mFIX+gD3d/o Wfu85p8URT5cRwVSICjYdDBrmxBnUrvXXRj0JJtKxFgEMCsw8HETMP4QmFafZEl+ub gQs8hqt/Mf2zbeoFKSKrw8MCtNHwL3pFFPwoCo7a4Yz5Oezamc3ShLusI2Crv2Xx+V tyDQNt3wB5+pYvctPl5C5utaXEqzBNiSIxdE8oHOiJTjHwCl75CenSjhnADPxtPh55 TYuODEKPSybGw== Original-Received: from pastel (65-110-220-202.cpe.pppoe.ca [65.110.220.202]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id E41AE120815; Sat, 1 Oct 2022 10:01:05 -0400 (EDT) In-Reply-To: ("Gerd =?UTF-8?Q?M=C3=B6llmann?="'s message of "Sat, 01 Oct 2022 09:25:47 +0200") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:244133 Archived-At: > That's > > [10, 12] > / \ > [1, 1] [10, 11] > / \ /\ > [10, 13] > / \ > > The 10 is found "all over the place". "all over the place" if you consider the pre-order or post-order traversal, indeed. But if you look at the in-order traversal (e.g., the one you'd get from C++ `local_Rb_tree_increment` you showed), you get the expected result: [1, 1] [10, 13] [10, 12] [10, 11] -- Stefan