From: <rl...@kn...> - 2012-02-14 00:29:22
|
Eric Ludlam writes: > 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. That may be my problem. I use no menus at all. What am I losing as a result? > Also, the first time you type an end, it should ask if you want to switch the > value so that functions have ends. Definitely does not do that. What is the relevant variable? > 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 > -- Robert L. Knighten RL...@kn... |