[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#44983: Truncate long lines of grep output
From: |
Andreas Schwab |
Subject: |
bug#44983: Truncate long lines of grep output |
Date: |
Tue, 01 Dec 2020 17:46:33 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) |
On Dez 01 2020, Eli Zaretskii wrote:
>> From: Dmitry Gutov <dgutov@yandex.ru>
>> 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."
- bug#44983: Truncate long lines of grep output, Juri Linkov, 2020/12/01
- bug#44983: Truncate long lines of grep output, Dmitry Gutov, 2020/12/01
- bug#44983: Truncate long lines of grep output, Eli Zaretskii, 2020/12/01
- bug#44983: Truncate long lines of grep output, Juri Linkov, 2020/12/01
- bug#44983: Truncate long lines of grep output, Eli Zaretskii, 2020/12/01
- bug#44983: Truncate long lines of grep output, Juri Linkov, 2020/12/02
- bug#44983: Truncate long lines of grep output, Eli Zaretskii, 2020/12/02
- bug#44983: Truncate long lines of grep output, Juri Linkov, 2020/12/02
- bug#44983: Truncate long lines of grep output, Eli Zaretskii, 2020/12/03
- bug#44983: Truncate long lines of grep output, Rudolf Schlatte, 2020/12/03
- bug#44983: Truncate long lines of grep output, Juri Linkov, 2020/12/03
- bug#44983: Truncate long lines of grep output, Juri Linkov, 2020/12/05