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#44983: Truncate long lines of grep output Date: Tue, 01 Dec 2020 22:35:55 +0200 Organization: LINKOV.NET Message-ID: <87sg8p5kw0.fsf@mail.linkov.net> References: <87v9dlc3ti.fsf_-_@mail.linkov.net> <83ft4pik35.fsf@gnu.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="9036"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-linux-gnu) Cc: 44983@debbugs.gnu.org, Dmitry Gutov To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Dec 01 21:38:21 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 1kkCPl-0002Ff-91 for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 01 Dec 2020 21:38:21 +0100 Original-Received: from localhost ([::1]:35942 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kkCPk-0008Ov-9l for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 01 Dec 2020 15:38:20 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:34078) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kkCPT-0008LM-NA for bug-gnu-emacs@gnu.org; Tue, 01 Dec 2020 15:38:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:50031) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kkCPS-0005J3-Tc for bug-gnu-emacs@gnu.org; Tue, 01 Dec 2020 15:38:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kkCPS-0003TS-Oy for bug-gnu-emacs@gnu.org; Tue, 01 Dec 2020 15:38: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: Tue, 01 Dec 2020 20:38:02 +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.160685505113308 (code B ref 44983); Tue, 01 Dec 2020 20:38:02 +0000 Original-Received: (at 44983) by debbugs.gnu.org; 1 Dec 2020 20:37:31 +0000 Original-Received: from localhost ([127.0.0.1]:33343 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kkCOx-0003Sa-CX for submit@debbugs.gnu.org; Tue, 01 Dec 2020 15:37:31 -0500 Original-Received: from relay7-d.mail.gandi.net ([217.70.183.200]:35189) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kkCOv-0003SB-V0 for 44983@debbugs.gnu.org; Tue, 01 Dec 2020 15:37:30 -0500 X-Originating-IP: 91.129.99.98 Original-Received: from mail.gandi.net (m91-129-99-98.cust.tele2.ee [91.129.99.98]) (Authenticated sender: juri@linkov.net) by relay7-d.mail.gandi.net (Postfix) with ESMTPSA id E804120004; Tue, 1 Dec 2020 20:37:22 +0000 (UTC) In-Reply-To: <83ft4pik35.fsf@gnu.org> (Eli Zaretskii's message of "Tue, 01 Dec 2020 18:09:50 +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:194760 Archived-At: >> 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?