GNU bug report logs -
#38407
27.0.50; infinite loop with display of large file without newlines
Previous Next
Full log
View this message in rfc822 format
> Date: Thu, 28 Nov 2019 07:51:33 +0100
> From: Pieter van Oostrum <pieter <at> vanoostrum.org>
> Cc: 38407 <at> debbugs.gnu.org
>
> Normally I wouldn't open such a bizarre file, but I was doing an 'rgrep' on my home directory, and this was one of the files that came up in the grep results. When I was scrolling though the *grep* buffer, I got this problem. Then I decided to just open the file, to eliminate the possibility that grep-mode was one of the causes.
>
> And yes, I checked it all with emacs -Q.
As an aside, using Text mode for such files, and visual-line-mode on
top of that, is exactly the opposite of what one should do to make
redisplay performance better. Text mode resets
bidi-paragraph-direction to nil, which makes redisplay work harder
because it needs to find the beginning of the current paragraph each
time redisplay starts. And visual-line-mode makes redisplay a bit
slower, because of the need to find a suitable point to break the
line.
So I suggest to use the default mode for visiting JSON files.
This bug report was last modified 5 years and 191 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.