Problem 1 is probably related to semantic-idle-completion-mode, which queries 
for completions from MATLAB, then while building up a 'correct' tag, tries to 
figure out where it came from.

I'm not sure what changed (performance wise) since it was implemented.   In any 
case, it may be possible for us to defer asking for the location until it is 
actually needed.  I'm uncertain about that.

In the meantime, if you visit matlab-semantic.el, and matlab-semanticdb.el , 
and replace the calls to

(matlab-shell-which-fcn ...)

with

nil

it should fix the problem, with the loss of functionality of jumping to said 
completions later.   If that works for you, and it is deemed preferable, I can 
make that change more permanent.

Problem 2: As MATLAB evolves, the expression needed for finding errors keeps 
changing.  I think we just need to debug the regex.   What version of MATLAB do 
you have?   I fixed this a bit in 3.3.2 which you can get from CVS.

Problem 3: I'm not sure about this one.  I think that means you have a bum 
version of Emacs without gud-def.  I have it here in 23.2.  (We're a bit behind 
over here.)

Eric

From: Torben Knudsen [mailto:t...@es.aau.dk]
Sent: Thursday, April 23, 2015 3:12 AM
To: matlab-emacs-discuss@lists.sourceforge.net
Subject: [Matlab-emacs-discuss] Strange matlab-mode problem

Strange matlab-mode problem

I am one of the happy matlab-mode users.  However, I have a number of
problems but the first one is the only serious one.

I am using: matlab-mode, version 3.3.1

Problem 1.

When I edit a m file in matlab-mode then some times it seems that
emacs gets stuck and then after a long time or when I press ctrl-g it
outputs in the shell frame something like

>> which aero_guid_plot
/usr/local/MATLAB/R2014a/toolbox/simulink/simdemos/aerospace/aero_guid_plot.m
>>
>> which axistext
/usr/local/MATLAB/R2014a/toolbox/matlab/graph2d/@axistext/axistext.m<mailto:/usr/local/MATLAB/R2014a/toolbox/matlab/graph2d/@axistext/axistext.m>
  % axistext constructor
>>
>> which aero_atcscript
/usr/local/MATLAB/R2014a/toolbox/simulink/simdemos/aerospace/aero_atcscript.m
>>
>> which addrunf
/usr/local/MATLAB/R2014a/toolbox/robust/rctobsolete/mutools/subs/addrunf.m
>>
>> which asec
built-in (/usr/local/MATLAB/R2014a/toolbox/matlab/elfun/@double/asec)  % double 
method
>>

In the above case I think the cursor was at or in front of an 'a' and
then it seems matlab is used to search for functions starting with 'a'
which takes a long time and is very annoying.

How can I stop this?

Problem 2.

I can not make the function 'matlab-shell-last-error' work properly.
I tried to change it a bit to the below which also does not work to well.
(defun tk-goto-matlab-error ()
  "Goto last matlab error above"
  (interactive)
  (search-backward "error")
  (matlab-shell-html-go))

Problem/question 3

When I checked *Message* to see the matlab-mode version it also had
'Sorry, your emacs cannot use the MATLAB Shell GUD features.'
What does that mean?

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
------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
Matlab-emacs-discuss mailing list
Matlab-emacs-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matlab-emacs-discuss

Reply via email to