From: Eric L. <Eri...@ma...> - 2012-02-13 13:55:31
|
When a MATLAB file is first pulled into a buffer, it scans it to see if you have END at the end of all your functions or not. If the topmost function fails to have one, it remembers that, and treats the new end you write as unstarted. If you go into the menu, you can toggle the value for each buffer. The next time you load in that buffer, it should get it right. Also, the first time you type an end, it should ask if you want to switch the value so that functions have ends. I'm not sure why it didn't ask you about that. Eric -----Original Message----- From: Robert Knighten [mailto:rl...@kn...] Sent: Monday, February 13, 2012 2:28 AM To: mat...@li... Subject: [Matlab-emacs-discuss] Handling of function end statement in matlab-mode A fair amount of my Matlab code has multiple nested functions and so each of them must be terminated with an end statement, but when I type the end for the outermost function the message "Unstarted block at cursor." is displayed and when I go to save the file the message "Unstarted block. Continue anyway?(y or n)" is displayed and must be answered. This seems to be a bug, right? -- Bob -- Robert L. Knighten RL...@kn... ------------------------------------------------------------------------------ Try before you buy = See our experts in action! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-dev2 _______________________________________________ Matlab-emacs-discuss mailing list Mat...@li... https://lists.sourceforge.net/lists/listinfo/matlab-emacs-discuss |