From: Eric L. <Eri...@ma...> - 2012-02-22 14:17:00
|
Hi Robert, Everything in the menu can be accessed via M-x. The menus is just a handy way to see some common features. You can use M-x customize-group RET matlab RET to see all the various options available. The per-buffer options are a little trickier. For ends, you can force the menu call with matlab-toggle-functions-have-end. The others you can just set the global value via customize above. The tracking of having ends is actually a minor-mode, and not a variable because it is tied into some complex logic that deals with indenting function bodies, indenting nested functions, and some other stuff I don't remember. Hopefully that will help you build the environment you want. Eric -----Original Message----- From: rl...@kn... [mailto:rl...@kn...] Sent: Monday, February 13, 2012 7:29 PM To: Eric Ludlam Cc: mat...@li... Subject: Re: [Matlab-emacs-discuss] Handling of function end statement in matlab-mode 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... |