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, 07 Dec 2022 09:52:00 +0200 Organization: LINKOV.NET Message-ID: <86pmcvvefz.fsf@mail.linkov.net> References: <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> <86cz94jxwo.fsf@mail.linkov.net> <86edtcizge.fsf@mail.linkov.net> <4c30cec9ced418fb54dd@heytings.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15262"; 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 Dec 07 08:55:26 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 1p2pH4-0003pa-TZ for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 07 Dec 2022 08:55:26 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p2pGn-0004eL-8R; Wed, 07 Dec 2022 02:55: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 1p2pGg-0004dx-NA for bug-gnu-emacs@gnu.org; Wed, 07 Dec 2022 02:55: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 1p2pGg-0001DX-EY for bug-gnu-emacs@gnu.org; Wed, 07 Dec 2022 02:55:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1p2pGg-0000Ud-9u for bug-gnu-emacs@gnu.org; Wed, 07 Dec 2022 02:55:02 -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, 07 Dec 2022 07:55: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.16703996901886 (code B ref 56682); Wed, 07 Dec 2022 07:55:02 +0000 Original-Received: (at 56682) by debbugs.gnu.org; 7 Dec 2022 07:54:50 +0000 Original-Received: from localhost ([127.0.0.1]:48270 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p2pGT-0000UM-Tu for submit@debbugs.gnu.org; Wed, 07 Dec 2022 02:54:50 -0500 Original-Received: from relay11.mail.gandi.net ([217.70.178.231]:41823) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p2pGR-0000U3-CW for 56682@debbugs.gnu.org; Wed, 07 Dec 2022 02:54:49 -0500 Original-Received: (Authenticated sender: juri@linkov.net) by mail.gandi.net (Postfix) with ESMTPSA id EC428100007; Wed, 7 Dec 2022 07:54:38 +0000 (UTC) In-Reply-To: <4c30cec9ced418fb54dd@heytings.org> (Gregory Heytings's message of "Tue, 06 Dec 2022 20:11:41 +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:250164 Archived-At: >> There is another side-effect: after evaluating manually 'M-: >> (pos-visible-in-window-p) RET' at the position 1000000, point moves to >> the position 749873 afterwards. It seems this is related to locked >> narrowing, because point doesn't jump after customizing >> long-line-locked-narrowing-region-size to 0. > > I cannot reproduce that. With the following recipe: > > emacs -Q > C-x C-f dictionary.json RET > M-g c 1000000 RET > M-: (pos-visible-in-window-p) RET > > point does not move. Is there something missing in that recipe? The prerequisite is this setting: (add-hook 'find-file-hook 'toggle-truncate-lines)