Even using default settings (emacs -Q
) I've found large C files can be slow to scroll with Emacs.
If for example, I open a large file and hold Page-Down. It will scroll down 1-2 pages, then hang for a second or two, on releasing the document is scrolled many pages down (20 pages or so). *
I know Emacs is capable of less erratic behavior because if I quickly tap page down, it manages to keep up and doesn't hang as before.
Is it possible to have Emacs not attempt to handle multiple events at once, and instead redraw between events?
Or somehow become more responsive instead of hanging while it attempts to process many events?
* The actual slow-down in this case is caused by syntax highlighting, since if I scroll the entire document once, after that all scrolling is fast. I've looked into different options relating to font locking and concluded that the font locking defaults are reasonable and tweaking them doesn't solve the problem, mentioning this since I've already investigated that and don't think it's an important part of this question.
emacs -Q
to rule that out), or it could be that your disk is very slow. You might also try turning off syntax highlighting or other helpful behavior (put the buffer into fundamental mode).