GNU bug report logs -
#44983
Truncate long lines of grep output
Previous Next
Reported by: Juri Linkov <juri <at> linkov.net>
Date: Tue, 1 Dec 2020 08:56:01 UTC
Severity: normal
Fixed in version 29.1
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
Eli Zaretskii <eliz <at> gnu.org> writes:
>> > If that doesn't help either, I suggest to profile the code, because it
>> > could be the slow display is due to something else.
>>
>> Hm, yes... even if I disable font-lock-mode, it's still slow.
>
> Then I think a profile should tell something interesting.
Turns out to be font lock anyway:
9152 88% - redisplay_internal (C function)
9148 88% - jit-lock-function
9148 88% - jit-lock-fontify-now
9148 88% - jit-lock--run-functions
9144 87% - run-hook-wrapped
9144 87% - #<compiled -0x1568eefe49e247c3>
9144 87% - font-lock-fontify-region
9144 87% - font-lock-default-fontify-region
9144 87% font-lock-fontify-keywords-region
Apparently disabling font-lock-mode in the *grep* buffer wasn't
sufficient to make it go away for some reason or other. Disabling
global-font-lock-mode makes the problem go away. And using invisible
text instead of a display property makes no difference -- font-lock
seems to really want to do font locking on ever-growing lines that are
inserted into the buffer by the process.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
This bug report was last modified 3 years and 19 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.