X-Git-Url: http://christophe.rhodes.io/gitweb/?p=swankr.git;a=blobdiff_plain;f=swank.R;h=71d502ecc03039de80f2de99401c8003d98cb963;hp=802b0409e49543ff3a7372128d26168aab26f6ed;hb=99505873e6e7409fdfdf0852b84e111b7994414b;hpb=4088bd066cbaad7a568cb7722b31dce9fd203bc3 diff --git a/swank.R b/swank.R index 802b040..71d502e 100644 --- a/swank.R +++ b/swank.R @@ -261,3 +261,9 @@ writeSexpToString <- function(obj) { `swank:debugger-info-for-emacs` <- function(io, sldbState, from, to) { debuggerInfoForEmacs(sldbState, from=from, to=to) } + +`swank:invoke-nth-restart-for-emacs` <- function(io, sldbState, level, n) { + if(sldbState$level == level) { + invokeRestart(computeRestarts()[[n+1]]) + } +}