From: Eric L. <Eri...@ma...> - 2012-01-24 14:38:17
|
Hi, I don't think I ever tried any OO programming with matlab-shell yet. I have some thoughts but not a lot of time to code this morning. Do you mind trying out a few things? In matlab.el, around line 4600 is the regexp that parses errors and turns them into urls that can be sent to matlab to open the file. You will see that the regexp at the beginning of line 2 has a bunch of characters that are expected in the file name. I'm guessing we need to add ">" to that. Hopefully when emacs converts it to an "openline" call, openline will be able to interpret the object syntax. I suppose trying: openline("MyClass>MyClass",47) in the shell would let you know that. The two syntaxes will need to eventually match. Eric From: Jeff Cen [mailto:jef...@ya...] Sent: Monday, January 23, 2012 11:41 PM To: mat...@li... Subject: [Matlab-emacs-discuss] link on error not working as expected Hi, everyone, I found the link on error inside the matlab shell seemed not to work as expected. For example, when I run a selected region in a matab script that calls MyClass, which has an error in method1, the matlab shell shows an error message like below Error in ==> MyClass>MyClass.method1 at 47 Then I click return with cursor on this error message line and expect emacs to bring up MyClass.m in a buffer and leave the cursor at line 47. However emacs opens an empty buffer named as MyClass instead. I wonder if you have encountered a similar issue and have a way to solve this problem. The environment I found this problem is emacs 23.2, matlab 2011a, linux 64bit and the latest matlab mode. Thanks a lot Jeff |