I'm editing a large (around 50k words) tex file in Emacs using AUCTeX and cursor movement is quite sluggish, especially when jumping by word. This isn't a problem in any other mode.
Edit: I did some (super-unscientific) profiling with elp.el, just moving around with
(defun movement-test ()
(interactive)
(setq i 0)
(while (< i 10000)
(forward-word)
(next-line)
(previous-line)
(backward-word)
(incf i)))
And the results are
- 211 line .tex document: 36.1s
- 5393 line .tex document: 47.7s
- 1076 line .R file (for comparison): 32.2s
I think it might have something to do with preview-latex (which I don't use), is there any way to disable preview-latex?
Mac OS X 10.7.3, Emacs v24.0.94.1, AUCTeX/preview-latex v11.86
(load "preview-latex.el" nil t t)from your .emacs? – Rasmus Mar 25 '12 at 12:53(load "preview-latex.el" nil t t)in my .emacs,preview-latexis loaded by default as far as I can tell because I installed AUCTeX through ELPA. I'll have a hack around and see if I can stop it loading by default. – Ben Mar 26 '12 at 0:19