Hi, this was quite some time ago now, but I figured I'd post this here to not leave this unresolved:
My issue was that I didn't use the customize interface to set the mlint-* variables. Doing (setq-default matlab-show-mlint-warnings t) instead of (setq matlab-show-mlint-warnings t) did the trick. In addition, I wanted the mlint warnings to show up in the echo area whenever point was on a line with an error, so I wrote a small function to take care of that: (defun mlint-show-warning-continuous () "Show the warning for the current mark. This is intended to be run after every command. It only prints a message if there is a error at point." (let ((n (linemark-at-point (point) mlint-mark-group))) (when n (message (oref n warning))))) In order for this to work as intended, I needed to add the function above to my post-command-hook: (add-hook 'matlab-mode-hook '(lambda () (add-hook 'post-command-hook 'mlint-show-warning-continuous))) Maybe this is useful for someone. Best, Dennis Dennis Ogbe <do...@purdue.edu> writes: > Hi, > > Apart from absolutely loving this package, I have one issue: > > As far as I can understand, mlint-minor-mode is supposed to highlight > any issues in the current buffer. This is *not* the case for me. > > I'm running emacs 24.5.1 on 64-bit Linux and MATLAB R2014b, with the > latest version of matlab-mode. > > I have pointed mlint-minor-mode to correct mlint binary, and when I run > M-x mlint-buffer, I get a new buffer called *M-Lint* in the > background. This buffer contains all of the mlint outputs, but they do > not get highlighted in the m-file buffer. > > What could be the reason for this? Can anyone confirm that they have gotten > mlint-minor-mode to work? Obviously, not getting this to work won't be a > dealbreaker, but the idea seems pretty cool... > > Any help would be appreciated, thanks in advance! > > Dennis > > ------------------------------------------------------------------------------ > _______________________________________________ > Matlab-emacs-discuss mailing list > Matlab-emacs-discuss@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/matlab-emacs-discuss ------------------------------------------------------------------------------ _______________________________________________ Matlab-emacs-discuss mailing list Matlab-emacs-discuss@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matlab-emacs-discuss