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
Message #146 received at 44983 <at> debbugs.gnu.org (full text, mbox):
I've instrumented some functions to try to see what's going on.
I've set things up so that grep lines that are longer than 200 chars are
invisible starting at the 200th character. While the grep is running,
`jit-lock-fontify-now' is called repeatedly and takes longer time each
time, but with the same region:
Fontifying *grep* 392-1892
Fontifying *grep* 392-1892
Fontifying *grep* 392-1892
392 is the start of the line, and 1892 is in the invisible portion of
the line. That's 1500 characters, so it should be fast -- but perhaps
it's extending it to the end of the line anyway?
But before I start trying to debug that, I'm wondering: Why is
`jit-lock-fontify-now' called at all here? There have been no display
changes -- the text was inserted, but as invisible text, so no font
locking should be necessary.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
This bug report was last modified 3 years and 20 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.