Christophe Weblog Wiki Code Publications Music
support invoking restarts from sldb
authorChristophe Rhodes <csr21@cantab.net>
Fri, 13 Aug 2010 15:03:51 +0000 (16:03 +0100)
committerChristophe Rhodes <csr21@cantab.net>
Fri, 13 Aug 2010 15:03:51 +0000 (16:03 +0100)
swank.R

diff --git a/swank.R b/swank.R
index 802b040..71d502e 100644 (file)
--- 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]])
+  }
+}