Lately, Emacs has been freezing up completely on my Ubuntu 9.10 installation (using 100% of the CPU) when editing comments (i.e. lines starting with a percent symbol) in matlab-mode.
I’m not sure about the exact circumstances when this happens—it doesn’t happen with all comments—but the same problem seems to occur in all versions of matlab.el from 2.2-3.3, so likely there is some inconsistency between matlab.el and new Emacs versions shipped with Ubuntu Linux. These problems started occurring sometime in 2009.
Freezes sometimes occur when:
- using Esc-Q to use matlab-fill-paragraph
- when manually inserting a ‘%’
- when using M-J to use matlab-comment-line-break-function
I blogged about a temporary workaround here:
http://sonofjon.wordpress.com/2010/02/03/workaround-for-emacs-matlab-mode-freeze/