Hi Torben, It looks like the format of the error messages have changed in newer versions of MATLAB, so Emacs is just missing out on the pattern. I don't run on Linux much anymore so I never noticed.
The attached patch should fix up this specific case. I can't check it in because it would break Matlab-shell-mode for anyone with an older version of MATLAB. If there are other kinds of errors this misses, hopefully the patch is clear enough on how to make additional changes. I'll investigate more on getting a version I can check in. Eric From: Torben Knudsen [mailto:t...@es.aau.dk] Sent: Wednesday, September 03, 2014 8:30 AM To: matlab-emacs-discuss@lists.sourceforge.net Subject: [Matlab-emacs-discuss] matlab-shell-last-error does not find errors I have problems getting matlab-shell-last-error working. With errors like Error in NowCastPerWFW (line 118) pwfh= MMWindFarmPower(Res(TPS,4),Res(TPS,4),Ct); I get the response: No errors found! Also matlab-shell-last-error finds the error in print not the error in NowCastPerWFW when the point is at the bottom of the below. I run matlab-mode, version 3.3.1. Any help is appreciated. >> print -depsc Warning: Files produced by the 'epsc' driver cannot be sent to printer. File saved to disk under name 'figure13.eps'. > In graphics/private/name at 73 In print at 210 >> >> NowCastPerWFW Lambda parameters = Lambda0 TauLambdaInf TauLambdaL --1--> 5.00e-01 6.00e+02 4.00e+01 Lambda parameters = Lambda0 LambdaInf LambdaL --1--> 5.00e-01 1.00e+00 1.00e+00 Undefined function 'MMWindFarmPower' for input arguments of type 'double'. Error in NowCastPerWFW (line 118) pwfh= MMWindFarmPower(Res(TPS,4),Res(TPS,4),Ct); >> Associate Prof. Ph.D Torben Knudsen Mobile : (+45) 2787 9826 Section of Automation and Control, Department of Electronic Systems, Email : t...@es.aau.dk<mailto:t...@es.aau.dk> Aalborg University Web : es.aau.dk/staff/tk Fredrik Bajersvej 7 DK-9220 Aalborg Ø Denmark
matlab.el.patch
Description: matlab.el.patch
------------------------------------------------------------------------------ Slashdot TV. Video for Nerds. Stuff that Matters. http://pubads.g.doubleclick.net/gampad/clk?id=160591471&iu=/4140/ostg.clktrk
_______________________________________________ Matlab-emacs-discuss mailing list Matlab-emacs-discuss@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matlab-emacs-discuss