From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Gregory Heytings Newsgroups: gmane.emacs.bugs Subject: bug#56682: locked narrowing Date: Thu, 01 Dec 2022 22:23:38 +0000 Message-ID: <47153506028bbb3bc8b3@heytings.org> References: <83czcyd8jf.fsf@gnu.org> <83a682d66r.fsf@gnu.org> <837d36ceno.fsf@gnu.org> <37dd2827f54f8bbda5e3@heytings.org> <735c1d5b-0d64-a8e1-3aaa-91fc0248abd3@yandex.ru> <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> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15856"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 56682@debbugs.gnu.org, monnier@iro.umontreal.ca, dgutov@yandex.ru To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Dec 01 23:24:11 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 1p0ryV-0003wn-B7 for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 01 Dec 2022 23:24:11 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p0ryO-0007EP-Nk; Thu, 01 Dec 2022 17:24:04 -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 1p0ryM-0007EB-Mg for bug-gnu-emacs@gnu.org; Thu, 01 Dec 2022 17:24: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 1p0ryM-0004FY-Bh for bug-gnu-emacs@gnu.org; Thu, 01 Dec 2022 17:24:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1p0ryM-0002W3-0B for bug-gnu-emacs@gnu.org; Thu, 01 Dec 2022 17:24:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Gregory Heytings Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 01 Dec 2022 22:24:01 +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.16699334259665 (code B ref 56682); Thu, 01 Dec 2022 22:24:01 +0000 Original-Received: (at 56682) by debbugs.gnu.org; 1 Dec 2022 22:23:45 +0000 Original-Received: from localhost ([127.0.0.1]:42318 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p0ry4-0002Vp-SD for submit@debbugs.gnu.org; Thu, 01 Dec 2022 17:23:45 -0500 Original-Received: from heytings.org ([95.142.160.155]:39864) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p0ry0-0002Vi-Kj for 56682@debbugs.gnu.org; Thu, 01 Dec 2022 17:23:44 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=heytings.org; s=20220101; t=1669933419; bh=ZpPgyqF2xYHaBL03F+8b4DRT8WvkYcilwEmIOCbx4KA=; h=Date:From:To:cc:Subject:In-Reply-To:Message-ID:References:From; b=IOU41OZnOCPsB+Ro7MMnlnKSvkkZNicm9V+4vaEghJZWqukgDcvpfX8YYb1IcJdah Hc2drHhczrt33iFnJFP+7ToIjxnAsd3PiAdRM8dpRt4TmtTrFKdSZNs11g1jh0yvog 2LmQ+Vm4j1UM1+vwYbxbL6dzDnZ2SOMLYkTBpiP71h7f48FgBSkkimhFMVKbTTmee1 kUus0vBXUXP9engq0tovFPaHsjL5FMreL3zxDVRz1p/hve9BVvA4Ca6FQnvNJvXt3L efulfxhr7+2NGZMQW4WOGHYp6wONaaVJRrcbEaRDM1uJZKKzFKtaBUHGEjxzNTtftK 1MeOMkwfbmC1A== In-Reply-To: <83a646hkat.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:249677 Archived-At: >> I mean that Emacs is trapped in the long line problem again, don't you >> see it? > > No, not in particular. Maybe you use a different file? > ??? Did you try to edit the file after widening, or even just to move the cursor? I'm using the same dictionary.json file we've been using. > > But anyway, what exactly does this prove, and how? I asked why we need > to look beyond the narrowing, so how does the above answer that > question? what am I missing? > It proves that the long line detection loop must be executed on the whole buffer. In this case there are no modifications to the buffer when it is widened, so the detection loop is not triggered, and because there was no long line in BEGV/ZV before widening Emacs did not activate the long line optimizations. > > I give up. I will probably try to find time to code this myself, since > you don't even want to try. > Of course I'm willing to try. But I already tried, I already explored the possibility you now consider, and concluded that it was not possible to do that. I'm just trying to explain why and how I reached that conclusion. If you have other ideas, I'm all ears.