emacs-matlab/toolbox/dbhotlink.m
Eric Ludlam 7e4a87de3e toolbox/dbhotlink.m:
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.
2019-12-19 17:12:18 -05:00

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