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#56682: locked narrowing Date: Fri, 02 Dec 2022 10:57:40 +0200 Message-ID: <83r0xifaij.fsf@gnu.org> References: <97049541-f5b4-ed3b-b8de-7c0bdc86f0f5@yandex.ru> <6e305c9b-7702-133a-3347-f64db05ade3f@yandex.ru> <83mt89kt10.fsf@gnu.org> <834juglesn.fsf@gnu.org> <83r0xkjw5s.fsf@gnu.org> <83pmd3ioxx.fsf@gnu.org> <47153506021498df087c@heytings.org> <83bkomhlmn.fsf@gnu.org> <4715350602cf2ec6860b@heytings.org> <83a646hkat.fsf@gnu.org> <47153506028bbb3bc8b3@heytings.org> <47153506021115866615@heytings.org> <834juegs87.fsf@gnu.org> <20f32a53dc3b247b0b00@heytings.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="36066"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 56682@debbugs.gnu.org, monnier@iro.umontreal.ca, dgutov@yandex.ru To: Gregory Heytings Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Dec 02 09:59:15 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 1p11t4-0009BF-0B for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 02 Dec 2022 09:59:14 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p11sv-0005I1-23; Fri, 02 Dec 2022 03:59:05 -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 1p11ss-0005Hb-Oh for bug-gnu-emacs@gnu.org; Fri, 02 Dec 2022 03:59:02 -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 1p11ss-0000bZ-Gi for bug-gnu-emacs@gnu.org; Fri, 02 Dec 2022 03:59:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1p11ss-0004EI-99 for bug-gnu-emacs@gnu.org; Fri, 02 Dec 2022 03:59: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: Fri, 02 Dec 2022 08:59:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 56682 X-GNU-PR-Package: emacs Original-Received: via spool by 56682-submit@debbugs.gnu.org id=B56682.166997149816231 (code B ref 56682); Fri, 02 Dec 2022 08:59:02 +0000 Original-Received: (at 56682) by debbugs.gnu.org; 2 Dec 2022 08:58:18 +0000 Original-Received: from localhost ([127.0.0.1]:45446 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p11sA-0004Dj-4K for submit@debbugs.gnu.org; Fri, 02 Dec 2022 03:58:18 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:52280) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p11s8-0004Dc-98 for 56682@debbugs.gnu.org; Fri, 02 Dec 2022 03:58:16 -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 1p11s1-0000DN-4W; Fri, 02 Dec 2022 03:58:10 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=Cdpr8K5vBQNc5ca5HQNvZ1WooCMLLpHJbSdd+g8+go0=; b=QDSwWAPpzPLv Sy0Skq7CH4q3n0KjVp/8PObOijLROheeavEtbhcuiPpl7v0yyZUFE1/Yvu9SZ0TO4zJSlcdujuA9Y VfnCpE1p6R/ik1G/TI9bZCBohg8h7quOR4Vov4ym86geXCb51f37HQsbHBtk1UZpiH3GaqjM/d8XO jSmBvhwI8SpAQUreQ26EdGySQDkY/h7zCoP4nlUggqxaeMz/LZIIvOz/QpSxNVwC5L9HF3XKrQDCe i2XFhP+KJbZzP5T/zUmvvwY1PRyvzficKJcZjLCNlAEk10Kxv2mCF0Oja1S/8s/xH2kH6HkNopPhL j5DdpF22tGqo3LT1ddftxA==; 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 1p11rw-0000ju-RO; Fri, 02 Dec 2022 03:58:08 -0500 In-Reply-To: <20f32a53dc3b247b0b00@heytings.org> (message from Gregory Heytings on Fri, 02 Dec 2022 08:04:06 +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:249723 Archived-At: > Date: Fri, 02 Dec 2022 08:04:06 +0000 > From: Gregory Heytings > cc: Stefan Monnier , 56682@debbugs.gnu.org, > dgutov@yandex.ru > > Consider this other scenario. A buffer is buried, and modified in the > background by some process. That process adds a long line in that buffer, > followed by enough non-long lines, with point after these non-long lines. > Now the user asks for that buffer to be displayed again. With your > proposed approach, we would search around point if there are long lines. > There aren't, so we do not activate long line optimizations. Now the user > scrolls the buffer. The buffer has not changed in any way, so the > detection is not triggered, and we reach the long line. Kaboom! No "Kaboom!": when the user scrolls the buffer, point moves, so we can detect that and trigger rescanning.