From: Eric W <eri...@gm...> - 2010-07-08 16:41:17
|
Hi - Running R2009b in emacs via matlab-shell on linux, in order to match this error ??? Undefined function or variable 'a'. Error in ==> foo at 3 z=a I had to change gud-matlab-error-regexp from (concat "\\(Error \\(?:in\\|using\\) ==>\\|Syntax error in ==>\\|In\\) " "\\([-@.a-zA-Z_0-9/ \\\\:]+\\)\\(?:>[^ ]+\\).*[\n ]\\(?:On\\|at\\)\\(?: line\\)? " "\\([0-9]+\\) ?")) to (concat "\\(Error \\(?:in\\|using\\) ==>\\|Syntax error in ==>\\|In\\) " "\\([-@.a-zA-Z_0-9/ \\\\:]+\\)\\(?:>[^ ]+\\)?.*[\n ]\\(?:On\\|at\\)\\(?: line\\)? " "\\([0-9]+\\) ?")) Seems like requiring the parenthetical expression in the middle of second line is a problem. That makes it work for this one error, but don't know what its purpose is and so don't know if it'll break it for other error msgs. Another weird thing .. with the modified version, it doesn't detect the error message and linkify it until the 2nd or 3rd time I run foo.m (starting from a fresh matlab session). Is that normal? Eric |