From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ihor Radchenko Newsgroups: gmane.emacs.bugs Subject: bug#59996: 30.0.50; Overlays section of Elisp manual still states that overlays scale linearly Date: Tue, 13 Dec 2022 10:42:17 +0000 Message-ID: <87r0x3d1py.fsf@localhost> References: <87cz8phrrk.fsf@localhost> <83cz8ospv0.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="34617"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 59996-done@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Dec 13 11:43:21 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 1p52kq-0008oz-V2 for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 13 Dec 2022 11:43:21 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p52kc-0003BP-Kh; Tue, 13 Dec 2022 05:43:06 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p52kZ-0003B5-PH for bug-gnu-emacs@gnu.org; Tue, 13 Dec 2022 05:43:05 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1p52kZ-00085f-6u for bug-gnu-emacs@gnu.org; Tue, 13 Dec 2022 05:43:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1p52kY-00036t-IZ for bug-gnu-emacs@gnu.org; Tue, 13 Dec 2022 05:43:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Ihor Radchenko Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 13 Dec 2022 10:43:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 59996 X-GNU-PR-Package: emacs Original-Received: via spool by 59996-done@debbugs.gnu.org id=D59996.167092815111946 (code D ref 59996); Tue, 13 Dec 2022 10:43:02 +0000 Original-Received: (at 59996-done) by debbugs.gnu.org; 13 Dec 2022 10:42:31 +0000 Original-Received: from localhost ([127.0.0.1]:59577 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p52k2-00036c-VC for submit@debbugs.gnu.org; Tue, 13 Dec 2022 05:42:31 -0500 Original-Received: from mout02.posteo.de ([185.67.36.66]:39063) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p52k1-00036S-Fd for 59996-done@debbugs.gnu.org; Tue, 13 Dec 2022 05:42:30 -0500 Original-Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id BBD25240104 for <59996-done@debbugs.gnu.org>; Tue, 13 Dec 2022 11:42:23 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1670928143; bh=h098jcpihn8njpzVo8tCmCMPNah4X9hXHSbRdIUrGv0=; h=From:To:Cc:Subject:Date:From; b=n7VdddtEWF36XBAkmJybyFqCyh+xMuDD3ZJ+utG0v/FJhGASlPg4K/VOp03NKqd7C SnO/Fy0WEYQtKrpldfbAzNCSl9xo+FEF5cTT9jw4YlWg98VJgaV6pheXKafGbagVI/ jbDLCW4H0vth93Tt1ZRSISqTwCjMhQxPAbYw+iLz8Q+IXetUO+ALz/xZYNsKnVdP4Q jLf0Fzh9DJxV4MQ8zefRu9piupBmLz+eOMXC8QWPq9S5Gq/b6Uqd0JDSewPWf4hnmo AI0V9S1qj5p120BkW44YJiUXNJUoslQzRfIWqx3vyVtjVOxlBXDeVA7Wr/P/bwuCfq Fl+J26k6hDQ5g== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4NWZnW07f1z9rxP; Tue, 13 Dec 2022 11:42:22 +0100 (CET) In-Reply-To: <83cz8ospv0.fsf@gnu.org> 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:250818 Archived-At: Eli Zaretskii writes: > I guess that entire section should be audited for inaccuracies now; > reviews and patches are welcome. Another part that requires update: Emacs stores the overlays of each buffer in two lists, divided around an arbitrary center position. One list extends backwards through the buffer from that center position, and the other extends forwards from that center position. The center position can be anywhere in the buffer. =20=20=20=20 -- Function: overlay-recenter pos This function recenters the overlays of the current buffer around position POS. That makes overlay lookup faster for positions near POS, but slower for positions far away from POS. =20=20=20=20 A loop that scans the buffer forwards, creating overlays, can run faster if you do =E2=80=98(overlay-recenter (point-max))=E2=80=99 first. =20=20=20=20 =E2=80=98after-string=E2=80=99/=E2=80=98before-string=E2=80=99 property des= cription might mention that string are not displayed if the end/beginning of the overlay is not displayed for some reason. Also, it might be worth highlighting that unlike text properties, overlays advance regardless whether insert or insert-and-inherit is used to insert the buffer text. --=20 Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at