7e4a87de3e
Also call Breakpoints to send updated breakpoints. Wrap stack and breakpoints in (progn ...) toolbox/+emacs/@Breakpoints/Breakpoints.m: (updateString): New, extracted from updateEmacs. If show=false, and no changes, send no refresh command. (updateEmacs): use above. (updateForHotLinks): New, disp the commands only. toolbox/+emacs/@Stack/Stack.m (updateForHotLinks): Display nothing of there were no changes.
16 lines
459 B
Matlab
16 lines
459 B
Matlab
function dbhotlink()
|
|
% Display text that EMACS can interpret as a hotlink
|
|
% so the debugger can auto move to the right spot.
|
|
% Input L is the stack frame to specify.
|
|
% If L is not provided, then use the current stack frame.
|
|
|
|
[ST, I] = dbstack('-completenames');
|
|
|
|
disp('(progn ');
|
|
es = getappdata(groot, 'EmacsStack');
|
|
es.updateForHotLinks(ST, I);
|
|
bp = getappdata(groot, 'EmacsBreakpoints');
|
|
bp.updateForHotLinks();
|
|
disp(')');
|
|
|
|
end
|