From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Andreas Schwab Newsgroups: gmane.emacs.bugs Subject: bug#44983: Truncate long lines of grep output Date: Tue, 01 Dec 2020 17:46:33 +0100 Message-ID: <87v9dleaom.fsf@igel.home> References: <87v9dlc3ti.fsf_-_@mail.linkov.net> <83ft4pik35.fsf@gnu.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="28396"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) Cc: Dmitry Gutov , 44983@debbugs.gnu.org, juri@linkov.net To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Dec 01 17:47:19 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 1kk8o9-0007Ed-35 for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 01 Dec 2020 17:47:17 +0100 Original-Received: from localhost ([::1]:59228 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kk8o7-000154-U2 for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 01 Dec 2020 11:47:16 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55816) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kk8nv-00013h-Mn for bug-gnu-emacs@gnu.org; Tue, 01 Dec 2020 11:47:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:49866) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kk8nu-0001zl-6H for bug-gnu-emacs@gnu.org; Tue, 01 Dec 2020 11:47:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kk8nu-0003cd-4o for bug-gnu-emacs@gnu.org; Tue, 01 Dec 2020 11:47:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Andreas Schwab Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 01 Dec 2020 16:47: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.160684119812725 (code B ref 44983); Tue, 01 Dec 2020 16:47:02 +0000 Original-Received: (at 44983) by debbugs.gnu.org; 1 Dec 2020 16:46:38 +0000 Original-Received: from localhost ([127.0.0.1]:33179 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kk8nV-0003Ix-Ul for submit@debbugs.gnu.org; Tue, 01 Dec 2020 11:46:38 -0500 Original-Received: from mail-out.m-online.net ([212.18.0.9]:35520) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kk8nT-0003FW-Lt for 44983@debbugs.gnu.org; Tue, 01 Dec 2020 11:46:36 -0500 Original-Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 4Clp0B43smz1qsbS; Tue, 1 Dec 2020 17:46:34 +0100 (CET) Original-Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 4Clp0B2Kycz1s0kX; Tue, 1 Dec 2020 17:46:34 +0100 (CET) X-Virus-Scanned: amavisd-new at mnet-online.de Original-Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id ZE6JHM5PD0Vs; Tue, 1 Dec 2020 17:46:33 +0100 (CET) X-Auth-Info: igPVp1lXzNP6nqmEr9P5BdLkAj+ZUnXsZ274RLJCu+eN9EJqImnh64fIOMmsy9jh Original-Received: from igel.home (ppp-46-244-164-228.dynamic.mnet-online.de [46.244.164.228]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPSA; Tue, 1 Dec 2020 17:46:33 +0100 (CET) Original-Received: by igel.home (Postfix, from userid 1000) id 199DF2C3623; Tue, 1 Dec 2020 17:46:33 +0100 (CET) X-Yow: .. someone in DAYTON, Ohio is selling USED CARPETS to a SERBO-CROATIAN 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:194752 Archived-At: On Dez 01 2020, Eli Zaretskii wrote: >> From: Dmitry Gutov >> Date: Tue, 1 Dec 2020 17:02:09 +0200 >> >> >>> This is a bug problem - often grep output lines are so long >> >>> that Emacs freezes, so need to kill the process. Updating >> >>> manually ignored-files every time a new file causes freeze >> >>> is very unreliable and time-consuming workaround. >> >> >> >> And a non-obvious one (for an average user). >> >> >> >> Is the same problem exhibited by commands using the Xref UI? I don't >> >> remember seeing it, but of course our projects can be very different. >> > >> > No difference from grep, Xref output has the same problem. >> >> 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. But moving though the buffer is much faster than rendering it. Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1 "And now for something completely different."