From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#56682: locked narrowing Date: Wed, 30 Nov 2022 18:34:15 +0200 Organization: LINKOV.NET Message-ID: <86cz94jxwo.fsf@mail.linkov.net> References: <83r11gdrr4.fsf@gnu.org> <83edxfds7s.fsf@gnu.org> <83r11fc80o.fsf@gnu.org> <83o7wjc6o2.fsf@gnu.org> <83lernc5gu.fsf@gnu.org> <83k076dd7d.fsf@gnu.org> <83czcyd8jf.fsf@gnu.org> <83a682d66r.fsf@gnu.org> <837d36ceno.fsf@gnu.org> <37dd2827f54f8bbda5e3@heytings.org> <735c1d5b-0d64-a8e1-3aaa-91fc0248abd3@yandex.ru> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="40121"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/30.0.50 (x86_64-pc-linux-gnu) Cc: 56682@debbugs.gnu.org, Eli Zaretskii , Stefan Monnier , Dmitry Gutov To: Gregory Heytings Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Nov 30 17:59:50 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 1p0QR3-000AFu-LT for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 30 Nov 2022 17:59:49 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p0QQP-0003Dk-Mj; Wed, 30 Nov 2022 11:59:09 -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 1p0QQN-0003Co-LM for bug-gnu-emacs@gnu.org; Wed, 30 Nov 2022 11:59:07 -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 1p0QQN-0004CU-D4 for bug-gnu-emacs@gnu.org; Wed, 30 Nov 2022 11:59:07 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1p0Q9p-000731-VD for bug-gnu-emacs@gnu.org; Wed, 30 Nov 2022 11:42:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 30 Nov 2022 16:42: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.166982651127068 (code B ref 56682); Wed, 30 Nov 2022 16:42:01 +0000 Original-Received: (at 56682) by debbugs.gnu.org; 30 Nov 2022 16:41:51 +0000 Original-Received: from localhost ([127.0.0.1]:33793 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p0Q9e-00072W-JM for submit@debbugs.gnu.org; Wed, 30 Nov 2022 11:41:50 -0500 Original-Received: from relay10.mail.gandi.net ([217.70.178.230]:58821) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p0Q9b-00072N-Vf for 56682@debbugs.gnu.org; Wed, 30 Nov 2022 11:41:49 -0500 Original-Received: (Authenticated sender: juri@linkov.net) by mail.gandi.net (Postfix) with ESMTPSA id 2E031240003; Wed, 30 Nov 2022 16:41:38 +0000 (UTC) In-Reply-To: (Gregory Heytings's message of "Sat, 26 Nov 2022 14:14:52 +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:249527 Archived-At: To be able to fix bug#56815 I started to test the locked narrowing, and everything works smoothly with: (setq treesit-max-buffer-size 1200000000) (push '(js-json-mode . json-ts-mode) major-mode-remap-alist) (add-hook 'find-file-hook 'toggle-truncate-lines) Navigating 1 GB hugedictionary.json exhibits no delays (the recipe uses treesit to get the correct highlighting). However, 2 problems encountered: 1. after 'M-g TAB' (move-to-column) to 214748364 or more, the display is not updated anymore: moving point to the left from this position shows the cursor, moving point to the right has no visible effect. Is it a hard limit in the display engine? Its hex value is #xccccccc. 2. after starting Isearch at a large column number, Emacs hangs up indefinitely, e.g. with 'M-g TAB 10000000 RET C-s' then even C-g doesn't get out. Debugging shows that the problem is in 'isearch-update' where the call to 'pos-visible-in-window-group-p' doesn't return. When this call is removed, the search is instantaneous. (Optimizing lazy-highlight is a separate problem in bug#56815.) PS: it seems these problems are not related to the locked narrowing, rather the locked narrowing helped to expose them, so maybe they should be reported in a new separate bug report?