From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#59996: 30.0.50; Overlays section of Elisp manual still states that overlays scale linearly Date: Wed, 14 Dec 2022 20:15:28 +0200 Message-ID: <83cz8ln96n.fsf@gnu.org> 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 Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="33483"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 59996-done@debbugs.gnu.org To: Ihor Radchenko Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Dec 14 19:16:29 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 1p5WIt-0008Ww-UR for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 14 Dec 2022 19:16:27 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p5WIa-00084O-4O; Wed, 14 Dec 2022 13:16:08 -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 1p5WIV-00083x-IK for bug-gnu-emacs@gnu.org; Wed, 14 Dec 2022 13:16:03 -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 1p5WIV-0008HN-02 for bug-gnu-emacs@gnu.org; Wed, 14 Dec 2022 13:16:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1p5WIU-00067Z-IR for bug-gnu-emacs@gnu.org; Wed, 14 Dec 2022 13:16:02 -0500 X-Loop: help-debbugs@gnu.org 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 Original-Received: via spool by 59996-done@debbugs.gnu.org id=D59996.167104174223516 (code D ref 59996); Wed, 14 Dec 2022 18:16:02 +0000 Original-Received: (at 59996-done) by debbugs.gnu.org; 14 Dec 2022 18:15:42 +0000 Original-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 Original-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 Original-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==; Original-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 In-Reply-To: <87r0x3d1py.fsf@localhost> (message from Ihor Radchenko on Tue, 13 Dec 2022 10:42:17 +0000) 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:250981 Archived-At: > 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.