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#44983: Truncate long lines of grep output Date: Wed, 02 Dec 2020 05:21:58 +0200 Message-ID: <83eek8hoyx.fsf@gnu.org> References: <87v9dlc3ti.fsf_-_@mail.linkov.net> <83ft4pik35.fsf@gnu.org> <87sg8p5kw0.fsf@mail.linkov.net> 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="12165"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 44983@debbugs.gnu.org, dgutov@yandex.ru To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Dec 02 04:23:10 2020 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 1kkIjW-00034C-My for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 02 Dec 2020 04:23:10 +0100 Original-Received: from localhost ([::1]:35852 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kkIjV-0000z0-PN for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 01 Dec 2020 22:23:09 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38122) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kkIjO-0000yU-LF for bug-gnu-emacs@gnu.org; Tue, 01 Dec 2020 22:23:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:50449) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kkIjO-00038Q-67 for bug-gnu-emacs@gnu.org; Tue, 01 Dec 2020 22:23:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kkIjO-0006mW-1Z for bug-gnu-emacs@gnu.org; Tue, 01 Dec 2020 22:23: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: Wed, 02 Dec 2020 03:23:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 44983 X-GNU-PR-Package: emacs Original-Received: via spool by 44983-submit@debbugs.gnu.org id=B44983.160687932825972 (code B ref 44983); Wed, 02 Dec 2020 03:23:01 +0000 Original-Received: (at 44983) by debbugs.gnu.org; 2 Dec 2020 03:22:08 +0000 Original-Received: from localhost ([127.0.0.1]:33761 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kkIiV-0006kq-VE for submit@debbugs.gnu.org; Tue, 01 Dec 2020 22:22:08 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:47876) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kkIiU-0006kO-Ht for 44983@debbugs.gnu.org; Tue, 01 Dec 2020 22:22:06 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:41538) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kkIiP-0002qd-7z; Tue, 01 Dec 2020 22:22:01 -0500 Original-Received: from [176.228.60.248] (port=4700 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kkIiO-0001hj-Pm; Tue, 01 Dec 2020 22:22:01 -0500 In-Reply-To: <87sg8p5kw0.fsf@mail.linkov.net> (message from Juri Linkov on Tue, 01 Dec 2020 22:35:55 +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:194766 Archived-At: > From: Juri Linkov > Cc: Dmitry Gutov , 44983@debbugs.gnu.org > Date: Tue, 01 Dec 2020 22:35:55 +0200 > > >> Perhaps (setq truncate-lines t) could help in that case? > > > > Not necessarily, because the truncated parts are still in the buffer, > > and the display code which is slow in that case basically moves > > through the buffer one character at a time in many cases. Only some > > specific scenarios (read: a small number of commands) can jump to the > > next physical line disregarding the truncated parts. > > It's very strange that after adding the text property 'display "[…]" > on a very long line, motion commands are still very slow in that buffer. > > Could you help to understand why hiding long regions > doesn't help to improve performance? I can try, but please tell which commands are slow. Is it C-f/C-b, C-n/C-p, C-v/M-v, something else?