Ken & Mike on the MATLAB Desktop

March 30th, 2009

Configuring M-Lint to only display certain messages

The extended M-Lint project gave us a good excuse to go in and change up the old M-Lint preferences GUI. This post will concentrate on the new ways to do the old stuff, and next time I’ll talk about the new things you can do. You can reach these preferences from the File menu in the desktop: File -> Preferences - M-Lint.

Old M-Lint Preferences panel (R2008b and earlier)

R2008b M-Lint preferences panel

New M-Lint Preferences panel (R2009a)

R2009a M-Lint preferences panel

To start off, all the old stuff is still there: You can set the editor underlining level, create and set different configurations, and turn individual messages on and off.

Let’s talk about what go axed. Gone from the front is the “Show MATLAB Compiler Deployment messages.”

R2008b show deployment messages checkbox

This has been replaced by a whole category enable/disable button on the compiler group.

R2008b show deployment messages enable button

If you don’t have a MATLAB compiler license, don’t worry, you won’t see these messages in either release.

Gone too is the group by enabled/disabled. Based on feedback this was rarely used, and now you can filter by enabled/disabled. Therefore the messages are all grouped by category by default. Removing this combo box freed up space for the new filter box.

R2009a message filter box

Which brings us to the new stuff. The obvious new features are the filter box, the new message severity icons, and the extended messages. The filter box makes it easier to locate specific messages by name or category. The icon shows whether the message is marked as an error warning (instead of the orange/red boxes). Messages whose enabled state has been changed from the factory defaults are marked with a little bullet. You may recognize this little bullet if you use publish configurations in the Editor.

R2009a M-Lint messages table

There was one bit functionality that we decided to remove, namely the single check to turn on/off all the messages in a specific category. We found that this checkbox was confusing and not very useful to some users. Instead you can select multiple messages and use the context menu to enable/disable the selected messages.

R2009a M-Lint messages table context menu

Leave a Reply

Wrap code fragments inside <pre> tags, like this:

<pre class="code">
a = magic(3);
sum(a)
</pre>

If you have a "<" character in your code, either follow it with a space or replace it with "&lt;" (including the semicolon).


Ken & Mike work on the MATLAB Desktop team.
  • Ori: The current folder shortcut used to be alt-y. Now it is alt-o. However, while in the editor window, alt-o opens...
  • Jose Miguel: Hi First of all, thanks for the post, it is really useful. I am trying to develop a Java GUI within...
  • Ken: Hi Siddharth, There isn’t currently any way to move the docking controls. Feel free to submit an...
  • Phil: I have the same problem as described above with UITable working fine in the Matlab environment but showing no...
  • Siddharth: Is there any way to move the position of the docking controls (or eliminate them through some...
  • Chris: Yes, it is a challenge to organize functions into categories, especially with so many functions. Ken and I...
  • Mike: Thanks for fielding that one, Yair.
  • Yair Altman: Jimmy - if you mean that you wish to include hyperlinks in your function’s help comment, that will...
  • OysterEngineer: Thanks for explaining the Function Browser. I fired it up and gave it a try. It appears that it has...
  • Jimmy: Is there any way to include hyperlinks in a comment, such as the standard help at the beginning of a function?

These postings are the author's and don't necessarily represent the opinions of The MathWorks.