Menu

#5 emacs hangs on indenting superfluous end

open
nobody
None
5
2008-08-09
2008-08-09
Anonymous
No

Emacs hangs for me when indenting a piece of code that has an 'end' keyword too much.

to recreate, type:

for i=1:100
x=i
end
end

then press tab after the last 'end' to indent it.
emacs subsequently hangs with 100% cpu usage, after which I have to kill it manually.

I'm running ubuntu hardy with the emacs-snapshot-gtk package and I just downloaded the latest cvs version of matlab-mode (3.2.0)

thanks for any help

Discussion