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#56393: Turn on narrowing in redisplay_window Date: Tue, 19 Jul 2022 15:43:48 +0300 Message-ID: <83a695nugr.fsf@gnu.org> References: <38c1a31040d2d2bc47ae@heytings.org> 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="31620"; mail-complaints-to="usenet@ciao.gmane.io" Cc: gregory@heytings.org, 56393@debbugs.gnu.org To: Gerd =?UTF-8?Q?M=C3=B6llmann?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Jul 19 14:45:35 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 1oDmbW-00080j-H1 for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 19 Jul 2022 14:45:34 +0200 Original-Received: from localhost ([::1]:52158 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oDmbV-0003pi-2N for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 19 Jul 2022 08:45:33 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:59122) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oDmb0-0003pQ-19 for bug-gnu-emacs@gnu.org; Tue, 19 Jul 2022 08:45:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:55320) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oDmaz-000776-NT for bug-gnu-emacs@gnu.org; Tue, 19 Jul 2022 08:45:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oDmaz-0005Ep-IN for bug-gnu-emacs@gnu.org; Tue, 19 Jul 2022 08:45:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 19 Jul 2022 12:45:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 56393 X-GNU-PR-Package: emacs Original-Received: via spool by 56393-submit@debbugs.gnu.org id=B56393.165823465120056 (code B ref 56393); Tue, 19 Jul 2022 12:45:01 +0000 Original-Received: (at 56393) by debbugs.gnu.org; 19 Jul 2022 12:44:11 +0000 Original-Received: from localhost ([127.0.0.1]:53077 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oDmaA-0005DP-HD for submit@debbugs.gnu.org; Tue, 19 Jul 2022 08:44:10 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:46066) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oDma5-0005Ck-UG for 56393@debbugs.gnu.org; Tue, 19 Jul 2022 08:44:09 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:34598) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oDma0-00072J-EY; Tue, 19 Jul 2022 08:44:00 -0400 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=GbFjG4ZHe8CbXbb+QzLp71Kxy7pd1h/VJAuX81kWF3o=; b=oP2dMGrrUAAWE5XSmAdS shNTFoyYLp3L09ysl+GFzKPMuTbId0c9eNfxKiBt3c4pPEFWsFR9AFoLtoI+jty1Ykhb6bYoe95F1 2RZDaixye5g31Yeru245GWmyMP8FGm/8sIkhzO6fAfZ78PvYXZrlRFddSsJbn3jhhActCJnwfwMqz Ri3Ur3VLgxRCC4aNeE1b/M8u1GgBky0R2jrZa+vGyyxRiJBD1/edQR/2vrq5WpZBjyvkPbXBJYXj+ O6+P/0E3zhqZOR8QfBBVgpQnO55k35EJ0J/AcXuRwZEiF6U0zyA305QN5ydx8dxVicFzWN2P3fN2n 2Al4by6ulGXpWQ==; Original-Received: from [87.69.77.57] (port=4530 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 1oDmZz-0002oj-Si; Tue, 19 Jul 2022 08:44:00 -0400 In-Reply-To: (message from Gerd =?UTF-8?Q?M=C3=B6llmann?= on Tue, 19 Jul 2022 13:26:31 +0200) 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" Xref: news.gmane.io gmane.emacs.bugs:237429 Archived-At: > Cc: 56393@debbugs.gnu.org > From: Gerd Möllmann > Date: Tue, 19 Jul 2022 13:26:31 +0200 > > Gregory Heytings writes: > > >> > >> which is "the buffer got smaller"? > >> > > > > You are correct. It's too hot here too, apparently! 😉 > > Is finding newlines that expensive? (I don't remember.) It isn't, but if you have a very large buffer, finding _all_ the newlines in it could take time. > I mean, if someone turns that "mode" on, does he deserve to suffer a > little bit while that is switched on? We want to have this "mode" turned on by default. > I think someone with such a long line deserves to suffer. That's a bootstrap problem: when you first visit a file, you usually don't know whether it will have long lines. By the time you know, it's many times too late. Thus such a feature should ideally be active by default, unless it sometimes causes serious problems.