From unknown Sat Jun 14 05:28:46 2025 X-Loop: help-debbugs@gnu.org Subject: bug#59996: 30.0.50; Overlays section of Elisp manual still states that overlays scale linearly Resent-From: Ihor Radchenko Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 12 Dec 2022 09:54:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 59996 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 59996@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.167083883930438 (code B ref -1); Mon, 12 Dec 2022 09:54:02 +0000 Received: (at submit) by debbugs.gnu.org; 12 Dec 2022 09:53:59 +0000 Received: from localhost ([127.0.0.1]:51855 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p4fVX-0007us-CT for submit@debbugs.gnu.org; Mon, 12 Dec 2022 04:53:59 -0500 Received: from lists.gnu.org ([209.51.188.17]:41330) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p4fVW-0007um-Cu for submit@debbugs.gnu.org; Mon, 12 Dec 2022 04:53:58 -0500 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 1p4fVW-0005iW-7F for bug-gnu-emacs@gnu.org; Mon, 12 Dec 2022 04:53:58 -0500 Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p4fVT-00037w-Rs for bug-gnu-emacs@gnu.org; Mon, 12 Dec 2022 04:53:57 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 457E7240101 for ; Mon, 12 Dec 2022 10:53:52 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1670838833; bh=J3C78ZYy7zM9qmEZUW3Ku9gJp0tKSFpGaIN3fqj9wzI=; h=From:To:Subject:Date:From; b=aO6dFcU15JDOxKwv5+C+kMuaAaSTLdaH2G8yXOSbWAi3P2ZAKsfLVjZO46SpxLN0k 7qtgsINRZ7Ll04Wx8vrRletEFXPnb0VD4MeidCPgdAvBJXorS4HXK+ZQrb32ijXXeA fYG+LXs04OhbW8l/5s59t2rghD6eErHhcK/hWJ42Gj5Ak0zirUWB8cDA0ocVKmzuDk jl6ZiBzpsshBE4sMoLoC4K0Az5x2jIZtD9URx+BADywYVmhfQ41p4UNUaC87tw4yUt PsT9UG3FsBzWdcpzIAiN1VnbaILUEl0OAr8QPEyccQ0p35/bhVqLig9y/hDnt7FZIv +9KP6DxwO2gBg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4NVxlz5TJkz6tm6 for ; Mon, 12 Dec 2022 10:53:51 +0100 (CET) From: Ihor Radchenko Date: Mon, 12 Dec 2022 09:53:51 +0000 Message-ID: <87cz8phrrk.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=185.67.36.66; envelope-from=yantar92@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) Hi, I am still seeing the following clause in the 41.9 Overlays section of Elisp manual: The visual effect of an overlay is the same as of the corresponding text property (*note Text Properties::). However, due to a different implementation, overlays generally don=E2=80=99t scale well (many opera= tions take a time that is proportional to the number of overlays in the buffer). If you need to affect the visual appearance of many portions in the buffer, we recommend using text properties. Should it be removed now, when overlays are equally performance with text properties? In GNU Emacs 30.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.35, cairo version 1.17.6) of 2022-12-07 built on localhost Repository revision: f0e118d3f676afe39df29663399d4bbe8f53f208 Repository branch: master Windowing system distributor 'The X.Org Foundation', version 11.0.12101004 System Description: Gentoo Linux --=20 Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at From unknown Sat Jun 14 05:28:46 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Ihor Radchenko Subject: bug#59996: closed (Re: bug#59996: 30.0.50; Overlays section of Elisp manual still states that overlays scale linearly) Message-ID: References: <83cz8ospv0.fsf@gnu.org> <87cz8phrrk.fsf@localhost> X-Gnu-PR-Message: they-closed 59996 X-Gnu-PR-Package: emacs Reply-To: 59996@debbugs.gnu.org Date: Mon, 12 Dec 2022 13:40:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1670852402-26811-1" This is a multi-part message in MIME format... ------------=_1670852402-26811-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #59996: 30.0.50; Overlays section of Elisp manual still states that overlay= s scale linearly which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 59996@debbugs.gnu.org. --=20 59996: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D59996 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1670852402-26811-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 59996-done) by debbugs.gnu.org; 12 Dec 2022 13:39:43 +0000 Received: from localhost ([127.0.0.1]:53017 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p4j1y-0006y8-Uf for submit@debbugs.gnu.org; Mon, 12 Dec 2022 08:39:43 -0500 Received: from eggs.gnu.org ([209.51.188.92]:40640) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p4j1x-0006y2-Fu for 59996-done@debbugs.gnu.org; Mon, 12 Dec 2022 08:39:41 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p4j1q-000517-VS; Mon, 12 Dec 2022 08:39:35 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=R5z1v8j/kppXpxtOqz2Nr0WIQZ1I2hXidnmfErJcLUU=; b=lVxMUWU/0d+hF5FgP9it gRHqfsJxYZYWppRocDePe1UhrS24ytUIYmbrI5daoN476LIITAoRsOHnaRa869fnZtRqlz7eSVro8 Yxg4S3OuwPbGtDjp1Mb0/Fy9wi0EjXKn83FwJZ27qkVH1JiiNAjxjKAOm+dE4Q6q5TJPtJgg0OFoz TMwM3shuru16ttrFfRO1ZaLO1WyCdAAisoFQJyWdPLDXCptl3M6TrWh3C316+FpmkQF7kpfhk8UeI hC4GhaI2roJnEcNhTXaEyOAEOJ2RKDdoYQGdYBtbOEC4rWjdTCCREf3VtRCW3zdTNSUAyhHIw20Cu 6q/qyHWUPLwTfA==; Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p4j1q-00089r-49; Mon, 12 Dec 2022 08:39:34 -0500 Date: Mon, 12 Dec 2022 15:39:31 +0200 Message-Id: <83cz8ospv0.fsf@gnu.org> From: Eli Zaretskii To: Ihor Radchenko In-Reply-To: <87cz8phrrk.fsf@localhost> (message from Ihor Radchenko on Mon, 12 Dec 2022 09:53:51 +0000) Subject: Re: bug#59996: 30.0.50; Overlays section of Elisp manual still states that overlays scale linearly References: <87cz8phrrk.fsf@localhost> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 59996-done Cc: 59996-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Ihor Radchenko > Date: Mon, 12 Dec 2022 09:53:51 +0000 > > I am still seeing the following clause in the 41.9 Overlays section of > Elisp manual: > > The visual effect of an overlay is the same as of the corresponding > text property (*note Text Properties::). However, due to a different > implementation, overlays generally don’t scale well (many operations > take a time that is proportional to the number of overlays in the > buffer). If you need to affect the visual appearance of many portions > in the buffer, we recommend using text properties. > > Should it be removed now, when overlays are equally performance with > text properties? Yes. I removed it. I guess that entire section should be audited for inaccuracies now; reviews and patches are welcome. Thanks. ------------=_1670852402-26811-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 12 Dec 2022 09:53:59 +0000 Received: from localhost ([127.0.0.1]:51855 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p4fVX-0007us-CT for submit@debbugs.gnu.org; Mon, 12 Dec 2022 04:53:59 -0500 Received: from lists.gnu.org ([209.51.188.17]:41330) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p4fVW-0007um-Cu for submit@debbugs.gnu.org; Mon, 12 Dec 2022 04:53:58 -0500 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 1p4fVW-0005iW-7F for bug-gnu-emacs@gnu.org; Mon, 12 Dec 2022 04:53:58 -0500 Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p4fVT-00037w-Rs for bug-gnu-emacs@gnu.org; Mon, 12 Dec 2022 04:53:57 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 457E7240101 for ; Mon, 12 Dec 2022 10:53:52 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1670838833; bh=J3C78ZYy7zM9qmEZUW3Ku9gJp0tKSFpGaIN3fqj9wzI=; h=From:To:Subject:Date:From; b=aO6dFcU15JDOxKwv5+C+kMuaAaSTLdaH2G8yXOSbWAi3P2ZAKsfLVjZO46SpxLN0k 7qtgsINRZ7Ll04Wx8vrRletEFXPnb0VD4MeidCPgdAvBJXorS4HXK+ZQrb32ijXXeA fYG+LXs04OhbW8l/5s59t2rghD6eErHhcK/hWJ42Gj5Ak0zirUWB8cDA0ocVKmzuDk jl6ZiBzpsshBE4sMoLoC4K0Az5x2jIZtD9URx+BADywYVmhfQ41p4UNUaC87tw4yUt PsT9UG3FsBzWdcpzIAiN1VnbaILUEl0OAr8QPEyccQ0p35/bhVqLig9y/hDnt7FZIv +9KP6DxwO2gBg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4NVxlz5TJkz6tm6 for ; Mon, 12 Dec 2022 10:53:51 +0100 (CET) From: Ihor Radchenko To: bug-gnu-emacs@gnu.org Subject: 30.0.50; Overlays section of Elisp manual still states that overlays scale linearly Date: Mon, 12 Dec 2022 09:53:51 +0000 Message-ID: <87cz8phrrk.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=185.67.36.66; envelope-from=yantar92@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) Hi, I am still seeing the following clause in the 41.9 Overlays section of Elisp manual: The visual effect of an overlay is the same as of the corresponding text property (*note Text Properties::). However, due to a different implementation, overlays generally don=E2=80=99t scale well (many opera= tions take a time that is proportional to the number of overlays in the buffer). If you need to affect the visual appearance of many portions in the buffer, we recommend using text properties. Should it be removed now, when overlays are equally performance with text properties? In GNU Emacs 30.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.35, cairo version 1.17.6) of 2022-12-07 built on localhost Repository revision: f0e118d3f676afe39df29663399d4bbe8f53f208 Repository branch: master Windowing system distributor 'The X.Org Foundation', version 11.0.12101004 System Description: Gentoo Linux --=20 Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at ------------=_1670852402-26811-1-- From unknown Sat Jun 14 05:28:46 2025 X-Loop: help-debbugs@gnu.org Subject: bug#59996: 30.0.50; Overlays section of Elisp manual still states that overlays scale linearly 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 X-GNU-PR-Keywords: To: Eli Zaretskii Cc: 59996-done@debbugs.gnu.org Received: via spool by 59996-done@debbugs.gnu.org id=D59996.167092815111946 (code D ref 59996); Tue, 13 Dec 2022 10:43:02 +0000 Received: (at 59996-done) by debbugs.gnu.org; 13 Dec 2022 10:42:31 +0000 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 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 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== 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) From: Ihor Radchenko In-Reply-To: <83cz8ospv0.fsf@gnu.org> References: <87cz8phrrk.fsf@localhost> <83cz8ospv0.fsf@gnu.org> Date: Tue, 13 Dec 2022 10:42:17 +0000 Message-ID: <87r0x3d1py.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) 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 From unknown Sat Jun 14 05:28:46 2025 X-Loop: help-debbugs@gnu.org Subject: bug#59996: 30.0.50; Overlays section of Elisp manual still states that overlays scale linearly Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 14 Dec 2022 18:16:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 59996 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Ihor Radchenko Cc: 59996-done@debbugs.gnu.org Received: via spool by 59996-done@debbugs.gnu.org id=D59996.167104174223516 (code D ref 59996); Wed, 14 Dec 2022 18:16:02 +0000 Received: (at 59996-done) by debbugs.gnu.org; 14 Dec 2022 18:15:42 +0000 Received: from localhost ([127.0.0.1]:40774 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p5WIA-00067E-He for submit@debbugs.gnu.org; Wed, 14 Dec 2022 13:15:42 -0500 Received: from eggs.gnu.org ([209.51.188.92]:51416) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p5WI5-000678-PD for 59996-done@debbugs.gnu.org; Wed, 14 Dec 2022 13:15:41 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p5WI0-0007Oy-3o; Wed, 14 Dec 2022 13:15:32 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=htGbJc3b1Qx8mC+zzaEeualkpG4i4ZDs8vUMW8C33Yo=; b=Shblg/3NqzqCI6swR+VF cQfRKvnBP87afaVBfwycJOyFZ7qvPA455y9MZ/IV0j75ZO1bG3OXeBtFw2boaDpXx4xfJ/1Mta+XU Ala3FrTYnbBs7AOdFfVoIHpMvkp5MODpzpna/tZR4e6UFEQV+GQFrqf1E6647Ly9E5HP3i0gMBZxT GNZCE4pO2jurqtCJXMCgujORXKklx9wYhz6vQuAcD+Bi7ayjxfKQqjcLt9NLa6zyRTmfVZBHhpuAI rbe42jyfItzJw05ru+trzlohgc5Pomq68dDc0HvRgz5MkNWcj9ydubXB016HKArezowISAygY55mk YogZFGbQejSTMw==; Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p5WHz-0005Eh-KL; Wed, 14 Dec 2022 13:15:31 -0500 Date: Wed, 14 Dec 2022 20:15:28 +0200 Message-Id: <83cz8ln96n.fsf@gnu.org> From: Eli Zaretskii In-Reply-To: <87r0x3d1py.fsf@localhost> (message from Ihor Radchenko on Tue, 13 Dec 2022 10:42:17 +0000) References: <87cz8phrrk.fsf@localhost> <83cz8ospv0.fsf@gnu.org> <87r0x3d1py.fsf@localhost> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Ihor Radchenko > Cc: 59996-done@debbugs.gnu.org > Date: Tue, 13 Dec 2022 10:42:17 +0000 > > 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. > > -- 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. > > A loop that scans the buffer forwards, creating overlays, can run > faster if you do ‘(overlay-recenter (point-max))’ first. > > > ‘after-string’/‘before-string’ property description 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. Fixed, thanks.