emacs-matlab/toolbox/ebstack.m
Eric Ludlam 2de21e3a1e toolbox/ebstack.m:
New wrapper for dbstack, using emacs.Stack to send data to Emacs.
2019-12-08 22:07:56 -05:00

15 lines
313 B
Matlab

function ebstack(FRAMEIDX)
% Emacs version of dbstack. Updates Emacs for where we are in the stack.
[ST, I] = dbstack('-completenames');
% Send emacs our updated stack
es = getappdata(groot, 'EmacsStack');
if nargin == 1
I = FRAMEIDX;
end
es.updateEmacs(ST, I);
end