Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.
Close
From: newsboost <newsboost@gm...>  20130104 10:45:12
Attachments:
Message as HTML

Hi, I'm totally new with matlab in emacs, but it looks great  I found a good source of information here: http://blog.angjookanazawa.com/post/8815280589/productivitymatlabemacsintegrationmore What I did, was to use the package software tool (synaptic) in ubuntu to dowload "matlabsupport" and I didn't do all the CVSstuff to download anything other than this (maybe that's what I did wrong?). Anyway, I tried "Mx matlabshell" and it seemed to work immediately! What I found looked (=looks) so great and cool. I can now type things exactly as in Matlab and plot graphs from inside of emacs using e.g. "plot(1:5, 2:6)" etc. Last thing that would make me really happy is to have debugging work in a nice way. I don't have a GUDmenu. I tried "dbstop matlabfile.m linenumber" and then "run matlabfile" (without the .mextension) and voila, it ran and stopped at that place. So far so good. Then I typed: "dbstep" and I can see that this works too. It steps a line ahead... But I think I should have a GUDmenu... I tried "Mx gudstep" and it writes: K>> gudstep gudstep {??? Undefined function or variable 'gud'. } K>> if usejava('jvm'), com.mathworks.services.Prefs.setBooleanPref('EditorGraphicalDebugging', false); end K>> gudstep gudstep {??? Undefined function or variable 'gud'. } I want to assign a single key for "next", "step", "continue" etc... Isn't something wrong here? Shouldn't I have a GUD menu ? Please comment on this, thank you very much... I would like singlekey debugging turned on and then I think maybe I'll get rid of this matlabstuff and only use emacs in the future (I hope)... Thanks for ANY comments/ideas/suggestions... 
From: Eric Ludlam <Eric.L<udlam@ma...>  20130115 21:57:21
Attachments:
Message as HTML

Hi, The MATLAB command prompt and commands you type in is MATLAB. If you went to an xterm, and type: matlab nodesktop you would get the same interface to MATLAB. The prompt does not take gud commands. gud commands would go through Emacs. For example, you would type: plot(1:10) at the >> prompt in the buffer to do some MATLAB thing, or: dbstop in myfcn at the same place to get to the K>> prompt. To do gud things, type: Mx gudstep RET to run the Emacs GUD command. The matlab shell is supposed to add the GUD menu to matlabmode buffers (where your source code is) when it sees the K prompt. Unfortunately, MATLAB sometimes is updated faster than I can keep the Emacs mode up to date, so it is possible that broke. In the matlab shell, you can always use the keybindings though, such as Cc Cn to do a 'next'. You can do Ch b to key mode bindings. Eric From: newsboost [mailto:newsboost@...] Sent: Friday, January 04, 2013 5:45 AM To: matlabemacsdiscuss@... Subject: [Matlabemacsdiscuss] debugging: GUD seems not to be working ? Hi, I'm totally new with matlab in emacs, but it looks great  I found a good source of information here: http://blog.angjookanazawa.com/post/8815280589/productivitymatlabemacsintegrationmore What I did, was to use the package software tool (synaptic) in ubuntu to dowload "matlabsupport" and I didn't do all the CVSstuff to download anything other than this (maybe that's what I did wrong?). Anyway, I tried "Mx matlabshell" and it seemed to work immediately! What I found looked (=looks) so great and cool. I can now type things exactly as in Matlab and plot graphs from inside of emacs using e.g. "plot(1:5, 2:6)" etc. Last thing that would make me really happy is to have debugging work in a nice way. I don't have a GUDmenu. I tried "dbstop matlabfile.m linenumber" and then "run matlabfile" (without the .mextension) and voila, it ran and stopped at that place. So far so good. Then I typed: "dbstep" and I can see that this works too. It steps a line ahead... But I think I should have a GUDmenu... I tried "Mx gudstep" and it writes: K>> gudstep gudstep {??? Undefined function or variable 'gud'. } K>> if usejava('jvm'), com.mathworks.services.Prefs.setBooleanPref('EditorGraphicalDebugging', false); end K>> gudstep gudstep {??? Undefined function or variable 'gud'. } I want to assign a single key for "next", "step", "continue" etc... Isn't something wrong here? Shouldn't I have a GUD menu ? Please comment on this, thank you very much... I would like singlekey debugging turned on and then I think maybe I'll get rid of this matlabstuff and only use emacs in the future (I hope)... Thanks for ANY comments/ideas/suggestions... 
From: newsboost <newsboost@gm...>  20130117 22:49:32
Attachments:
Message as HTML

Hi, Aah, thank you very much for clearing this out... The information below is exactly what I had a little problems with. It seems like once in a while, the matlabmode "loses sync" with indicating where it is debugging in the other window... I think the real strength of emacs is for people who are good at lisp and who can adjust all kinds of small settings... After having used this mode for some time, I'm not completely as sure, whether this is beneficial for me or not. The fact that it "loses sync" sometimes is a bit annoying. I'm not sure exactly how I would like the matlabemacsmode to work, if I was good enough at making emacs do exactly what I wanted. Maybe it would be a big improvement if it never lost this "sync" so I always knew which line I was debugging. The good thing about emacs is that I don't need to use the mouse so much  however, maybe the matlab editor is ok, after all... Not sure what I prefer  let me think about it and maybe get back with suggestions/ideas/questions, if something comes to my mind... Thanks a lot for taking the time to answer me, also! I know people use their spare time for such things, so I really appreciate your answer and the work that has been done with the matlabemacsstuff  thanks! On 01/15/2013 10:57 PM, Eric Ludlam wrote: > > Hi, > > The MATLAB command prompt and commands you type in is MATLAB. If you > went to an xterm, and type: > > matlab nodesktop > > you would get the same interface to MATLAB. > > The prompt does not take gud commands. gud commands would go through > Emacs. For example, you would type: > > plot(1:10) > > at the >> prompt in the buffer to do some MATLAB thing, or: > > dbstop in myfcn > > at the same place to get to the K>> prompt. To do gud things, type: > > Mx gudstep RET > > to run the Emacs GUD command. The matlab shell is supposed to add > the GUD menu to matlabmode buffers (where your source code is) when > it sees the K prompt. Unfortunately, MATLAB sometimes is updated > faster than I can keep the Emacs mode up to date, so it is possible > that broke. > > In the matlab shell, you can always use the keybindings though, such > as Cc Cn to do a 'next'. > > You can do Ch b to key mode bindings. > > Eric > > *From:*newsboost [mailto:newsboost@...] > *Sent:* Friday, January 04, 2013 5:45 AM > *To:* matlabemacsdiscuss@... > *Subject:* [Matlabemacsdiscuss] debugging: GUD seems not to be working ? > > Hi, > > I'm totally new with matlab in emacs, but it looks great  I found a > good source of information here: > > http://blog.angjookanazawa.com/post/8815280589/productivitymatlabemacsintegrationmore > > What I did, was to use the package software tool (synaptic) in ubuntu > to dowload "matlabsupport" and I didn't do all the CVSstuff to > download anything other than this (maybe that's what I did wrong?). > > Anyway, I tried "Mx matlabshell" and it seemed to work immediately! > What I found looked (=looks) so great and cool. I can now type things > exactly as in Matlab and plot graphs from inside of emacs using e.g. > "plot(1:5, 2:6)" etc. Last thing that would make me really happy is to > have debugging work in a nice way. > > I don't have a GUDmenu. I tried "dbstop matlabfile.m linenumber" and > then "run matlabfile" (without the .mextension) and voila, it ran and > stopped at that place. So far so good. Then I typed: "dbstep" and I > can see that this works too. It steps a line ahead... > > But I think I should have a GUDmenu... I tried "Mx gudstep" and it > writes: > > K>> gudstep > gudstep > {??? Undefined function or variable 'gud'. > } > K>> if usejava('jvm'), > com.mathworks.services.Prefs.setBooleanPref('EditorGraphicalDebugging', false); > end > K>> gudstep > gudstep > {??? Undefined function or variable 'gud'. > } > > I want to assign a single key for "next", "step", "continue" etc... > Isn't something wrong here? > > Shouldn't I have a GUD menu ? > > Please comment on this, thank you very much... I would like singlekey > debugging turned on and then I think maybe I'll get rid of this > matlabstuff and only use emacs in the future (I hope)... > > Thanks for ANY comments/ideas/suggestions... > 