Re:Emacs Users Are Like Terry Pratchett’s Igors (2013)
by dmortin on Monday July 29, 2019 @12:28AM
(#20551514)
> Whenever I open a file of code that is ~2000 lines or more, emacs slows to a crawl.
Then there is something wrong with your environment. Emacs has no problems with big files. It can have problems with very long lines, but big files shouldn't slow it down.
Re:Emacs Users Are Like Terry Pratchett’s Igors (2013)
by slightwinder on Monday July 29, 2019 @02:43AM
(#20552023)
That's not true. Emacs has several problems with big files. Though, to be more specifically, built-in minor-modes have them. So it depends on whether you run a bleak vanilla emacs without anything, or a mildly comfortable emacs with at least something like fontlock-mode and stuff.
But, 2000 lines are really not that much. Usually problems on my systems start to show at >10k lines.
Re:Emacs Users Are Like Terry Pratchett’s Igors (2013)
by IronBacon on Monday July 29, 2019 @10:07AM
(#20554717)
Syntax high-light pays its tool on not so huge files, but I remember opening without slowdowns files with around 100K lines in text mode (mostly log files).
Not exactly related but with Emacs 27 will be distributed the so-long mode that could toggle minor modes that affect redrawing like "font-lock", "visual-line", "whitespace" when files with long lines are opened: https://git.savannah.nongnu.org/cgit/so-long.git/plain/so-lo...
Re:Emacs Users Are Like Terry Pratchett’s Igors (2013)
by IronBacon on Wednesday July 31, 2019 @08:05AM
(#20573645)
Clearly I meant "toll" not "tool" above...
Re:Emacs Users Are Like Terry Pratchett’s Igors (2013)
by fooker on Monday July 29, 2019 @12:31AM
(#20551521)
I can reproduce this with emacs obtained from the repo on a newly installed Ubuntu 18.04 virtual machine.
Re:Emacs Users Are Like Terry Pratchett’s Igors (2013)
by dmortin on Monday July 29, 2019 @01:02AM
(#20551644)
Then I recommend M-x report-emacs-bug
The emacs developers will be very interested to hear about it.
Re:Emacs Users Are Like Terry Pratchett’s Igors (2013)
by celeritascelery on Monday July 29, 2019 @09:16AM
(#20554261)
That is surprising. I open log files all the time with several million lines without issue. If you are having issues try running it in fundamental-mode.
Re:Emacs Users Are Like Terry Pratchett’s Igors (2013)
by sachdevap on Monday July 29, 2019 @12:37AM
(#20551546)
As someone else has mentioned. Maybe the lines are very long. That is a known problem, and some minor solutions have been proposed, but it is an entrenched problem (in the way data structures handle text), and not one that programmers run into at any rate (unless you open those terrible "one-liner" javascript files).
I don't think emacs should be made any slower than it already is.