Hello developers,

This is a bug report for matlab-mode (I hope this is the right place to
submit these?)

I'm using version 3.3.2
When I'm editing a file in MATLAB mode, I found a bug in how the auto-fill
works, an example is below.

0) open some m-file in matlab mode
1) set your fill column to 40 (c-x f 40)
2) create the line: "disp(['this is a , foo, ' string']);"
3) change fill column to 32 (c-x f 32)
4) put a space after the line, causing it to auto fill.  Mine now reads:
disp(['This is a ', foo, [' ' ...
                    'string']);

The bug is that there are now two opening "[" but only one closing "]" and
this is a syntax error.

I can produce other similarly syntax errors auto-filling with different
fill-columns, so something is buggy in how the auto-fill is working.

I like MATLAB mode a lot, thank you for great software!
-Hunter
------------------------------------------------------------------------------
Slashdot TV.  Video for Nerds.  Stuff that Matters.
http://pubads.g.doubleclick.net/gampad/clk?id=160591471&iu=/4140/ostg.clktrk
_______________________________________________
Matlab-emacs-discuss mailing list
Matlab-emacs-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matlab-emacs-discuss

Reply via email to